* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

.header {
  background: white;
  border-bottom: 1px solid #ddd;
  position: fixed;   /* 🔥 Hace que quede fijo */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;     /* Siempre encima del contenido */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* sombra moderna */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #1a365d;
}

.logo-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
  overflow: hidden;
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MENU ESCRITORIO */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  transition: color .3s;
}

.nav-menu li a:hover {
  color: #2563eb;
}

/* Dropdown escritorio */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  min-width: 220px;
  z-index: 1000;
}

.dropdown-item a {
  display: block;
  padding: 10px 20px;
  color: #4a5568;
  font-size: 14px;
}

.dropdown-item a:hover {
  background: #f7fafc;
  color: #2563eb;
}

.nav-item:hover .dropdown {
  display: block;
}

/* BOTÓN CONTACTAR */
.contact-btn {
  background: #1e40af;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.contact-btn:hover {
  background: #1d4ed8;
}

/* MENÚ HAMBURGUESA */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  border: 2px solid #4a5568;
  border-radius: 4px;
  width: 40px;
  height: 35px;
  justify-content: center;
  align-items: center;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: #4a5568;
  margin: 3px 0;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================== */
/* ===== MENÚ MÓVIL ==== */
/* ===================== */

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-section {
  border-bottom: 1px solid #e0e0e0;
}

/* Encabezado: Productos y Servicios */
.mobile-menu-header {
  padding: 15px 20px;
  font-weight: bold;
  color: #1a365d;   /* Azul oscuro */
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* Subopciones dentro de Productos y Servicios */
.mobile-submenu {
  display: none;
  padding-left: 20px;
  background: #f9fafb;
}

.mobile-submenu.active {
  display: block;
}

/* Enlaces principales (Catálogo, Trabajos, Blog) */
.mobile-menu-section a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  font-size: 14px;
  color: #1a365d;     /* Azul */
  font-weight: bold;  /* Negrita */
}

/* Estilo del encabezado del menú móvil */
.mobile-menu-header {
  font-weight: bold;
  color: #1a2b49; /* Azul oscuro para el título */
  padding: 10px;
  cursor: pointer;
}

/* Submenú móvil */
.mobile-submenu a {
  display: block;
  padding: 8px 15px;
  font-weight: normal; /* Sin negrita */
  color: #555; /* Gris plomo */
  text-decoration: none;
}

/* Efecto hover en submenú */
.mobile-submenu a:hover {
  background: #f0f0f0; /* Fondo claro al pasar el mouse */
  color: #000; /* Negro más fuerte */
}

/* ===================== */
/* ===== RESPONSIVE ==== */
/* ===================== */
@media(max-width:768px) {
  .nav-menu,
  .contact-btn {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}
