/* ==========================================================================
   VARIABLES GLOBALES (:root)
   ========================================================================== */
:root {
  --negro:         #212121; /* fondo principal */
  --negro-oscuro:  #181818; /* fondo secciones alternas y hero */
  --negro-card:    #1a1a1a; /* fondo tarjetas oscuras */
  --dorado:        #FAC402; /* color de acento principal */
  --dorado-claro:  #F5DD41; /* color de acento secundario */
  --gris-medio:    #646464; /* texto secundario */
  --gris-borde:    #474747; /* bordes sutiles */
  --gris-oscuro:   #2e2e2e; /* bordes muy sutiles entre secciones */
  --blanco:        #ffffff; /* texto principal */
}

/* ==========================================================================
   RESET Y BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Evita que el navbar fijo tape los títulos al deslizarse */
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--negro);
  color: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   UTILIDADES GLOBALES
   ========================================================================== */
.gold {
  color: var(--dorado);
}

.label {
  font-size: 1.0rem;
  color: var(--dorado);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
}

.pill {
  display: inline-block;
  background-color: var(--dorado);
  color: var(--negro);
  font-size: 0.625rem;
  font-weight: 500;
  padding: 0.2rem 0.625rem;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* CORREGIDO: Ahora se queda fija en mobile si el contenido empuja la sección */
.gold-line {
  display: block;
  margin: 1.5rem 0 0.5rem 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, var(--dorado), transparent);
}

/* ==========================================================================
   COMPONENTES: BOTONES
   ========================================================================== */
.boton {
  display: block;
  width: 100%;
  padding: 0.8rem 0;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.boton--gold {
  background-color: var(--dorado);
  color: var(--negro);
}

.boton--ghost {
  background-color: transparent;
  border-color: var(--dorado-claro);
  color: var(--dorado-claro);
}

.boton:hover {
  opacity: 0.70;
}

/* ==========================================================================
   NAVEGACIÓN (DIVBAR)
   ========================================================================== */
.divbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--negro-oscuro);
  border-bottom: 2px solid var(--dorado);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  transition: box-shadow 0.3s ease;
}

.divbar.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.div-logo {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dorado-claro);
  letter-spacing: 0.14em;
}

.div-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.div-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dorado);
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.div-hamburger span:nth-child(2) {
  width: 20px;
  height: 1.5px;
  background-color: var(--gris-medio);
}

.div-hamburger span:nth-child(3) {
  width: 24px;
  height: 1.5px;
  background-color: var(--dorado);
}

.div-menu {
  display: none;
  list-style: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--negro-oscuro);
  padding: 1rem 1.25rem;
  border-bottom: 0.5px solid var(--gris-oscuro);
}

.div-menu.activo {
  display: flex;
}

.div-menu a {
  padding: 0.75rem 0;
  color: var(--gris-medio);
  text-decoration: none;
  font-size: 0.875rem;
  border-bottom: 0.5px solid var(--gris-oscuro);
  display: block;
  transition: color 0.2s ease;
}

.div-menu a:hover {
  color: var(--dorado);
}

/* ==========================================================================
   HERO SECCIÓN
   ========================================================================== */
.hero {
  min-height: 100dvh;
  padding: 5rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: transparent;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.hero-panal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-logo {
  width: 95px;
  height: auto;
  display: block;
  margin: 0 auto 1rem;
}

.hero-label {
  font-size: 0.5625rem;
  color: var(--dorado);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.hero-titulo {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--blanco);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-subtitulo {
  font-size: 0.75rem;
  color: var(--gris-medio);
  line-height: 1.7;
  max-width: 260px;
  margin: 0 auto;
}

.hero-cards {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  position: relative;
  z-index: 1;
  margin-top: 1.75rem;
}

/* Tarjetas (Cards) */
.card {
  background-color: var(--negro);
  border-radius: 20px;
  padding: 1rem;
}

.card--gris {
  border: 0.5px solid var(--dorado);
}

.card--gold {
  border: 1.5px solid var(--gris-borde);
}

.card h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blanco);
  margin-bottom: 0.25rem;
}

