/* ============================================================================
   EnglishMAX Online · LANDING PAGE — solo lo necesario
   ============================================================================ */

/* ============ TEMA DE LA LANDING ============
   La landing se diseñó solo en oscuro, con los colores escritos directo, y por eso
   index.aspx escondía el botón de tema. Ahora todos los colores propios pasan por estas
   variables: los oscuros son los de antes (algunas transparencias casi iguales quedaron
   en una sola) y los claros cumplen contraste de texto >= 4.5:1 y de acentos >= 3:1. */
html.landing-page {
    --ld-fondo: #0A0E1A;
    --ld-texto: #E8ECF4;
    --ld-titulo: #F5F8FF;
    --ld-tenue: rgba(232,236,244,0.7);
    --ld-tenue-2: rgba(232,236,244,0.55);
    --ld-acento: #4DD0E1;
    --ld-acento-suave: rgba(77,208,225,0.15);
    --ld-borde: rgba(77,208,225,0.15);
    --ld-borde-fuerte: rgba(77,208,225,0.4);
    --ld-borde-mockup: rgba(77,208,225,0.2);
    --ld-sombra-mockup: 0 30px 80px rgba(0,0,0,0.6), 0 10px 30px rgba(77,208,225,0.1), inset 0 1px 0 rgba(255,255,255,0.05);
    --ld-sombra-numero: 0 8px 24px rgba(0,0,0,0.4), 0 0 30px rgba(77,208,225,0.3);
    --ld-brillo: rgba(77,208,225,0.4);
    --ld-tarjeta: linear-gradient(145deg, rgba(30,40,65,0.85), rgba(20,28,48,0.95));
    --ld-tarjeta-solida: linear-gradient(145deg, rgba(30,40,65,0.95), rgba(20,28,48,0.95));
    --ld-mockup: linear-gradient(145deg, rgba(28,36,55,0.9), rgba(15,20,35,0.95));
    --ld-sombra: 0 10px 40px rgba(0,0,0,0.4);
    --ld-sombra-hover: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(77,208,225,0.15);
    --ld-sombra-grande: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(77,208,225,0.1);
    --ld-sombra-burbuja: 0 2px 8px rgba(0,0,0,0.3);
    --ld-burbuja: rgba(40,50,75,0.8);
    --ld-burbuja-texto: #E8ECF4;
    --ld-panel: rgba(15,21,40,0.6);
    --ld-pill: rgba(40,50,75,0.7);
    --ld-pill-borde: rgba(77,208,225,0.25);
    --ld-dot: rgba(255,255,255,0.15);
    --ld-faq: rgba(20,28,48,0.5);
    --ld-interruptor: rgba(40,50,75,0.8);
    --ld-tinte-azul: rgba(23,54,93,0.35);
    --ld-tinte-azul-suave: rgba(23,54,93,0.18);
    --ld-tinte-cian: rgba(77,208,225,0.12);
    --ld-tinte-cian-suave: rgba(77,208,225,0.06);
    --ld-tinte-brand: rgba(74,144,226,0.12);
}
html.landing-page[data-theme="light"] {
    --ld-fondo: #F4F7FB;
    --ld-texto: #1C2433;
    --ld-titulo: #0E1A30;
    --ld-tenue: #4F5B73;
    --ld-tenue-2: #5E6A82;
    --ld-acento: #0B7285;
    --ld-acento-suave: rgba(11,114,133,0.10);
    --ld-borde: rgba(14,26,48,0.10);
    --ld-borde-fuerte: rgba(21,151,168,0.55);
    --ld-borde-mockup: rgba(14,26,48,0.10);
    --ld-sombra-mockup: 0 30px 70px rgba(14,26,48,0.14), 0 0 0 1px rgba(14,26,48,0.04);
    --ld-sombra-numero: 0 6px 18px rgba(14,26,48,0.10);
    --ld-brillo: transparent;
    --ld-tarjeta: #FFFFFF;
    --ld-tarjeta-solida: #FFFFFF;
    --ld-mockup: #FFFFFF;
    --ld-sombra: 0 10px 30px rgba(14,26,48,0.08);
    --ld-sombra-hover: 0 18px 44px rgba(14,26,48,0.14);
    --ld-sombra-grande: 0 24px 60px rgba(14,26,48,0.12), 0 0 0 1px rgba(14,26,48,0.06);
    --ld-sombra-burbuja: none;
    --ld-burbuja: #EEF2F8;
    --ld-burbuja-texto: #1C2433;
    --ld-panel: #F4F7FB;
    --ld-pill: #FFFFFF;
    --ld-pill-borde: rgba(14,26,48,0.14);
    --ld-dot: #C5CFDD;
    --ld-faq: #FFFFFF;
    --ld-interruptor: #7D8AA0;
    --ld-tinte-azul: rgba(74,144,226,0.10);
    --ld-tinte-azul-suave: rgba(74,144,226,0.06);
    --ld-tinte-cian: rgba(21,151,168,0.08);
    --ld-tinte-cian-suave: rgba(21,151,168,0.04);
    --ld-tinte-brand: rgba(74,144,226,0.08);
}

