/* Landing Page Styles - Optimized Dark Mode */

/* Ocultar scrollbar pero mantener funcionalidad */
.landing-main {
    width: 100%;
    height: calc(100vh - 60px);
    overflow: hidden;
    background: var(--bg-primary);
    position: relative;
}

.landing-container {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

/* Estructura de slides */
.landing-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    pointer-events: none;
}

.landing-section.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.landing-section.exiting {
    opacity: 0;
    transform: translateY(-100%);
}

/* Z-index por orden de aparición */
.landing-section:nth-child(1) { z-index: 1; }
.landing-section:nth-child(2) { z-index: 2; }
.landing-section:nth-child(3) { z-index: 3; }
.landing-section:nth-child(4) { z-index: 4; }
.landing-section:nth-child(5) { z-index: 5; }
.landing-section:nth-child(6) { z-index: 6; }
.landing-section:nth-child(7) { z-index: 7; }
.landing-section:nth-child(8) { z-index: 8; }
.landing-section:nth-child(9) { z-index: 9; }
.landing-section:nth-child(10) { z-index: 10; }
.landing-section:nth-child(11) { z-index: 11; }
.landing-section:nth-child(12) { z-index: 12; }
.landing-section:nth-child(13) { z-index: 13; }
.landing-section:nth-child(14) { z-index: 14; }
.landing-section:nth-child(15) { z-index: 15; }
.landing-section:nth-child(16) { z-index: 16; }

/* Contenido centrado */
.landing-content {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    max-height: 100%;
    overflow-y: auto;
}

/* Statements con glassmorphism mejorado */
.landing-section--statement .landing-content {
    padding: 60px 50px;
    background: rgba(26, 26, 26, 0.8);
    border-left: 6px solid var(--primary);
    border-radius: 0 20px 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(107, 78, 140, 0.2);
    border-left: 6px solid var(--primary);
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.landing-section--statement .landing-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05) 0%, transparent 100%);
    border-radius: 0 20px 20px 0;
    pointer-events: none;
}

/* ========================================
   SISTEMA TIPOGRÁFICO SIMPLIFICADO - 3 NIVELES
   ======================================== */

/* Nivel 3: Texto normal (para narrativa) */
.landing-text {
    font-size: 1.8rem; /* Aumentado para mejor legibilidad */
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Nivel 2: Texto destacado (afirmaciones importantes) */
.landing-text--highlight {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 2rem 0;
}

/* Nivel 1: Hero/Principal (máximo impacto) */
.landing-text--hero {
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary); /* Usa el color primario para máximo impacto */
    line-height: 1.1;
    margin: 2.5rem 0;
    text-shadow: 0 0 50px rgba(255, 107, 157, 0.4);
    letter-spacing: -0.02em;
}

/* Variante italic para spoilers/énfasis */
.landing-text--italic {
    font-style: italic;
    color: var(--primary);
    font-weight: 600;
    font-size: 2rem;
}

/* Statement boxes - version simplificada */
.landing-section--statement .landing-text {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.8rem 0;
}

.landing-section--statement .landing-text--highlight {
    font-size: 2.8rem;
    margin: 2rem 0;
}

.landing-section--statement .landing-text--hero {
    font-size: 3rem;
}

/* Resaltados dentro del texto */
.highlight {
    color: var(--primary);
    font-weight: 700;
}

