/* --- VARIABLES Y RESET (LIGHT LEARNING THEME) --- */
:root {
    /* Paleta Aprendizaje: Blanco Limpio y Naranja Creativo */
    --primary: #2c3e50;
    /* Gris Oscuro/Azul (Texto Principal/Títulos) */
    --secondary: #e67e22;
    /* Naranja medio */
    --accent: #FB8C00;
    /* Naranja "Learning" Vibrante */
    --text-dark: #333333;
    /* Texto principal oscuro para fondo blanco */
    --text-light: #ffffff;
    /* Texto claro para botones/fondos oscuros */
    --bg-light: #ffffff;
    /* Blanco Puro */
    --bg-off: #f9f9f9;
    /* Blanco Humo para secciones alternas */
    --bg-card: #ffffff;
    /* Cartas blancas */
    --font-main: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    /* Gradiente sutil y luminoso para el Hero */
    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    /* Evitar scroll horizontal por animaciones */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- UTILIDADES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent), #ffa726);
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(251, 140, 0, 0.3);
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(251, 140, 0, 0.5);
    background: linear-gradient(45deg, #ffa726, var(--accent));
}

h1,
h2,
h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    background: linear-gradient(to right, var(--accent), #d84315);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

/* --- HEADER (Glassmorphism Light) --- */
header {
    background: #ffffff;
    /* Solid white for better visibility */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
    /* Ensure logo is above menu */
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Glassmorphism Header */
header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    color: var(--primary);
    /* Texto oscuro para el menú */
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(255, 111, 0, 0.5);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    /* Hamburguesa oscura */
    transition: all 0.3s;
}

/* Animación Hamburger */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- HERO SECTION (PREMIUM REDESIGN) --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--gradient-hero);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    min-height: 90vh;
    /* Ocupa buena pantalla */
    display: flex;
    align-items: center;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(251, 140, 0, 0.05), transparent 60%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

