/* =============================== Root Variables =============================== */
:root {
  /* Colores RGB */
  --primary-color-rgb: 108, 40, 244; /* RGB de Púrpura intenso --primary-color */
  --secondary-color-rgb: 43, 157, 109; /* RGB de Verde tropical --secondary-color */
  --tertiary-color-rgb: 0, 0, 0; /* RGB de Negro --tertiary-color */
  --contact-color-rgb: 255, 255, 255; /* RGB de Blanco --contact-color */

  /* Colores claros hex originales (por compatibilidad) */
  --primary-color: #6c28f4;
  --secondary-color: #2b9d6d;
  --tertiary-color: #000000;
  --contact-color: #ffffff;
  --text-color: #000000;
  --text-secondary-color: #000000;
  --text-tertiary-color: #ffffff;

  /* --------------------- MODO CLARO (Por defecto - Estilo "Apple Clean") -------------------------- */
  --bg-app: #ffffff;
  --bg-header: rgba(255, 255, 255, 0.9);
  --card-bg: #ffffff;
  --text-main: #1e293b; /* Gris muy oscuro (Slate 800) */
  --text-muted: #64748b; /* Gris medio (Slate 500) */
  --border-color: rgba(0, 0, 0, 0.08);
  /* ------------------------- Aurora Sutil para fondo blanco -------------------------------------- */
  --aurora-1: rgba(108, 40, 244, 0.05);
  --aurora-2: rgba(59, 130, 246, 0.05);

  /* ---------------------------------Sombras suaves para fondo blanco------------------------------- */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
  --icon-filter: none; /* Iconos normales en modo claro */

  /* Fondos */
  --background: rgba(255, 255, 255, 0.9);
  --background-color: rgba(255, 255, 255);
  --background-color-secondary: rgba(0, 0, 0, 0.2);
  --background-hero: rgba(255, 255, 255, 0.5);

  /* Cajas de Tips & Intro */
  --tip-bg: #eefdf5;
  --tip-border: #10b981;
  --tip-text: #065f46;
  --intro-bg: rgba(108, 43, 217, 0.05);

  /* --- FUENTES NATIVAS (SYSTEM STACK) --- */
  --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;

  --font-body: var(--font-stack);
  --font-heading: var(--font-stack);

  /* Enlaces */
  --nav-link-color: #000000;
  --nav-link-hover: #6c28f4;

  /* Estilos */
  --border-radius: 10px;
  --transition-time: 0.3s;

  /* Sombras */
  --box-shadow-standard: 0px 4px 6px var(--background-color-secondary);
  --box-shadow-elevated: 0 10px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] {
  /* Colores oscuros */
  --primary-color: #6c28f4;
  --secondary-color: #2b9d6d;
  --tertiary-color: #ffffff;
  --contact-color: #000000;
  --text-color: #ffffff;
  --text-secondary-color: #000000;
  --text-tertiary-color: #ffffff;

  /* ----------------------------------------- MODO  OSCURO --------------------------------------- */
  --bg-app: #0f1115; /* Fondo ultra oscuro */
  --bg-header: rgba(15, 17, 21, 0.9);
  --card-bg: rgba(24, 27, 33, 0.8);
  --text-main: #ffffff;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.05);
  /* ----------------------------------- Aurora Brillante para fondo oscuro --------------------- */
  --aurora-1: rgba(108, 40, 244, 0.15);
  --aurora-2: rgba(59, 130, 246, 0.08);
  /* ---------------------------------- Sombras y brillos para modo oscuro ---------------------- */
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 15px 30px rgba(43, 157, 109, 0.15);
  --icon-filter: drop-shadow(0 0 8px rgba(43, 157, 109, 0.4));
  /* CORRECCIÓN VISIBILIDAD IPHONE */
  --mockup-border: #2a2a2a; /* Un gris un poco más claro que el negro puro */
  --mockup-glow: 0 0 0 2px rgba(255, 255, 255, 0.15),
    /* <--- CLAVE: Borde de luz exterior */ 0 30px 60px -12px rgba(0, 0, 0, 0.8),
    /* Sombra profunda */ inset 0 0 0 1px rgba(255, 255, 255, 0.1); /* Brillo interior */

  /* Fondos */
  --background: rgba(18, 18, 18, 0.8);
  --background-color: rgba(18, 18, 18);
  --background-color-secondary: rgba(255, 255, 255, 0.2);
  --background-hero: rgba(18, 18, 18, 0.5);

  /* Tips Dark */
  --tip-bg: #064e3b;
  --tip-border: #059669;
  --tip-text: #a7f3d0;
  --intro-bg: rgba(108, 43, 217, 0.15);

  /* Enlaces */
  --nav-link-color: #ffffff;
  --nav-link-hover: #6c28f4;

  /* Sombras */
  --box-shadow-standard: 0px 4px 6px var(--background-color-secondary);
  --box-shadow-elevated: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =============================== Theme Toggle ============================== */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] #theme-toggle {
  color: var(--text-color);
}