.highlight--subtle {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========================================
   DISEÑO MEJORADO PARA STATEMENTS - SLIDE 7
   ======================================== */
/* ========================================
   VERSIÓN MÍNIMA ABSOLUTA
   ======================================== */

.minimal-message {
    max-width: 700px;
    margin: 0 auto;
}

.muted-text {
    font-size: 1.7rem;
    color: var(--text-secondary);
    margin: 0.3rem 0;
    font-weight: 400;
    line-height: 1.4;
}

.strong-text {
    font-size: 2rem;
    color: var(--primary);
    margin: 1.6rem 0;
    font-weight: 700;
    line-height: 0.7;
}

.strong-text em {
    color: var(--primary);
    font-style: normal;
    font-weight: 800;
}

/* Simple spacer */
.text-spacer {
    margin: 0.5rem 0;
    opacity: 0.8;
    font-size: 1.5rem;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .muted-text {
        font-size: 1.7rem;
        margin: 0.3rem 0;
    }

    .strong-text {
        font-size: 2rem;
        margin: 1.6rem 0;
        line-height: 0.7;
    }

    .text-spacer {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .muted-text {
        font-size: 1.5rem;
        margin: 0.3rem 0;
    }

    .strong-text {
        font-size: 1.8rem;
        margin: 1.4rem 0;
        line-height: 0.7;
    }

    .text-spacer {
        margin: 0.5rem 0;
    }
}

/* CTA */
.cta-container {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding: 35px 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 3px solid var(--border-color);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.cta-title {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 40px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.cta-button {
    display: inline-block;
    padding: 25px 60px;
    background: #ff6b9d;
    color: #000000;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 900;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #ff5289;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.6);
}

/* Indicador de scroll */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    40% {
        transform: rotate(-45deg) translateY(10px);
    }
    60% {
        transform: rotate(-45deg) translateY(5px);
    }
}

/* Navegación por puntos */
.slide-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
    transition: transform 0.5s ease-in-out;
}

/* Cuando el menú está activo, desplazar los puntos a la izquierda */
body.menu-active .slide-dots {
    transform: translateY(-50%) translateX(calc(-1 * var(--menu-width)));
}

.slide-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    max-width: 8px;
    max-height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    display: block;
    touch-action: manipulation;
}

.slide-dot:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.3);
}

.slide-dot.active {
    background-color: var(--primary);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 107, 157, 0.6);
}

/* ========================================
   AJUSTES RESPONSIVE DEL SISTEMA
   ======================================== */

@media (max-width: 1024px) {
    .landing-text { font-size: 1.6rem; }
    .landing-text--highlight { font-size: 2.4rem; }
    .landing-text--hero { font-size: 3.2rem; }
    .landing-text--italic { font-size: 1.8rem; }
    .landing-section--statement .landing-text { font-size: 2rem; }
    .landing-section--statement .landing-text--highlight { font-size: 2.4rem; }
}