.card p {
  font-size: 0.6875rem;
  color: var(--gris-medio);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-top: 1.25rem;
}

.scroll-hint span {
  font-size: 0.5625rem;
  color: var(--gris-borde);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 24px;
  background-color: var(--dorado);
  margin-top: 0.5rem;
}

/* ==========================================================================
   SECCIONES GENERALES
   ========================================================================== */
.seccion {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.25rem;
  border-top: 0.5px solid var(--gris-oscuro);
  background-color: var(--negro);
}

.seccion--oscura {
  background-color: var(--negro-card);
}

.seccion h2 {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--blanco);
  margin-bottom: 0.5rem;
}

.seccion-intro {
  font-size: 0.75rem;
  color: var(--gris-medio);
  line-height: 1.8;
  margin-bottom: 0.1rem;
}

/* ==========================================================================
   MÓDULO: FAQ (CON ENFOQUE DE TRANSICIÓN FLUIDA)
   ========================================================================== */
/* 
  .faq → contenedor de todos los items de pregunta/respuesta
  margin-top → espacio sobre el bloque de FAQ
*/
.faq {
  margin-top: 0.10rem;
}

/* 
  .faq-item → cada par de pregunta + respuesta
  padding → espacio interno arriba y abajo
  border-top → línea separadora entre preguntas
*/
.faq-item {
  padding: 0.8rem 0;
  border-top: 0.5px solid var(--gris-oscuro);
}

.faq-item:first-child {
  border-top: none;
}

.faq-pregunta {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--dorado-claro);
  margin-bottom: 0.2rem;
}

.faq-respuesta {
  display: none;
  font-size: 0.6875rem;
  color: var(--gris-medio);
  line-height: 1.6;
}

/* Esta nueva regla conecta el CSS con tu JS: cuando se hace clic, el elemento se muestra */
.faq-item.abierto .faq-respuesta {
  display: block;
}


/* ==========================================================================
   MÓDULO: DIFERENCIAL
   ========================================================================== */
.diferencial-lista {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.diferencial-item {
  background-color: var(--negro-card);
  border-radius: 8px;
  padding: 0.875rem 1rem;
  border-left: 2px solid var(--dorado);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  width: 100%;
}

.diferencial-titulo {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--blanco);
  margin-bottom: 0.2rem;
}

.diferencial-desc {
  font-size: 0.75rem;
  color: var(--gris-medio);
  line-height: 1.6;
}

.contenedor-texto {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 75%;
}

.svg-icon {
    width: 100%;
    height: auto;
    filter: brightness(0) saturate(100%) invert(84%) sepia(51%) saturate(2126%) hue-rotate(345deg);
}

.icon-area {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.titulo-principiantes::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 35px;
    background-image: url('images/diana_con_flecha_en_la_mitad.svg'); 
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(84%) sepia(51%) saturate(2126%) hue-rotate(345deg);
    transform: translateY(12px); 
    margin-left: 10px;
}

.titulo-experimentadas::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 35px;
    background-image: url('images/grafica_hacia_arriba.svg'); 
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(84%) sepia(51%) saturate(2126%) hue-rotate(345deg);
    transform: translateY(12px); 
    margin-left: 10px;
}

.titulo-privacidad::after {
    content: "";
    display: inline-block;
    width: 30px;
    height: 35px;
    background-image: url('images/candado_relleno.svg'); 
    background-size: contain;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(84%) sepia(51%) saturate(2126%) hue-rotate(345deg);
    transform: translateY(12px); 
    margin-left: 10px;
}

.contenedor-cierre {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 50px 0;
    overflow: hidden;
}

.imagen-cierre {
    width: 140px;
    height: auto;
    animation: flotarCierre 4s ease-in-out infinite;
}