#theme-toggle:hover {
  transform: rotate(360deg);
}

#theme-toggle:focus-visible {
  outline: 3px dashed var(--primary-color);
  outline-offset: 10px;
  border-radius: 50%;
}

/* ============== RESET CSS ============== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}
ul,
ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
blockquote,
q {
  quotes: none;
}
blockquote::before,
blockquote::after,
q::before,
q::after {
  content: "";
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Reset de formulario básico */
button,
input,
textarea,
select {
  font: inherit;
}

/* ================= General Styles ================= */
body {
  height: auto;
  min-height: 100%;
  max-width: 100vw;

  /* APLICAMOS LA FUENTE NATIVA */
  font-family: var(--font-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  color: var(--text-color);
  background-color: var(--background-color);
  transition: background-color var(--transition-time),
    color var(--transition-time);
  margin: 0;
  padding: 0;
}

/* Títulos */
h1,
h2,
h3,
h4,
h5,
h6,
.styled-heading,
.footer-title,
.guide-detail h1,
.lp-h1 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em; /* Kerning ajustado para títulos */
  font-weight: 700;
}

/* ================= Utility Classes ================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ======================================== Header ==================================== */
.main-header {
  display: flex;
  align-items: center;
  background: var(--background);
  color: var(--text-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  margin: 0 auto;
  padding: 0 3.5%;
}

.container-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* =============================== Hamburger Menu =============================== */
.menu-toggle {
  display: none;
  order: -1;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 10px;
}

.hamburger {
  width: 30px;
  height: 3px;
  background-color: var(--nav-link-color);
  border-radius: var(--border-radius);
  position: relative;
  cursor: pointer;
  transition: var(--transition-time);
}

.hamburger::before,
.hamburger::after {
  width: 30px;
  height: 3px;
  background-color: var(--nav-link-color);
  border-radius: var(--border-radius);
  content: "";
  position: absolute;
  cursor: pointer;
  transition: var(--transition-time);
}

.hamburger::before {
  top: -10px;
  right: 0;
}

.hamburger::after {
  top: 10px;
  right: 0;
}

.menu-toggle.open .hamburger {
  background-color: transparent;
}

.menu-toggle.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.open .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* =============================== Logo =============================== */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 10px;
  z-index: 1000;
}

.logo {
  margin: 0;
}

.logo-image {
  width: 100px;
  height: auto;
  display: block;
  transition: transform var(--transition-time);
}

.logo-image:hover {
  transform: scale(1.1);
}

.menu-toggle {
  display: none;
}

/* =============================== Navigation =============================== */
/* NAV – versión que encoge antes y más */
.main-nav {
  margin-right: 0;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.4vw, 22px); /* ↓ menos gap */
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}
.main-nav a {
  display: block;
  position: relative;
  font-weight: 500;
  /* ↓ 17px alto → 10.5px en 768 */
  font-size: clamp(10.5px, 1.25vw, 17px);
  line-height: 1.2;
  padding-inline: clamp(2px, 0.45vw, 8px);
  color: var(--nav-link-color);
  text-decoration: none;
  transition: color var(--transition-time);
  letter-spacing: -0.005em; /* aprieta un pelín */
}