@media (max-width: 768px) {
    .landing-text { font-size: 1.4rem; }
    .landing-text--highlight { font-size: 2rem; }
    .landing-text--hero { font-size: 2.8rem; }
    .landing-text--italic { font-size: 1.6rem; }
    .landing-section--statement .landing-text { font-size: 1.8rem; }
    .landing-section--statement .landing-text--hero { font-size: 2.4rem; }
    .landing-section--statement .landing-text--highlight { font-size: 2rem; }

    /* Slide 7 - Minimal message */
    .muted-text {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .strong-text {
        font-size: 1.7rem;
        margin: 1.2rem 0;
    }

    .text-spacer {
        margin: 0.4rem 0;
    }

    .landing-section--statement .landing-content {
        padding: 45px 30px;
    }

    .cta-container {
        padding: 60px 35px;
    }

    .cta-title {
        font-size: 2.4rem;
    }

    .cta-subtitle {
        font-size: 1.3rem;
        margin-bottom: 45px;
    }

    .cta-button {
        padding: 25px 60px;
        font-size: 1.4rem;
    }

    .slide-dots {
        display: none;
    }

    .scroll-indicator {
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .landing-text { font-size: 1.3rem; line-height: 1.6; }
    .landing-text--highlight { font-size: 1.8rem; line-height: 1.3; }
    .landing-text--hero {
        font-size: 2.4rem;
        line-height: 1.1;
        margin: 2rem 0;
    }
    .landing-text--italic { font-size: 1.4rem; }
    .landing-section--statement .landing-text { font-size: 1.6rem; }
    .landing-section--statement .landing-text--highlight { font-size: 1.8rem; }
    .landing-section--statement .landing-text--hero { font-size: 2rem; }

    /* Slide 7 - Minimal message */
    .muted-text {
        font-size: 1.3rem;
        margin: 0.8rem 0;
    }

    .strong-text {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .text-spacer {
        margin: 0.3rem 0;
    }

    .landing-section--statement .landing-content {
        padding: 35px 22px;
    }

    .cta-container {
        padding: 50px 25px;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 22px 50px;
        font-size: 1.3rem;
        width: 100%;
    }

    .scroll-indicator {
        bottom: 20px;
    }
}

/* ========================================
   OPTIMIZACIONES PARA MÓVILES PEQUEÑOS
   ======================================== */

@media (max-width: 360px) {
    .landing-text { font-size: 1.2rem; }
    .landing-text--highlight { font-size: 1.6rem; }
    .landing-text--hero { font-size: 2rem; }
    .landing-text--italic { font-size: 1.3rem; }
    .landing-section--statement .landing-text { font-size: 1.4rem; }
    .landing-section--statement .landing-text--highlight { font-size: 1.6rem; }
    .landing-section--statement .landing-text--hero { font-size: 1.8rem; }

    /* Slide 7 - Minimal message */
    .muted-text {
        font-size: 1.2rem;
        margin: 0.6rem 0;
    }

    .strong-text {
        font-size: 1.3rem;
        margin: 0.8rem 0;
    }

    .text-spacer {
        margin: 0.2rem 0;
    }

    .cta-container {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .cta-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }

    .cta-button {
        padding: 20px 30px;
        font-size: 1.1rem;
    }

    /* Ajustar hamburger */
    .hamburger {
        right: 15px;
        transform: translateY(-50%) scale(0.9);
    }
}

/* Optimizaciones de texto en móvil */
@media (max-width: 768px) {
    .landing-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }

    /* Prevenir desbordamiento horizontal */
    .landing-content {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Mejorar legibilidad */
    .landing-text,
    .cta-title,
    .cta-subtitle {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Optimizar line-height en móvil */
    .landing-text {
        line-height: 1.6;
    }

    .landing-text--hero {
        line-height: 1.15;
    }

    .landing-text--highlight {
        line-height: 1.25;
    }
}

/* Optimización touch targets para móvil */
@media (max-width: 768px) {
    /* Asegurar tamaño mínimo de toque para elementos interactivos */
    .slide-dot {
        min-width: 44px;
        min-height: 44px;
        width: 12px;
        height: 12px;
    }

    .hamburger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Optimización para orientation landscape en móvil */
@media (orientation: landscape) and (max-height: 500px) {
    :root {
        --header-height: 50px;
    }

    .landing-text--hero {
        font-size: 2.5rem;
    }

    .landing-section--statement .landing-content {
        padding: 30px 40px;
    }

    .cta-container {
        padding: 30px 40px;
    }

    .scroll-indicator {
        bottom: 15px;
    }
}

/* Prevención de scroll horizontal no deseado */
@media (max-width: 768px) {
    .landing-section {
        overflow-x: hidden;
    }

    .landing-content {
        padding: 0 15px;
    }

    /* Ajustar statement boxes */
    .landing-section--statement .landing-content {
        padding: 35px 20px;
        margin: 0 10px;
    }
}

/* Mejoras para iPhone y dispositivos iOS */
@supports (-webkit-touch-callout: none) {
    /* iOS necesita ajustes especiales */
    .landing-main {
        -webkit-overflow-scrolling: touch;
    }

    .hamburger {
        -webkit-tap-highlight-color: transparent;
    }

    .cta-button {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
    }
}

/* Ajuste para notch en iPhones */
@supports (padding: max(0px)) {
    .landing-main {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}