html.landing-page body {
    background: var(--ld-fondo) !important;
    color: var(--ld-texto);
}

/* ============ SECTION HEADER ============ */
.sect-hdr { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sect-hdr h2 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 16px; letter-spacing: -0.03em; font-weight: 800; }
.sect-hdr p { font-size: 19px; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* ============ ALL SECTIONS — con fade suave entre ellas ============ */
.howit-section,
.demo-section,
.pricing-v2-section,
.faq-section-v2 {
    padding: 80px 24px;
    position: relative;
}

/* Fade superior e inferior para transición suave entre secciones */
.howit-section::before,
.demo-section::before,
.pricing-v2-section::before,
.faq-section-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(to bottom, var(--ld-fondo), transparent);
    pointer-events: none;
    z-index: 1;
}
.howit-section::after,
.demo-section::after,
.pricing-v2-section::after,
.faq-section-v2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50px;
    background: linear-gradient(to top, var(--ld-fondo), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Contenido de cada sección por encima de los fades */
.howit-grid,
.demo-container,
.ios-pricing-grid,
.faq-grid {
    position: relative;
    z-index: 2;
}

/* Cada sección con su propia ambientación */
.howit-section {
    background: radial-gradient(ellipse at bottom, var(--ld-tinte-brand), transparent 60%), var(--ld-fondo);
}
.demo-section {
    background: radial-gradient(ellipse at 30% 50%, var(--ld-tinte-azul), transparent 60%), var(--ld-fondo);
}
.pricing-v2-section {
    background:
        radial-gradient(ellipse at top, var(--ld-tinte-azul), transparent 55%),
        radial-gradient(ellipse at bottom, var(--ld-tinte-cian), transparent 60%),
        var(--ld-fondo);
}
.faq-section-v2 {
    background: radial-gradient(ellipse at 50% 50%, var(--ld-tinte-azul-suave), transparent 60%), var(--ld-fondo);
}

/* ============ HERO LAYOUT (mockup + grid) ============ */
.hero-inner {
    position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center;
}
@media (max-width: 1024px) { .hero-inner { grid-template-columns: 1fr; gap: 60px; text-align: center; } }

.hero-text-col { position: relative; }
.hero-visual-col { position: relative; perspective: 1000px; }

/* ===== HERO MOCKUP ===== */
.hero-mockup-stack { position: relative; }

.hero-mockup {
    background: var(--ld-mockup);
    border-radius: 32px; padding: 24px 20px;
    border: 1px solid var(--ld-borde-mockup);
    box-shadow: var(--ld-sombra-mockup);
    transform: rotate3d(0,1,0.1,-8deg);
    transition: transform 800ms var(--ease-ios);
    backdrop-filter: blur(20px);
}
.hero-mockup:hover { transform: rotate3d(0,1,0.1,-4deg) translateY(-8px); }

.mockup-chat-head {
    display: flex; align-items: center; gap: 12px;
    padding-bottom: 16px; border-bottom: 1px solid var(--ld-borde);
    margin-bottom: 16px;
}
.mockup-chat-head .avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #007AFF, #5856D6);
    display: grid; place-items: center; color: #fff; font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,122,255,.35);
}
.mockup-chat-head .info { flex: 1; }
.mockup-chat-head .name { font-size: 15px; font-weight: 700; color: var(--ld-titulo); }
.mockup-chat-head .sub { font-size: 12px; color: var(--ld-tenue-2); }
.mockup-chat-head .status-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--ios-green);
    box-shadow: 0 0 0 0 rgba(52,199,89,.6); animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52,199,89,.6); }
    50% { box-shadow: 0 0 0 8px rgba(52,199,89,0); }
}