/* Breaks intermedios “todavía más pequeño” */
@media (max-width: 1100px) {
  .main-nav ul {
    gap: clamp(2px, 1.1vw, 14px);
  }
  .main-nav a {
    font-size: clamp(10px, 1.15vw, 15.5px);
  }
}
@media (max-width: 980px) {
  .main-nav ul {
    gap: clamp(2px, 0.9vw, 12px);
  }
  .main-nav a {
    font-size: clamp(9.8px, 1.1vw, 14.5px);
  }
}

@media (max-width: 768px) {
  .container {
    justify-content: flex-start;
  }

  #theme-toggle {
    margin-left: auto;
  }

  .main-nav {
    background-color: rgba(255, 255, 255, 0.4);
    color: #000;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    padding: 20px 10px;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    text-align: center;
    z-index: 1000;
  }

  .main-nav ul {
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
  }

  .main-nav li {
    margin: 10px 0;
  }

  .main-nav a {
    font-size: 1.3rem;
    color: var(--nav-link-color);
    text-decoration: none;
    transition: color 0.3s;
  }

  .main-nav a:hover {
    color: var(--accent-color);
  }

  .main-nav.open {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
  }

  .logo {
    margin-left: 20px;
    margin-right: 5px;
    margin-top: 0;
    margin-bottom: 0;
    cursor: pointer;
  }

  .logo-image {
    width: 100px;
    height: auto;
    padding: 5px;
    display: block;
    transition: transform var(--transition-time);
  }
}

/* Estados */
.main-nav a:hover {
  color: var(--primary-color);
}
.main-nav a.active {
  font-weight: 700;
  color: var(--primary-color);
}

.main-nav.open {
  display: flex;
  max-height: 700px;
  background-color: var(--background);
  border-bottom-right-radius: var(--border-radius);
}

/* =============================== */
/* 🌍 SELECTOR DE IDIOMAS (FIX)    */
/* =============================== */

/* 1. Contenedor (El <li>): Forzamos fila horizontal */
.main-nav ul li.lang-selector {
    display: flex !important;       /* ¡Importante! Pone ES y EN en fila */
    align-items: center;
    justify-content: center;
    gap: 5px;                       /* Espacio entre elementos */
    margin-left: clamp(10px, 2vw, 20px); /* Separación del resto del menú */
    padding-left: clamp(10px, 2vw, 20px);
    border-left: 1px solid var(--nav-link-color); /* Línea separadora que respeta el tema */
    height: 20px;                   /* Altura controlada */
    opacity: 0.8;
}

/* 2. Enlaces (Los <a>): Anulamos el 'display: block' general */
.lang-selector a {
    display: inline-block !important; /* <--- La clave: comportarse como texto, no como bloque */
    width: auto !important;
    padding: 2px 4px !important;      /* Padding más pequeño que el menú normal */
    font-size: 0.85rem !important;    /* Un pelín más pequeño */
    font-weight: 500;
}

/* 3. Estado Activo (El idioma seleccionado) */
.lang-selector a.active-lang {
    color: var(--primary-color, #6c28f4);
    font-weight: 800;
    cursor: default;
}

/* 4. Separador de texto (|) si usas texto plano entre medias */
.lang-selector span {
    font-size: 0.85rem;
    color: var(--nav-link-color);
}

/* --- MÓVIL (Ajuste para tu menú hamburguesa) --- */
@media (max-width: 768px) {
    .main-nav ul li.lang-selector {
        border-left: none;          /* Sin línea en móvil */
        margin-left: 0;
        margin-top: 15px;           /* Espacio vertical */
        padding-left: 0;
        width: 100%;                /* Ancho completo para centrar */
        justify-content: center;    /* Centrado horizontal */
    }
    
    .lang-selector a {
        font-size: 1rem !important; /* Un poco más grande en móvil para el dedo */
    }
}

/* =========================================
   4. HERO SECTION (La Joya)
   ========================================= */
.bio-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 2rem 5% 4rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 80vh;

  /* Fondo "Aurora" con tus colores */
  background-image: radial-gradient(
      circle at 70% 50%,
      rgba(108, 40, 244, 0.15) 0%,
      transparent 50%
    ),
    /* Tu Púrpura */
      radial-gradient(
        circle at 30% 20%,
        rgba(59, 130, 246, 0.08) 0%,
        transparent 40%
      ); /* Azul Tech */
}

