/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #0E0F3F;
    color: #fff;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px; /* espacio interno a izquierda y derecha */
  }


header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
}

header nav a:hover {
    color: #0E0F3F;
}

/* Menú hamburguesa */
.menu-icon {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
}

/* Menú lateral */
/* Overlay oscuro */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro con transparencia */
    z-index: 1500; /* Debajo del menú pero encima del contenido */
    display: none; /* Oculto inicialmente */
    transition: opacity 0.3s ease;
}

/* Mostrar overlay */
.overlay.active {
    display: block;
    opacity: 1;
}

/* Menú lateral */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: linear-gradient(180deg, #0E0F3F, #1B1C4F);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-shadow: -4px 0 15px rgba(0,0,0,0.4);
}

.side-menu nav {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.side-menu nav a {
    margin: 15px 0;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color 0.3s;
    text-transform: uppercase;
}

.side-menu nav a i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.side-menu nav a:hover {
    color: #a01a1f;
}

/* Botón cerrar */
.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-menu:hover {
    color: #a01a1f;
}

/* Mostrar menú */
.side-menu.open {
    right: 0;
}

/* Menú horizontal para escritorio */
.nav-desktop {
    display: flex;
    gap: 20px;
  }
  
  .nav-desktop a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s;
  }
  
  .nav-desktop a:hover {
    color: #a01a1f;
  }
  
  /* Mostrar sólo en desktop */
  @media (max-width: 1129px) {
    .nav-desktop {
      display: none;
    }
  
    .menu-icon {
      display: block;
    }
  }
  
  /* Ocultar hamburguesa en desktop */
  @media (min-width: 1130px) {
    .menu-icon {
      display: none;
    }
  }

  .whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    z-index: 9998;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
  }
  
  .whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
  }
  
  /* Ajuste para pantallas muy pequeñas */
  @media (max-width: 400px) {
    .whatsapp-float {
      width: 48px;
      height: 48px;
      font-size: 24px;
      bottom: 15px;
      left: 15px;
    }
  }
  
  .nav-desktop a.activo {
    position: relative;
    color: #a01a1f;
  }
  
  .nav-desktop a.activo::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #a01a1f;
    border-radius: 10px;
  }