* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Archivo";
}
::selection {
  background-color: #986dff;
  color: #fff;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

.text-logo {
  font-size: 2.4rem;
  font-weight: 500;
  color: #fff;
}

button,
input {
  border: 0;
  font-family: "Archivo";
}
button:focus,
input:focus {
  border: 0;
}
body {
  font-family: "Archivo";
  background-color: #fff;
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background-color: #111;
}
::-webkit-scrollbar-thumb {
  background-color: #986dff;
  border-radius: 8px;
}
/* Variables de color para consistencia */
:root {
  --primary-color: #986dff;
  --bg-glass: rgba(10, 10, 12, 0.7);
  --border-glass: rgba(255, 255, 255, 0.08);
}

.header {
  padding: 20px 10px; 
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  transition: all 0.4s ease;
}


.header.scroll-active {
  padding: 10px 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 25px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 100px; /* Forma de cápsula */
  backdrop-filter: blur(10px);
}

/* Logo Estilizado */
.text-logo {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #fff;
}

.text-logo span {
  color: var(--primary-color);
}

/* Lista de Navegación */
.nav-list {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-item {
  color: #9ca3af;
  font-size: 1.5rem;
  font-weight: 500;
  transition: 0.3s ease;
  position: relative;
}

.nav-item:hover {
  color: #fff;
}

/* Animación de subrayado moderno */
.nav-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-item:hover::after {
  width: 100%;
}

/* Botón CTA en el Nav */
.nav-cta {
  background: var(--primary-color);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 1.4rem;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 10px 20px rgba(152, 109, 255, 0.2);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(152, 109, 255, 0.4);
  background: #a985ff;
}

/* Mobile Menu Refinado */
@media screen and (max-width: 992px) {
  .nav-container {
    border-radius: 20px;
  }
  
  .nav-list {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 90%;
    background: #0f0f11;
    border: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 40px;
    border-radius: 24px;
    visibility: hidden;
    opacity: 0;
    transition: 0.4s;
  }

  .nav-list.active {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* --- ESTILOS DEL BOTÓN HAMBURGUESA (Añadir esto) --- */
.mobile-menu {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Por encima de la lista */
}

.mobile-menu div {
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- AJUSTES EN MEDIA QUERY --- */
@media screen and (max-width: 992px) {
    .mobile-menu {
        display: block; /* Mostrar en mobile */
    }

    .nav-list {
        position: fixed;
        top: 70px; 
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        width: 90%;
        background: #0f0f11;
        border: 1px solid var(--border-glass);
        flex-direction: column;
        padding: 40px;
        border-radius: 24px;
        visibility: hidden;
        opacity: 0;
        transition: 0.4s cubic-bezier(0.075, 0.82, 0.165, 1);
        z-index: 1000;
        gap: 20px;
        text-align: center;
    }

    .nav-list.active {
        visibility: visible;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    /* Animación del icono X */
    .mobile-menu.active .line1 {
        transform: rotate(-45deg) translate(-5px, 5px);
    }
    .mobile-menu.active .line2 {
        opacity: 0;
    }
    .mobile-menu.active .line3 {
        transform: rotate(45deg) translate(-5px, -5px);
    }
    
    .nav-list li {
        margin: 10px 0;
    }
}

/* Estilo del Switch de Lenguaje */
.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 100px;
  position: relative;
  transition: all 0.3s ease;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #666;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
  font-family: 'Archivo', sans-serif;
}

.lang-btn.active {
  color: #fff;
}

.lang-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 2;
}

/* El indicador que se mueve */
.lang-indicator {
  position: absolute;
  height: calc(100% - 8px);
  width: calc(50% - 6px);
  background: var(--primary-color);
  left: 4px;
  border-radius: 100px;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 4px 15px rgba(152, 109, 255, 0.4);
  z-index: 1;
}

/* Lógica de movimiento del indicador */
#lenguage-es.active ~ .lang-indicator {
  transform: translateX(100%);
}

/* Hover effects */
.lang-switch:hover {
  border-color: rgba(152, 109, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile Ajustes */
@media screen and (max-width: 992px) {
  .nav-actions-wrapper {
    flex-direction: column-reverse; /* Lenguaje arriba de los links en mobile */
    gap: 40px;
  }
  
  .lang-switch {
    transform: scale(1.1); /* Un poco más grande para facilitar el toque */
  }
}