/* Texto Izquierda */
.bio-text {
  flex: 1;
  max-width: 600px;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards 0.1s;
}

.bio-text h1 {
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    
    /* 1. Definimos la altura de cada línea */
    line-height: 1.2; 
    
    /* 2. Reservamos espacio para EXACTAMENTE 3 líneas */
    /* Matemática: 1.2 (altura) x 3 (líneas) = 3.6em */
    /* Le damos un pelín más (3.7em) por si hay letras que bajan como la 'g' o 'p' */
    min-height: 3.7em; 
    
    margin-bottom: 1.5rem;
    color: var(--text-main);
    
    /* 3. Alinear al inicio (Arriba) */
    /* Esto hace que si hay menos texto, el hueco vacío quede abajo y no mueva nada */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Efecto Máquina de Escribir (Cursor Ajustado) */
.txt-rotate {
  color: var(--primary-color);
}

.txt-rotate > .wrap {
  /* Quitamos el border-right antiguo */
  /*position: relative;*/
  /*display: inline-block;*/
}

/* El nuevo cursor personalizable */
.txt-rotate > .wrap::after {
  content: '';
  display: inline-block; 
  vertical-align: bottom;
  
  margin-bottom: 0.15em; 
  margin-left: 5px; /* Un pelín de aire respecto a la letra */

  /* TAMAÑO PERSONALIZADO (Lo que querías) */
  width: 0.08em;   /* Grosor */
  height: 0.65em;  /* Altura controlada (más pequeño que la línea) */
  
  background-color: var(--secondary-color); /* Tu verde */
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Botones (Estilo .cta-button heredado) */
.bio-cta-group {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
}

.btn-hero {
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(108, 40, 244, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary-color);
  color: var(--primary-color) !important;
  background: transparent;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(108, 40, 244, 0.4);
}

/* --- FIX BOTONES EN MÓVILES PEQUEÑOS (< 480px) --- */
@media (max-width: 480px) {
    /* Hacemos que el contenedor apile los elementos */
    .bio-cta-group {
        flex-direction: column; /* Uno encima de otro */
        width: 100%;            /* Ocupar todo el ancho */
        gap: 12px;              /* Un poco menos de separación vertical */
        padding: 0 20px;        /* Margen de seguridad lateral */
    }

    /* Hacemos que los botones sean de ancho completo */
    .btn-hero {
        width: 100%;            /* Botón gigante (fácil de pulsar) */
        display: flex;          /* Para centrar bien el texto */
        justify-content: center;
        align-items: center;
        text-align: center;
        white-space: nowrap;    /* Intentar forzar una línea si cabe */
        padding: 16px 20px;     /* Padding cómodo */
    }
}

/* =========================================
   5. IPHONE MOCKUP (Pro Design)
   ========================================= */
.bio-phone-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
  margin: 0;
  padding: 0;
}

.iphone-mockup {
  width: 280px; /* Ancho compacto */
  height: 580px; /* Alto compacto */
  background: #fff;

  /* Borde fino estilo iPhone 15 Pro */
  border: 8px solid var(--mockup-border, #1a1a1a);

  border-radius: 45px;
  position: relative;
  overflow: hidden;

  /* Sombra realista + Brillo metálico interno */
  box-shadow: var(
    --mockup-glow,
    0 30px 60px -12px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1)
  );

  box-sizing: content-box;
  margin: 0 auto; /* Asegura centrado */
}

/* Notch (Muesca superior) Refinado */
.iphone-mockup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px; /* Notch pequeño */
  height: 18px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

/* Pantalla interior */
.phone-screen {
  height: 100%;
  overflow-y: hidden;
  background: linear-gradient(180deg, #f3e7ff 0%, #ffffff 100%);
  padding: 2.5rem 1.2rem 10px; /* Padding inferior pequeño */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Avatar */
.phone-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: white;
  padding: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 0.5rem auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}

.phone-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.logo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f8fafc; /* Fondo gris muy clarito */
  border: 2px dashed #cbd5e1; /* Borde discontinuo */
  display: flex;
  flex-direction: column; /* Para que 'Tu' y 'Logo' queden uno encima de otro */
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 800;
  font-size: 0.75rem; /* Ajustado para el tamaño del móvil */
  text-transform: uppercase;
  line-height: 1.1;
  padding: 2px;
}

/* Textos del móvil */
.phone-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.2rem;
  color: #333;
  font-family: var(--font-heading);
  flex-shrink: 0;
}