.mockup-messages { display: flex; flex-direction: column; gap: 10px; max-height: 360px; overflow: hidden; }
.mockup-msg {
    max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 14px;
    line-height: 1.4; animation: msg-in 600ms var(--ease-ios) both;
}
.mockup-msg.ai {
    background: var(--ld-burbuja); color: var(--ld-burbuja-texto);
    box-shadow: var(--ld-sombra-burbuja);
    align-self: flex-start; border-bottom-left-radius: 4px;
}
.mockup-msg.user {
    background: linear-gradient(135deg, #17365D, #4A90E2); color: #fff;
    align-self: flex-end; border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(23,54,93,.25);
}
.mockup-msg.ai.typing::after {
    content: '●●●'; display: inline-block;
    animation: typing-dots 1.4s infinite; letter-spacing: 2px;
    color: var(--text-tertiary);
}

@keyframes typing-dots {
    0%,20% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}
@keyframes msg-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mockup-msg.ai:nth-child(1) { animation-delay: 0.2s; }
.mockup-msg.user:nth-child(2) { animation-delay: 0.8s; }
.mockup-msg.ai:nth-child(3) { animation-delay: 1.4s; }
.mockup-msg.user:nth-child(4) { animation-delay: 2s; }

/* ============ FEATURES CAROUSEL ============ */
/* FAQ → CTA: el CTA es azul marino en los dos temas y empieza con #0F2447 */
.faq-section-v2::after {
    background: linear-gradient(to top, #0F2447, transparent);
}

.features-section {
    padding: 60px 0 80px;
    background: radial-gradient(ellipse at 50% 30%, var(--ld-tinte-cian-suave), transparent 60%), var(--ld-fondo);
    position: relative;
    overflow: hidden;
}
/* Fade en los bordes del carrusel */
.features-section::before,
.features-section::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 60px;
    z-index: 3;
    pointer-events: none;
}
.features-section::before {
    left: 0;
    background: linear-gradient(to right, var(--ld-fondo), transparent);
}
.features-section::after {
    right: 0;
    background: linear-gradient(to left, var(--ld-fondo), transparent);
}

.features-carousel {
    overflow: hidden;
    position: relative;
}
.features-track {
    display: flex;
    gap: 40px;
    padding: 20px 0 40px;
    width: max-content;
}
.feature-slide {
    width: 75vw;
    max-width: 520px;
    flex-shrink: 0;
    padding: 48px 36px;
    border-radius: 28px;
    text-align: center;
    background: var(--ld-tarjeta);
    border: 1px solid var(--ld-borde);
    backdrop-filter: blur(10px);
    box-shadow: var(--ld-sombra);
    transition: border-color 300ms, box-shadow 300ms;
}
.feature-slide:hover {
    border-color: var(--ld-borde-fuerte);
    box-shadow: var(--ld-sombra-hover);
}
.feature-slide-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    display: grid; place-items: center;
    font-size: 32px;
    margin: 0 auto 24px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.feature-slide h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--ld-titulo);
    margin-bottom: 12px;
}
.feature-slide p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--ld-tenue);
    margin: 0;
}

/* Dots del carrusel */
.features-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px 0;
    position: relative;
    z-index: 3;
}
.feature-dot {
    width: 32px; height: 4px;
    border-radius: 2px;
    border: 0;
    background: var(--ld-dot);
    cursor: pointer;
    transition: all 300ms;
    padding: 0;
}
.feature-dot.active {
    background: var(--ld-acento);
    width: 48px;
    box-shadow: 0 0 12px var(--ld-brillo);
}