@keyframes flotarCierre {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px); /* Sube sutilmente 8 píxeles */
  }
  100% {
    transform: translateY(0); /* Vuelve a su posición original */
  }
}

/* ==========================================================================
   MÓDULO: CONTACTO Y SOCIALS
   ========================================================================== */
.contacto {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 1.25rem;
  background-color: transparent;
}

.contacto-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0 !important;
}

.contacto-content h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--blanco);
  margin-top: 0.2rem !important;
  margin-bottom: 0.4rem !important;
}

.contacto-content .gold-line {
  margin-top: 0 !important;
  margin-bottom: 0.6rem !important; /* Espacio exacto entre la gold-line y el texto de abajo */
}

.contacto-content p {
  font-size: 0.75rem;
  color: var(--gris-medio);
  line-height: 1.8;
  margin-top: 0rem !important;
  margin-bottom: 0.8rem !important;
}

.enlace-social {
    display: inline-block;
    text-decoration: none;
    padding: 10px;
}

.icono-social {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.enlace-social:hover .icono-social {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(198, 161, 74, 0.8)); 
}

/* Selecciona las redes sociales únicamente dentro de la sección de contacto */
.contacto-content .contenedor-redes-sociales {
  display: flex;
  gap: 0.75rem;       /* Espacio de separación ENTRE los iconos (puedes subirlo si quieres más separación horizontal) */
  margin-top: 1.5rem; /* ¡ESTA ES LA CLAVE! Empuja las redes sociales hacia abajo, separándolas de la gold-line */
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 0.875rem 1.25rem;
  text-align: center;
  background-color: #111111;
  border-top: 0.5px solid var(--gris-oscuro);
}

.footer p {
  font-size: 0.5625rem;
  color: #333333;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   MEDIA QUERIES — RESPONSIVE DESKTOP (A partir de 768px)
   ========================================================================== */
@media (min-width: 768px) {
  .div-hamburger {
    display: none;
  }

  .div-menu {
    display: flex !important;
    flex-direction: row;
    position: static;
    width: auto;
    background: transparent;
    padding: 0;
    border: none;
    gap: 1.5rem;
  }

  .div-menu a {
    border-bottom: none;
    padding: 0;
    font-size: 0.8125rem;
  }

  .hero {
    display: flex; /* Cambiado de grid a flex para poder alinear todo al centro fácilmente */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 6rem 4rem 3rem;
  }

  #inicio .hero-content {
    text-align: center; /* Centra los textos */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra los elementos internos */
    width: 100%;
    max-width: 600px; /* Evita que las líneas de texto se estiren demasiado a lo ancho y se vuelva ilegible */
  }

  .hero-logo {
    margin: 0 auto 1rem auto; /* Forzar centrado del logo en el eje horizontal */
    width: 140px; /* Ajuste sutil de tamaño para desktop */
  }

  .hero-subtitulo {
    margin: 0 auto; /* Centra el bloque del subtítulo */
    text-align: center;
    max-width: 380px;
  }

  .hero-titulo {
    font-size: 2.5rem;
    text-align: center; /* Forzar el texto al centro */
  }

  .hero-cards {
   margin-top: 1.5rem;
    width: 100%;
    max-width: 450px; /* Controla el ancho de las tarjetas en desktop para que no ocupen toda la pantalla */
  }

  .scroll-hint {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .seccion {
    padding: 4rem;
  }

  .diferencial-lista {
    flex-direction: row;
  }

  .diferencial-item {
    flex: 1;
  }

  .contacto {
    padding: 4rem;
  }

  .contacto-content .boton {
    width: auto;
    display: inline-block;
    padding: 0.8rem 2rem;
  }
  
}

/* ==========================================================================
   MEDIA QUERIES — PANTALLAS GRANDES (A partir de 1200px)
   ========================================================================== */
@media (min-width: 1200px) {
  .hero, .seccion, .contacto-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .contacto {
    max-width: 100%;
    padding: 80px 0;
  }
}