.phone-desc {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.2rem;
  line-height: 1.3;
  padding: 0 10px;
  flex-shrink: 0;
}

/* =========================================
   AJUSTE DE ENLACES (Dieta Estricta 5 botones)
   ========================================= */

/* 1. El Botón Contenedor */
.phone-btn {
    position: relative; /* IMPRESCINDIBLE: Es el ancla para el icono */
    display: flex !important;
    align-items: center;
    justify-content: center; /* Esto fuerza al texto a estar en el centro absoluto */
    
    padding: 10px 15px !important; /* Un poco más de aire para dedos táctiles */
    background: white;
    
    /* Si tienes la variable definida, genial. Si no, usa el morado #8b5cf6 */
    border: 2px solid var(--primary-color, #8b5cf6);
    color: var(--primary-color, #8b5cf6) !important;
    
    border-radius: 50px; /* Estilo píldora (más moderno que 12px) */
    margin-bottom: 10px;
    
    font-weight: 600;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Efecto Hover */
.phone-btn:hover {
    transform: translateY(-2px); /* Elevación sutil */
    background: var(--primary-color, #8b5cf6);
    color: white !important;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* 2. El Icono (FontAwesome) pegado a la izquierda */
.phone-btn i {
    position: absolute; /* Lo sacamos del flujo normal */
    left: 18px;         /* Pegado a la izquierda con margen */
    font-size: 1.1rem;  /* Tamaño del icono */
    
    /* Nota: No usamos 'fill' porque FontAwesome hereda el color del texto automáticamente */
}

/* 3. Botón "Cuenta Gratis" (Destacado pero fino) */
.phone-btn.highlight-btn {
  font-weight: 700;
}

/* --- FOOTER VIRAL (BADGE) --- */
.wfp-footer {
  width: 100%;
  margin-top: auto;
  padding-top: 15px;
  padding-bottom: 5px;
  text-align: center;
  display: flex;
  justify-content: center;
}

.wfp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #555;
  font-family: -apple-system, sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.wfp-badge strong {
  font-weight: 700;
  color: var(--primary-color);
}

.wfp-badge:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  color: #000;
}

.wfp-logo-mini {
  width: 12px;
  height: 12px;
  object-fit: contain;
  opacity: 0.8;
}

/* --- ANIMACIONES DE ENTRADA --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bio-text {
  opacity: 0; /* Empieza invisible */
  animation: fadeInUp 0.8s ease-out forwards; /* Aparece en 0.8s */
  animation-delay: 0.1s; /* Pequeña pausa inicial */
}

.bio-phone-wrapper {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s; /* Aparece un pelín después del texto (efecto cascada) */
}

/* Responsive */
@media (max-width: 900px) {
  .bio-hero {
    flex-direction: column;
    align-items: center; /* IMPORTANTE: Centrar en móvil */
    text-align: center;
    padding-top: 2rem;
    gap: 3rem;
  }

  .bio-text {
    margin: 0 auto;
  }
  .bio-cta-group {
    justify-content: center;
  }
  
  /* FIX MOCKUP: Mantener altura "Alta" también en móvil */
    .iphone-mockup { 
        width: 260px;       /* Mantenemos el ancho cómodo */
        height: 580px;      /* <--- CLAVE: Forzamos la altura de 580px aquí también */
        border-width: 8px; 
    }
    
    .iphone-mockup::before { 
        width: 100px;       /* Ajuste notch acorde al ancho */
        height: 18px; 
        border-radius: 0 0 14px 14px; 
    }
    
    .features-grid { margin-top: 2rem; }
   
    
}

/* =========================================
   6. FEATURES GRID (Toque Verde WFP)
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(300px, 1fr)
  ); /* Responsivo automático */
  gap: 25px;
  max-width: 1200px;
  margin: -2rem auto 6rem; /* Margen negativo para subirlo y que se acerque al iPhone */
  padding: 0 5%;
  position: relative;
  z-index: 2; /* Por encima de cualquier fondo */
}

.feature-card {
  background: var(--card-bg); /* REACCIONA: Blanco en Light, Oscuro en Dark */
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color); /* REACCIONA */
  padding: 30px;
  border-radius: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  text-align: left;
  box-shadow: var(--shadow-card); /* REACCIONA */
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
  box-shadow: var(--shadow-hover);
}

.feature-card.highlight {
  /* Fondo especial dependiendo del modo */
  background: var(--card-bg);
  border: 1px solid rgba(43, 157, 109, 0.3);
}
/* En modo oscuro, le damos un degradado sutil a la destacada */
[data-theme="dark"] .feature-card.highlight {
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.9),
    rgba(15, 23, 42, 0.95)
  );
}

