/* VARIABLES DE MARCA */
:root {
    --navy: #0B1E38;
    --navy-light: #162d4d;
    --gold: #FFC107;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --text-muted: rgba(255, 255, 255, 0.7);
    --transition: all 0.3s ease;
}

/* RESET & BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--navy);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-small {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVEGACIÓN STICKY */
.book-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 30, 56, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-logo {
    height: 35px;
}

.back-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--gold);
}

.btn-gold-sm {
    background: var(--gold);
    color: var(--navy);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-gold-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

/* --- HERO SECTION REESTRUCTURADO --- */
.book-hero {
    position: relative;
    padding: 180px 0 100px;
    /* Más espacio superior para el nav */
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: white;
    /* Usamos la foto de Néstor como fondo con un overlay oscuro */
    background: linear-gradient(rgba(11, 30, 56, 0.85), rgba(11, 30, 56, 0.95)),
        url('../assets/img/nestor-hero.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.hero-split.container {
    display: grid;
    grid-template-columns: 45% 55%;
    /* El libro ocupa menos que el texto */
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Ajuste de tamaño del Mockup */
.hero-visual img {
    width: 100%;
    max-width: 380px;
    /* Tamaño controlado */
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.6));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Estilos de Texto del Hero */
.hero-text .pre-title {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
}

.hero-text h1 {
    font-size: 5.5rem;
    /* Tamaño editorial impacto */
    line-height: 1;
    margin: 0 0 20px 0;
    font-family: 'Montserrat', sans-serif;
}

.hero-text .tagline {
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-text .tagline strong {
    color: var(--gold);
}

/* Botón Hero Estilizado */
.btn-muevete {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
    border: none;
    cursor: pointer;
}

.btn-muevete:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 193, 7, 0.5);
    background: #ffca2c;
}

/* --- SECCIÓN MANIFIESTO --- */
.manifesto {
    padding: 100px 0;
    background-color: var(--white);
    text-align: center;
}

/* Texto introductorio */
.intro-text {
    font-size: 1.6rem;
    line-height: 1.6;
    color: #444;
    /* Un gris oscuro para suavizar la lectura */
    font-weight: 300;
    margin-bottom: 70px;
}

.intro-text strong {
    color: var(--navy);
    font-weight: 700;
}

/* Contenedor de los 3 Pilares */
.three-pillars {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 40px;
}

.pillar {
    position: relative;
    padding: 10px 0;
}

.pillar span {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 12px;
    transition: var(--transition);
}

/* Línea decorativa debajo de cada pilar */
.pillar span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background-color: var(--gold);
    border-radius: 2px;
    transition: var(--transition);
}

/* Efecto Hover en Pilares */
.pillar:hover span {
    color: var(--gold);
    letter-spacing: 5px;
    /* Efecto de expansión sutil */
}

.pillar:hover span::after {
    width: 100%;
    background-color: var(--navy);
}

/* --- RESPONSIVE MANIFIESTO --- */
@media (max-width: 768px) {
    .intro-text {
        font-size: 1.3rem;
        padding: 0 10px;
    }

    .three-pillars {
        flex-direction: column;
        gap: 40px;
    }

    .pillar span {
        font-size: 1.4rem;
    }
}

/* SECCIÓN METÁFORA */
.metaphor {
    padding: 140px 0;
    position: relative;
    color: white;
    text-align: center;
    /* Asegúrate de subir una imagen llamada bg-mar.jpg o similar */
    background: linear-gradient(rgba(11, 30, 56, 0.85), rgba(11, 30, 56, 0.95)),
        url('../assets/img/nestor-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Esto crea un efecto Parallax elegante al bajar */
}

.metaphor h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--gold);
}

.question-box {
    margin-top: 50px;
    padding: 40px;
    border: 1px solid rgba(255, 193, 7, 0.4);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    font-size: 1.3rem;
    font-style: italic;
}

/* CAPÍTULOS */
.chapters {
    padding: 100px 0;
    background: var(--light-gray);
}

.book-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.point {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.point i {
    color: #28a745;
}

/* CAPTURA DE LEADS */
.lead-capture {
    padding: 150px 0;
    background: var(--white);
}

.capture-card {
    max-width: 550px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(11, 30, 56, 0.15);
    border-top: 8px solid var(--gold);
}

.capture-card h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 18px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--gold);
    outline: none;
}

#btnSubmit {
    width: 100%;
    background: var(--navy);
    color: white;
    padding: 20px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

#btnSubmit:hover {
    background: var(--navy-light);
    transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .book-hero {
        padding: 120px 0 60px;
        /* Reducimos espacio superior */
    }

    .hero-text h1 {
        font-size: 3.5rem;
        /* Tamaño más manejable */
        text-align: center;
    }

    .hero-text .tagline {
        font-size: 1.2rem;
        text-align: center;
    }

    .hero-visual img {
        max-width: 250px;
        /* Achicamos el libro en tablets/móvil */
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 2.8rem;
        /* Tamaño final para teléfonos */
    }

    .hero-text .pre-title {
        font-size: 0.7rem;
        text-align: center;
    }

    .btn-muevete {
        width: 100%;
        /* Botón de ancho completo en móvil */
        padding: 15px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 3rem;
    }

    .three-pillars {
        flex-direction: column;
        gap: 30px;
    }

    .book-points {
        grid-template-columns: 1fr;
    }

    .capture-card {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 15px;
        /* Reducimos padding lateral */
    }

    .nav-logo {
        height: 25px;
        /* Logo más discreto */
    }

    .back-link span {
        display: none;
        /* Ocultamos el texto "Volver" si el espacio es crítico */
    }

    .btn-gold-sm {
        padding: 8px 15px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .manifesto {
        padding: 60px 0;
    }

    .intro-text {
        font-size: 1.1rem;
        /* Texto más cómodo para lectura en móvil */
        margin-bottom: 40px;
    }

    .pillar span {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
}

/* =========================================
   CORRECCIÓN HERO MÓVIL (Mockup Abajo)
   ========================================= */
@media (max-width: 992px) {

    /* 1. Cambiamos de Grid a Flex para manejar el orden vertical */
    .hero-split.container {
        display: flex;
        flex-direction: column;
        /* Apila los elementos verticalmente */
        align-items: center;
        /* Centra todo horizontalmente */
        width: 100%;
        /* Asegura que no se salga de la pantalla */
        padding: 0 20px;
        /* Margen de seguridad lateral */
    }

    /* 2. Reordenamos: Texto Arriba (1), Imagen Abajo (2) */

    /* El Texto va primero */
    .hero-text {
        order: 1;
        text-align: center;
        /* Centramos el texto para que se vea elegante */
        margin-bottom: 40px;
        /* Espacio entre el texto y el libro */
        width: 100%;
    }

    /* La Imagen (Mockup) va después */
    .hero-visual {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    /* Ajuste extra para asegurar que la imagen no sea gigante en tablets */
    .hero-visual img {
        max-width: 300px;
        /* Un tamaño balanceado para móvil */
        width: 100%;
        height: auto;
    }
}