/* Responsive carrusel */
@media (max-width: 640px) {
    .feature-slide {
        width: 82vw;
        padding: 36px 24px;
    }
    .feature-slide h3 { font-size: 19px; }
    .feature-slide p { font-size: 14px; }
}
.howit-grid {
    max-width: 1100px; margin: 60px auto 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px; position: relative;
}
.howit-grid::before {
    content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, #17365D, #4A90E2, #4DD0E1, #8ACD88, #F4D06F);
    opacity: 0.4; box-shadow: 0 0 20px rgba(77,208,225,0.3);
}
@media (max-width: 768px) { .howit-grid::before { display: none; } }
.howit-step { position: relative; text-align: center; }
.howit-num {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: var(--ld-tarjeta-solida);
    border-radius: 50%;
    display: grid; place-items: center;
    font-size: 22px; font-weight: 800;
    border: 2px solid var(--ld-acento); color: var(--ld-acento);
    box-shadow: var(--ld-sombra-numero);
    position: relative; z-index: 1;
}
.howit-step h4 { font-size: 18px; margin-bottom: 8px; color: var(--ld-titulo); }
.howit-step p { color: var(--ld-tenue); font-size: 14px; line-height: 1.5; margin: 0; }

/* ============ DEMO INTERACTIVA ============ */
.demo-container {
    max-width: 800px; margin: 0 auto;
    background: var(--ld-tarjeta);
    border-radius: 28px;
    border: 1px solid var(--ld-borde);
    box-shadow: var(--ld-sombra-grande);
    overflow: hidden;
}
.demo-header {
    background: linear-gradient(135deg, #17365D, #4A90E2, #4DD0E1);
    color: #fff; padding: 28px;
    display: flex; align-items: center; gap: 16px;
    position: relative; overflow: hidden;
}
.demo-header::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(138,205,136,.3), transparent 50%),
                radial-gradient(ellipse at 20% 80%, rgba(244,208,111,.25), transparent 50%);
}
.demo-header > * { position: relative; z-index: 1; }
.demo-header .avatar { width: 48px; height: 48px; background: rgba(255,255,255,.2); border-radius: 50%; display: grid; place-items: center; font-size: 24px; }
.demo-header h3 { color: #fff; margin: 0; font-size: 18px; }
.demo-header p { color: rgba(255,255,255,.85); margin: 0; font-size: 13px; }

.demo-body { padding: 24px; min-height: 300px; max-height: 400px; overflow-y: auto; }
.demo-msg { display: flex; gap: 10px; margin-bottom: 16px; }
.demo-msg.user { flex-direction: row-reverse; }
.demo-msg .bubble { max-width: 75%; padding: 12px 18px; border-radius: 20px; font-size: 15px; line-height: 1.5; }
.demo-msg.ai .bubble { background: var(--ld-burbuja); color: var(--ld-burbuja-texto); }
.demo-msg.user .bubble { background: linear-gradient(135deg, #17365D, #4A90E2); color: #fff; border-bottom-right-radius: 4px; }

.demo-suggestions {
    padding: 16px 24px;
    background: var(--ld-panel);
    border-top: 1px solid var(--ld-borde);
}
.demo-suggestions-title { font-size: 12px; color: var(--ld-acento); margin-bottom: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.demo-sugg-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-sugg-pill {
    background: var(--ld-pill);
    border: 1px solid var(--ld-pill-borde);
    padding: 8px 14px; border-radius: 999px; font-size: 13px;
    color: var(--ld-texto); cursor: pointer; font-weight: 500;
    transition: all 200ms;
}
.demo-sugg-pill:hover {
    background: var(--ld-acento-suave);
    border-color: var(--ld-borde-fuerte);
    color: var(--ld-acento); transform: translateY(-1px);
}

/* ============ PRICING ============ */
.pricing-toggle-v2 {
    display: flex; justify-content: center; align-items: center;
    gap: 16px; margin: 40px auto 48px; font-size: 16px; font-weight: 500;
    color: var(--ld-tenue);
}
.pricing-toggle-switch { position: relative; width: 56px; height: 32px; }
.pricing-toggle-switch input { opacity: 0; width: 0; height: 0; }
.pricing-toggle-slider {
    position: absolute; inset: 0;
    background: var(--ld-interruptor);
    border: 1px solid var(--ld-borde);
    border-radius: 999px; cursor: pointer; transition: 200ms;
}
.pricing-toggle-slider::before {
    content: ''; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: 200ms;
}
.pricing-toggle-switch input:checked + .pricing-toggle-slider { background: var(--ld-acento); }
.pricing-toggle-switch input:checked + .pricing-toggle-slider::before { transform: translateX(24px); }
.pricing-toggle-switch input:focus-visible + .pricing-toggle-slider { outline: 2px solid var(--ld-acento); outline-offset: 3px; }
.save-chip {
    background: linear-gradient(135deg, #34C759, #00C7BE); color: #fff;
    padding: 4px 12px; border-radius: 999px; font-size: 12px;
    font-weight: 800; letter-spacing: 0.5px; margin-left: 4px;
}

/* Featured ribbon for ios-pricing-card */
.ios-pricing-card.featured::before {
    content: '🔥 MÁS POPULAR'; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #F4D06F, #D4A845); color: #fff;
    padding: 6px 16px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
    box-shadow: 0 6px 16px rgba(255,45,85,.35);
}

/* ============ FAQ ============ */
.faq-grid {
    max-width: 900px; margin: 60px auto 0;
    background: var(--ld-faq);
    border-radius: 24px; padding: 12px;
    border: 1px solid var(--ld-borde);
    backdrop-filter: blur(10px);
}

/* ============ CTA FINAL (azul marino en los dos temas) ============ */
.cta-mega {
    padding: 150px 24px;
    background:
        radial-gradient(ellipse 1000px 600px at 10% 20%, rgba(77,208,225,0.4), transparent 50%),
        radial-gradient(ellipse 900px 500px at 90% 30%, rgba(138,205,136,0.25), transparent 55%),
        radial-gradient(ellipse 800px 500px at 50% 90%, rgba(244,208,111,0.2), transparent 55%),
        radial-gradient(ellipse 600px 400px at 20% 80%, rgba(74,144,226,0.3), transparent 55%),
        linear-gradient(180deg, #0F2447 0%, #1C1C1E 100%);
    color: #fff; text-align: center;
    position: relative; overflow: hidden;
}
.cta-mega::before {
    content: ''; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23ffffff' opacity='0.15'/%3E%3C/svg%3E");
    background-size: 30px 30px; opacity: 0.5;
}
.cta-mega-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.cta-mega h2 {
    color: #fff; font-size: clamp(40px, 6vw, 68px); font-weight: 900;
    line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 20px;
}
.cta-mega p { color: rgba(255,255,255,.75); font-size: 20px; margin-bottom: 40px; }

/* ============ HERO: toma el fondo de la landing en los dos temas ============ */
html.landing-page .ios-hero { background: transparent; }

/* ============ DARK MODE OVERRIDES FOR ios-* COMPONENTS ============ */
/* En claro, estas piezas usan su estilo normal de ios-design.css. */

/* Título del hero: invertir gradiente para que sea claro */
[data-theme="dark"] .ios-hero-title {
    background: linear-gradient(180deg, #F5F5F7 0%, #AEAEB2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Pricing cards en dark mode */
[data-theme="dark"] .ios-pricing-card {
    background: linear-gradient(145deg, rgba(30,40,65,0.8), rgba(20,28,48,0.9));
    border: 1px solid rgba(77,208,225,0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(77,208,225,0.05);
}
[data-theme="dark"] .ios-pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(77,208,225,0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(77,208,225,0.2);
}
[data-theme="dark"] .ios-pricing-card.featured {
    background: linear-gradient(180deg, rgba(77,208,225,0.15) 0%, rgba(74,144,226,0.08) 50%, rgba(30,40,65,0.9) 100%);
    border: 2px solid #4DD0E1;
    box-shadow: 0 0 0 1px #4DD0E1, 0 20px 60px rgba(77,208,225,0.25), 0 0 80px rgba(77,208,225,0.15);
}
[data-theme="dark"] .ios-pricing-name { color: #F5F8FF; }
[data-theme="dark"] .ios-pricing-desc { color: rgba(232,236,244,0.6); }
[data-theme="dark"] .ios-pricing-amount { color: #F5F8FF; }
[data-theme="dark"] .ios-pricing-currency,
[data-theme="dark"] .ios-pricing-period { color: rgba(232,236,244,0.6); }
[data-theme="dark"] .ios-pricing-features li { color: rgba(232,236,244,0.8); }
[data-theme="dark"] .ios-pricing-features li.disabled { color: rgba(232,236,244,0.25); }
[data-theme="dark"] .ios-pricing-features li.disabled::before { background: rgba(255,255,255,0.15); }

/* FAQ en dark mode */
[data-theme="dark"] .ios-faq-item {
    background: linear-gradient(145deg, rgba(30,40,65,0.7), rgba(20,28,48,0.8));
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    margin-bottom: 8px;
    overflow: hidden;
}
[data-theme="dark"] .ios-faq-item.open {
    background: linear-gradient(145deg, rgba(77,208,225,0.08), rgba(30,40,65,0.85));
    border-color: rgba(77,208,225,0.3);
    box-shadow: 0 4px 20px rgba(77,208,225,0.15);
}
[data-theme="dark"] .ios-faq-question { color: #F5F8FF; font-size: 16px; }
[data-theme="dark"] .ios-faq-answer { color: rgba(232,236,244,0.7); }
[data-theme="dark"] .ios-faq-icon { background: rgba(77,208,225,0.15); color: #4DD0E1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
[data-theme="dark"] .ios-faq-item.open .ios-faq-icon { background: #4DD0E1; color: #0A0E1A; }

/* Shine on hover — más visible en oscuro */
.shine-on-hover { position: relative; overflow: hidden; }
.shine-on-hover::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    transition: left 600ms;
}
.shine-on-hover:hover::after { left: 100%; }

/* ============ HERO EN MOBILE ============ */
@media (max-width: 1024px) {
    .ios-hero-title,
    .ios-hero-subtitle {
        text-align: center !important;
    }
    .ios-hero-subtitle {
        margin-left: auto !important;
        margin-right: auto;
    }
    .ios-hero-ctas {
        justify-content: center !important;
    }
}

/* Aviso de marcas dentro de la tarjeta de certificaciones (más discreto que el texto). */
.feature-slide p.emx-marcas-nota {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 14px;
    color: var(--ld-tenue-2);
}

/* ============ VOLVER ARRIBA ============ */
/* Aparece al bajar más de una pantalla y media (js/landing.js). */
.ld-arriba {
    position: fixed; right: 20px; bottom: 20px; z-index: 900;
    width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--ld-borde-fuerte);
    background: var(--ld-tarjeta-solida);
    color: var(--ld-titulo);
    box-shadow: var(--ld-sombra);
    font-size: 22px; cursor: pointer;
    transition: transform 200ms, border-color 200ms;
}
.ld-arriba[hidden] { display: none; }
.ld-arriba:hover { transform: translateY(-2px); border-color: var(--ld-acento); }
.ld-arriba:focus-visible { outline: 2px solid var(--ld-acento); outline-offset: 3px; }
/* Con sesión iniciada (index.aspx?stay=1) la esquina derecha es del botón de Max y abajo
   está la barra de navegación del celular. */
.ld-arriba.ld-arriba-izq { right: auto; left: 20px; }
@media (max-width: 640px) {
    .ld-arriba { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
    .ld-arriba.ld-arriba-izq { right: auto; left: 14px; }
}
@media (max-width: 900px) {
    .ld-arriba.ld-arriba-izq { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

/* Carrusel sin GSAP o con movimiento reducido (js/landing.js pone la clase):
   las tarjetas quedan en una fila con scroll horizontal normal, sin fijar la página. */
html.features-estatico .features-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 0 24px;
}
html.features-estatico .feature-slide { scroll-snap-align: center; }
html.features-estatico .features-dots { display: none; }

@media (prefers-reduced-motion: reduce) {
    .shine-on-hover::after,
    .ios-hero-orb { animation: none !important; }
    .ld-arriba { transition: none; }
}