.icon-box {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--secondary-color);
  filter: var(--icon-filter); /* Glow solo en Dark Mode */
}

.feature-card h3 {
  color: var(--text-main);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Ajuste Móvil */
@media (max-width: 900px) {
  .features-grid {
    margin-top: 2rem; /* En móvil quitamos el margen negativo */
    text-align: center;
  }
  .feature-card {
    text-align: center;
  }
}

/* =========================================
   7. FAQ SECTION
   ========================================= */
.geo-faq-container {
  max-width: 800px;
  margin: 4rem auto 6rem;
  padding: 0 5%;
}
.geo-faq-container h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--text-main);
}

.faq-item {
  background-color: transparent;
  color: var(--text-color);
  border-bottom: 2px solid rgba(var(--secondary-color-rgb), 0.3);
  padding: 1rem 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  padding-left: 2rem;
  position: relative;
  list-style: none;
  margin-bottom: 0.5rem;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: "–";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item:last-of-type {
  border-bottom: none;
}

.faq-answer {
  font-size: 1rem;
  color: var(--text-color);
  padding-left: 2rem;
  line-height: 1.6;
}

/* Foco accesible en summary */
.faq-item summary:focus-visible {
  outline: 2px solid #7c3aed; /* morado accesible */
  outline-offset: 3px;
  border-radius: 6px;
}

/* Ocultar marcador en Safari también */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Preferencias de movimiento */
@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after {
    transition: none;
  }
}

/* =========================================
   8. FOOTER GLOBAL
   ========================================= */
.main-footer {
  margin: 0 auto;
  padding: 25px 3.5% 25px;
  box-sizing: border-box;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--text-tertiary-color);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  padding: 25px;
  max-width: 1900px;
}

.footer-column {
  flex: 1 1 1;
  min-width: 250px;
}

.footer-title {
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 3;
  color: var(--text-tertiary-color);
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 10%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background-color: var(--text-tertiary-color);
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
  line-height: 2;
}

.footer-contact img {
  width: 20px;
  height: 20px;
}

.footer-column p {
  line-height: 3;
}