/* Hero Content (Left) */
.hero-content {
    text-align: left;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.highlight-text {
    background: linear-gradient(to right, var(--accent), #d84315);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #555;
    max-width: 90%;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* .btn-primary uses default .btn styles */

.btn-secondary {
    background: transparent;
    color: #e65100;
    /* Darker orange for higher contrast (Accessibility) */
    border: 2px solid var(--accent);
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(251, 140, 0, 0.2);
}

.hero-trust {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #777;
    font-weight: 600;
}

.hero-trust p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-trust i {
    color: var(--secondary);
    /* Verde o Naranja validacion */
}

/* Hero Visual (Right) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.hero-book-img {
    max-width: 75%;
    /* Ajuste para que no sea gigante */
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
    transform: rotateY(-15deg) rotateX(5deg);
    animation: floatBook 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.hero-visual:hover .hero-book-img {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

@keyframes floatBook {

    0%,
    100% {
        transform: rotateY(-15deg) rotateX(5deg) translateY(0);
    }

    50% {
        transform: rotateY(-15deg) rotateX(5deg) translateY(-20px);
    }
}

.book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(251, 140, 0, 0.4) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.floating-badge {
    position: absolute;
    bottom: 10%;
    right: 10%;
    background: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.9rem;
    animation: floatBadge 5s ease-in-out infinite 1s;
    /* Delay 1s */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.floating-badge i {
    color: #ffc107;
    /* Gold */
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-top: 120px;
        text-align: center;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-content {
        text-align: center;
        order: 1;
        /* Texto primero ?? o Visual? Texto suele ser mejor en movil primero */
    }

    .hero-visual {
        order: 2;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-book-img {
        max-width: 60%;
    }
}

/* --- PROBLEMA / PUNTOS DE DOLOR --- */
.problem {
    padding: 100px 0;
    background: #fff;
    text-align: center;
}

.problem h2 {
    font-size: 2.5rem;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    padding-bottom: 25px;
}

.card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 3px solid var(--accent);
    /* Optional border */
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-container img {
    transform: scale(1.1);
}

.card h3,
.card p {
    padding: 0 25px;
    /* Add internal padding for text */
}

.card h3 {
    margin-top: 25px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(251, 140, 0, 0.2);
    border-color: var(--accent);
}

.card:hover::before {
    transform: scaleX(1);
}

.card h3 {
    color: #d32f2f;
    /* Rojo más oscuro para texto */
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 i {
    color: #e53935;
    /* Rojo vibrante para icono */
    font-size: 1.5rem;
}

.highlight-subtitle {
    margin-top: 50px;
    background: linear-gradient(135deg, var(--accent), #ff9800);
    padding: 30px;
    border-radius: 50px;
    /* Bordes muy redondeados */
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    box-shadow: 0 10px 25px rgba(251, 140, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.highlight-subtitle::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    opacity: 0.2;
    font-family: serif;
    color: #fff;
}

/* --- LA SOLUCIÓN (EL PLUS) --- */
.solution {
    padding: 100px 0;
    background: var(--bg-off);
    /* Fondo ligeramente gris para contraste */
    position: relative;
}

.solution-content {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}

.book-img {
    flex: 1;
    min-width: 300px;
    text-align: center;
    perspective: 1000px;
}

.book-img img {
    max-width: 80%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    transform: rotateY(-10deg);
    transition: transform 0.5s;
}

.book-img:hover img {
    transform: rotateY(0deg) scale(1.05);
}

.solution-text {
    flex: 1;
    min-width: 300px;
}

/* --- 9 FUERZAS REDESIGN (FLEX CENTERED) --- */
.forces-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* CENTRADO PERFECTO */
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.force-card {
    flex: 0 1 300px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
}

.force-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(251, 140, 0, 0.25);
    background: linear-gradient(135deg, #fff, #ffe0b2);
    /* Más color al hover */
    border-color: var(--accent);
    /* Borde naranja vivo al hover */
}

.force-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(251, 140, 0, 0.15);
}

.force-card:hover .force-icon {
    transform: rotate(360deg);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px rgba(251, 140, 0, 0.4);
}

.force-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Responsive Grid para Movil */
@media (max-width: 900px) {
    .forces-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en tablet */
    }
}

@media (max-width: 600px) {
    .forces-grid {
        grid-template-columns: 1fr;
        /* 1 columna en movil */
    }
}

/* --- TEMARIO / LO QUE APRENDERAS (GRID) --- */
.temario {
    padding: 100px 0;
    background: #fff8e1;
    /* Fondo cálido suave */
    border-top: 1px solid #ffe0b2;
    border-bottom: 1px solid #ffe0b2;
    position: relative;
}

/* Efecto visual opcional en los bordes */
.temario::before,
.temario::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.temario::before {
    top: 0;
}

.temario::after {
    bottom: 0;
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.chapter-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 6px solid var(--primary);
    /* Borde arriba en lugar de izquierda */
    border-left: none;
    /* Quitamos borde izquierdo */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    height: 100%;
    overflow: hidden;
}

/* --- AUTOR (PREMIUM DARK REDESIGN) --- */
.autor {
    /* Fondo oscuro degradado premium */
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    padding: 120px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos de fondo opcionales */
.autor::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.author-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

/* IMAGEN AUTOR */
.author-img-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.author-photo {
    width: 350px;
    height: auto;
    border-radius: 20px;
    /* Efecto cristal/brillo suave */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
    transition: transform 0.5s ease;
}

.author-img-wrapper:hover .author-photo {
    transform: scale(1.02);
}

.img-backdrop {
    position: absolute;
    top: 20px;
    left: 20px;
    /* Desplazado para efecto capa */
    width: 350px;
    height: 100%;
    border: 3px solid var(--accent);
    border-radius: 20px;
    z-index: 1;
    opacity: 0.6;
}

/* TEXTO AUTOR */
.author-text {
    flex: 1.5;
}

.author-name {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 5px;
    background: none;
    -webkit-text-fill-color: initial;
    text-align: left;
    /* Reset center from h2 */
    font-family: 'Playfair Display', serif;
    /* Si no carga, usa serif por defecto */
}

.author-title {
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.author-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.author-bio strong {
    color: #fff;
}

/* STATS ROW */
.author-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    margin-bottom: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-item i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    text-transform: uppercase;
}

/* FIRMA */
.author-signature {
    font-family: 'Dancing Script', cursive;
    /* Ideal cargar esta fuente */
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.6);
    transform: rotate(-5deg);
    margin-top: 20px;
}

.btn-author {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-author:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-5px);
}

/* Responsive Autor */
@media (max-width: 900px) {
    .author-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .author-img-wrapper {
        margin-bottom: 20px;
    }

    .img-backdrop {
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
        /* Ajuste movil */
    }

    .author-photo {
        width: 300px;
    }

    .author-name,
    .author-text h2 {
        text-align: center;
    }

    .author-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}

/* --- BONUS SECTION (GIFT) --- */
.bonus-section {
    padding: 80px 0;
    background-color: #fff;
    /* Fondo neutro para resaltar la tarjeta */
}

/* --- BONUS SECTION (GIFT - PREMIUM REDESIGN) --- */
.bonus-section {
    padding: 100px 0;
    /* Fondo con un patrón sutil o degradado premium */
    background: linear-gradient(135deg, #fff 0%, #fff8e1 100%);
    position: relative;
}

.bonus-content {
    background: #fff;
    border-radius: 30px;
    max-width: 900px;
    margin: 0 auto;
    /* Borde dorado sólido elegante */
    border: 2px solid #ffb74d;
    box-shadow: 0 20px 50px rgba(251, 140, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 0;
    /* Sin gap base, controlado por padding interno */
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.bonus-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(251, 140, 0, 0.2);
}

/* Columna Visual (Izquierda) */
.bonus-visual {
    flex: 1;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 350px;
    position: relative;
}

.bonus-icon-group {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    filter: drop-shadow(0 5px 10px rgba(251, 140, 0, 0.2));
}

.bonus-icon-group .plus {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
}

.bonus-tag {
    background: var(--primary);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 15px;
}

/* Columna Texto (Derecha) */
.bonus-text {
    flex: 1.5;
    padding: 50px;
    text-align: left;
}

.bonus-text h2 {
    text-align: left;
    margin-bottom: 15px;
    line-height: 1.2;
    font-size: 2rem;
}

.bonus-text p {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* Badge destacado dentro del texto */
.bonus-badge {
    display: inline-block;
    background: rgba(251, 140, 0, 0.1);
    color: #d84315;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    border-left: 4px solid var(--accent);
    margin-bottom: 10px;
}

.bonus-badge i {
    margin-right: 8px;
}

.bonus-btn {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 1rem;
    padding: 18px 30px;
    /* Botón un poco más grande */
}

/* Animación de latido para el botón */
.pulse-anim {
    animation: pulseBtn 2s infinite;
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 140, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(251, 140, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(251, 140, 0, 0);
    }
}

/* Mobile Responsive para el Bonus */
@media (max-width: 768px) {
    .bonus-content {
        flex-direction: column;
        text-align: center;
    }

    .bonus-visual {
        width: 100%;
        padding: 40px 20px;
        min-height: auto;
    }

    .bonus-text {
        width: 100%;
        padding: 40px 30px;
        text-align: center;
    }

    .bonus-text h2 {
        text-align: center;
    }
}

/* --- CTA FINAL --- */
/* --- CTA FINAL (PREMIUM REDESIGN) --- */
.final-cta {
    padding: 100px 0;
    text-align: center;
    /* Fondo degradado premium oscuro para contraste final */
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    /* Sutil sombra superior */
}

/* Decoración de fondo abstracta */
.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(251, 140, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.final-cta h2 {
    color: #fff;
    /* Texto blanco sobre fondo oscuro */
    font-size: 2.8rem;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.final-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
}

.price {
    font-size: 5rem;
    background: linear-gradient(to bottom, #ffa726, #fb8c00);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    margin: 40px 0;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(251, 140, 0, 0.3));
    /* Glow effect */
    animation: pulsePrice 3s infinite;
}

@keyframes pulsePrice {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 10px 20px rgba(251, 140, 0, 0.3));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 15px 30px rgba(251, 140, 0, 0.5));
    }
}

footer {
    text-align: center;
    padding: 30px;
    background: #222;
    color: #aaa;
    font-size: 0.9rem;
    border-top: none;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 768px) {

    /* --- MOBILE PERFORMANCE OPTIMIZATION --- */
    .hero {
        animation: none;
        /* Disable background gradient animation */
        background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
        /* Static fallback */
    }

    .hero-book-img {
        animation: none;
        /* Disable floating animation */
        filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.15));
        /* Simpler shadow */
        transform: none !important;
        /* Reset 3D transforms */
        max-width: 50%;
        /* Adjust size for mobile */
    }

    .floating-badge {
        animation: none;
        /* Disable floating badge */
    }

    /* Simplify Shadows & remove heavy Render effects */
    .card,
    .chapter-card,
    .force-card,
    .bonus-content {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
        transition: none !important;
        /* Remove hover transitions */
        transform: none !important;
    }

    .card:hover,
    .chapter-card:hover,
    .force-card:hover {
        transform: none !important;
    }

    /* Remove Backdrop Filter (GPU Heavy) */
    header {
        backdrop-filter: none;
        background: #ffffff;
    }

    /* Disable continuous animations */
    .price,
    .pulse-anim {
        animation: none;
    }

    /* Layout Adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 80px;
        background: #ffffff;
        height: calc(100vh - 80px);
        flex-direction: column;
        width: 100%;
        text-align: center;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        justify-content: flex-start;
        padding-top: 50px;
        border-top: 1px solid #eee;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        margin: 25px 0;
        font-size: 1.3rem;
        color: var(--primary);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .solution-content {
        flex-direction: column;
    }

    .author-container {
        flex-direction: column;
        text-align: center;
    }
}

/* --- CLEAN CODE REFACTOR UTILITIES --- */
.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--secondary);
}

.font-bold {
    font-weight: bold;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mw-800 {
    max-width: 800px;
}

.mw-700 {
    max-width: 700px;
}

.mb-25 {
    margin-bottom: 25px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-25 {
    margin-top: 25px;
}

.mt-30 {
    margin-top: 30px;
}

.p-section {
    padding: 100px 0;
}

.text-sm {
    font-size: 0.9em;
}

.text-xs {
    font-size: 0.8rem;
}

.text-gray {
    color: #666;
}

.img-bonus {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- CHAPTER CARDS (STATIC REDESIGN) --- */
.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chapter-content {
    max-height: none;
    /* Always visible */
    overflow: visible;
    opacity: 1;
    margin-top: 0;
    border-top: none;
    padding-top: 0;
}

/* Premium Card Style for Chapters */
.chapter-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    /* Sombra más profunda */
    border-top: 5px solid var(--accent);
    transition: all 0.3s ease;
    height: 100%;
}

.chapter-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(251, 140, 0, 0.15);
}

.chapter-header h3 {
    font-size: 1.3rem;
    color: var(--primary);
    line-height: 1.4;
    margin: 0;
}

.chapter-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* Remove unused toggles */
.toggle-icon {
    display: none;
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 100px 0;
    background: #fafafa;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    color: var(--primary);
    transition: all 0.3s ease;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-question i {
    color: var(--accent);
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-question:hover {
    background: rgba(251, 140, 0, 0.03);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #fff;
}

.faq-answer p {
    padding: 0 25px 20px;
    margin: 0;
    color: #555;
    font-size: 1.05rem;
}

/* --- RECOMMENDED BOOKS --- */
.recommended-books {
    background: var(--bg-off);
    padding: 100px 0;
}

.books-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.book-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 400px;
    transition: all 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(251, 140, 0, 0.15);
}

.book-card-img {
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recommended-book-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.placeholder-book {
    text-align: center;
    color: #aaa;
}

.placeholder-book i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: var(--accent);
    opacity: 0.5;
}

.placeholder-book span {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.book-card-content {
    padding: 30px;
}

.book-card-content h3 {
    margin-bottom: 5px;
    font-size: 1.4rem;
}

.author-name-small {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.mt-15 {
    margin-top: 15px;
}