.footer-column a {
  color: var(--text-tertiary-color);
  text-decoration: none;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.footer-column a:hover {
  color: var(--secondary-color);
  font-weight: bold;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-tertiary-color);
  text-decoration: none;
  font-weight: normal;
  transition: color 0.3s ease, font-weight 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
  font-weight: bold;
}

/* =========================================
   RRSS ICONOS (Actualizado para FontAwesome)
   ========================================= */
.social-icons {
  display: flex;
  gap: 25px;            /* Un pelín más juntos que antes (40px era mucho) */
  align-items: center;  /* Centrado vertical perfecto */
}

/* El enlace que envuelve al icono */
.social-icons a {
  color: var(--text-tertiary-color); /* Blanco (tu variable del footer) */
  font-size: 1.8rem;                 /* 🔍 Tamaño aumentado (aprox 28-30px) */
  text-decoration: none;
  display: inline-block;             /* Necesario para que el zoom funcione bien */
  transition: transform 0.3s ease;   /* Suavidad en la animación */
}

/* HOVER: Solo Zoom, bloqueamos el cambio de color */
.social-icons a:hover {
  transform: scale(1.2);             /* 🚀 El efecto Zoom (crece un 20%) */
  
  /* 🛡️ PROTECCIÓN: Evitamos que herede el estilo de los enlaces de texto */
  color: var(--text-tertiary-color); /* Se mantiene blanco */
  font-weight: normal;               /* No se pone en negrita */
}

/* Eliminamos la regla antigua de 'img' porque ya no usas imágenes SVG aquí */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-tertiary-color);
  border-top: 2px solid var(--secondary-color);
}

.footer-legal-links {
  margin-top: 10px;
  font-size: 0.85rem;
}

.footer-legal-links a {
  color: var(--text-tertiary-color);
  text-decoration: none;
  margin: 0 6px;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--secondary-color);
}

/* =============================== Whattsapp Section =============================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  border-radius: 50px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background: #1ebe57;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

/* =========================================
   ICONOS PERSONALIZADOS (WFP)
   ========================================= */
.fa-wfp-logo {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('/favicon.ico'); /* Tu favicon */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: -0.125em;
}

/* Anulamos el contenido de FontAwesome por si acaso */
.fa-wfp-logo::before { content: "" !important; }

/* ==========================================================================
   ☕ SECCIÓN SOPORTE (La tarjeta "¿Crecemos Juntos?" del Index)
   ========================================================================== */

/* 1. Animación del latido */
@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.2); }
    28% { transform: scale(1); }
    42% { transform: scale(1.2); }
    70% { transform: scale(1); }
}

/* 2. Contenedores de la sección */
.support-section {
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.support-container {
    max-width: 850px;
    margin: 0 auto;
    background: var(--card-bg); /* Variable del tema */
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px -5px rgba(108, 40, 244, 0.1);
    border: 1px dashed rgba(108, 40, 244, 0.3);
}

.support-container h3 {
    margin: 0 0 15px 0;
    font-size: 1.6rem;
    color: var(--text-main);
    font-weight: 800;
}

.support-container p {
    margin: 0 auto 30px auto;
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* 3. EL BOTÓN UNIFICADO (Grande + Bonito) */
.btn-support {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
    /* TAMAÑO (Del segundo bloque - Más legible) */
    padding: 14px 35px;
    font-size: 1rem;
    
    /* ESTÉTICA (Del primer bloque - Más Premium) */
    background: linear-gradient(135deg, #6c28f4, #4a1bbd);
    color: white !important;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 15px rgba(108, 40, 244, 0.3);
    
    /* ANIMACIÓN (Suave) */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.btn-support:hover {
    transform: translateY(-2px) scale(1.05); /* Crece un poquito */
    box-shadow: 0 6px 20px rgba(108, 40, 244, 0.5);
    filter: brightness(1.1); /* Brilla más */
}

.btn-support i {
    animation: heartbeat 1.5s infinite;
}

/* 4. Detalles finales */
.check-icon, .dot-accent {
    color: var(--primary-color);
}