/* =============================================
   LA IA ES TU ESCLAVA - Estilos Principales
   ============================================= */

/* Variables CSS */
:root {
    /* Colores principales */
    --color-primary: #1A4D2E;
    --color-primary-dark: #0F3A1F;
    --color-secondary: #FFFFFF;
    --color-cream: #F5F5DC;
    --color-accent-1: #FFD700;
    --color-accent-orange: #FFA500;
    --color-accent-2: #4A90E2;
    
    /* Colores de texto */
    --text-dark: #333333;
    --text-light: #666666;
    --text-white: #FFFFFF;
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Transiciones */
    --transition: all 0.3s ease;
}

/* Reset CSS y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Clase para bloquear scroll durante loading */
body.loading {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--color-secondary);
    /* Preparar para animaciones de carga - pero visible por defecto */
    opacity: 1;
    /* Nuevo cursor temático de cerebro/neurona */
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="8" fill="%23FFD700" opacity="0.8"/><circle cx="12" cy="12" r="3" fill="%231A4D2E"/><circle cx="8" cy="8" r="1.5" fill="%23FFD700"/><circle cx="16" cy="16" r="1.5" fill="%23FFD700"/><circle cx="16" cy="8" r="1" fill="%23FFA500"/><circle cx="8" cy="16" r="1" fill="%23FFA500"/><line x1="12" y1="9" x2="8" y2="8" stroke="%23FFD700" stroke-width="1"/><line x1="12" y1="15" x2="16" y2="16" stroke="%23FFD700" stroke-width="1"/><line x1="15" y1="12" x2="16" y2="8" stroke="%23FFA500" stroke-width="0.5"/><line x1="9" y1="12" x2="8" y2="16" stroke="%23FFA500" stroke-width="0.5"/></svg>') 12 12, auto;
}

/* Cursors específicos para elementos interactivos */
a, button, .btn, input, textarea, [onclick] {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="28" height="28" viewBox="0 0 28 28" fill="none"><circle cx="14" cy="14" r="10" fill="%23FFD700" opacity="0.9"/><circle cx="14" cy="14" r="4" fill="%231A4D2E"/><circle cx="8" cy="8" r="2" fill="%23FFD700"/><circle cx="20" cy="20" r="2" fill="%23FFD700"/><circle cx="20" cy="8" r="1.5" fill="%23FFA500"/><circle cx="8" cy="20" r="1.5" fill="%23FFA500"/><line x1="14" y1="10" x2="8" y2="8" stroke="%23FFD700" stroke-width="1.5"/><line x1="14" y1="18" x2="20" y2="20" stroke="%23FFD700" stroke-width="1.5"/><line x1="18" y1="14" x2="20" y2="8" stroke="%23FFA500" stroke-width="1"/><line x1="10" y1="14" x2="8" y2="20" stroke="%23FFA500" stroke-width="1"/><circle cx="14" cy="14" r="12" fill="none" stroke="%23FFD700" stroke-width="1" opacity="0.3"/></svg>') 14 14, pointer;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-accent-2);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-accent-orange);
}

/* Botones */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    transform-origin: center;
}

.btn-primary {
    background-color: var(--color-accent-orange);
    color: var(--text-white);
    /* Visible por defecto */
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.3);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Header y Navegación */
.header {
    background-color: var(--color-primary);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: var(--spacing-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-white);
}

.logo:hover {
    color: var(--color-accent-1);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    text-align: center;
}

.nav-link {
    color: var(--text-white);
    font-weight: 500;
    padding: 0.15em;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-accent-1);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding-top: calc(80px + var(--spacing-xxl));
    padding-bottom: var(--spacing-xxl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #0a2818 100%);
    color: var(--text-white);
   /* min-height: 100vh; la gran pesadilla 4 horas para encontrrlo*/
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="neuron" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,215,0,0.8);stop-opacity:1"/><stop offset="100%" style="stop-color:rgba(255,215,0,0);stop-opacity:0"/></radialGradient></defs><g class="neural-network"><circle cx="100" cy="200" r="3" fill="url(%23neuron)"/><circle cx="300" cy="150" r="4" fill="url(%23neuron)"/><circle cx="500" cy="300" r="2" fill="url(%23neuron)"/><circle cx="700" cy="180" r="3" fill="url(%23neuron)"/><circle cx="900" cy="250" r="4" fill="url(%23neuron)"/><circle cx="150" cy="400" r="3" fill="url(%23neuron)"/><circle cx="350" cy="450" r="2" fill="url(%23neuron)"/><circle cx="550" cy="380" r="4" fill="url(%23neuron)"/><circle cx="750" cy="420" r="3" fill="url(%23neuron)"/><circle cx="950" cy="480" r="2" fill="url(%23neuron)"/><circle cx="200" cy="600" r="3" fill="url(%23neuron)"/><circle cx="400" cy="650" r="4" fill="url(%23neuron)"/><circle cx="600" cy="580" r="2" fill="url(%23neuron)"/><circle cx="800" cy="620" r="3" fill="url(%23neuron)"/><circle cx="120" cy="750" r="4" fill="url(%23neuron)"/><circle cx="320" cy="800" r="2" fill="url(%23neuron)"/><circle cx="520" cy="730" r="3" fill="url(%23neuron)"/><circle cx="720" cy="780" r="4" fill="url(%23neuron)"/><circle cx="920" cy="720" r="2" fill="url(%23neuron)"/><line x1="100" y1="200" x2="300" y2="150" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="300" y1="150" x2="500" y2="300" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="500" y1="300" x2="700" y2="180" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="700" y1="180" x2="900" y2="250" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="150" y1="400" x2="350" y2="450" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="350" y1="450" x2="550" y2="380" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="550" y1="380" x2="750" y2="420" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="750" y1="420" x2="950" y2="480" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="200" y1="600" x2="400" y2="650" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="400" y1="650" x2="600" y2="580" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="600" y1="580" x2="800" y2="620" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="120" y1="750" x2="320" y2="800" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="320" y1="800" x2="520" y2="730" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="520" y1="730" x2="720" y2="780" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="720" y1="780" x2="920" y2="720" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="100" y1="200" x2="150" y2="400" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="300" y1="150" x2="350" y2="450" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="500" y1="300" x2="550" y2="380" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="700" y1="180" x2="750" y2="420" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="900" y1="250" x2="950" y2="480" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></g></svg>');
    opacity: 0.4;
    animation: neuralPulse 8s ease-in-out infinite;
}

@keyframes neuralPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1) translateX(0);
    }
    25% { 
        opacity: 0.6; 
        transform: scale(1.02) translateX(-5px);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.01) translateX(0);
    }
    75% { 
        opacity: 0.7; 
        transform: scale(1.03) translateX(5px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: var(--spacing-sm);
    color: var(--color-accent-1);
    /* Preparar para animación pero visible */
    opacity: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    color: var(--color-cream);
    /* Preparar para animación pero visible */
    opacity: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    /* Preparar para animación pero visible */
    opacity: 1;
}

.book-cover {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    /* Visible por defecto con efecto flotante */
    opacity: 1;
    transform: scale(1);
    perspective: 1000px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
}

.book-cover:hover {
    transform: scale(1.05);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

/* Secciones Generales */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--color-primary);
    /* Visible por defecto */
    opacity: 1;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent-orange), var(--color-accent-1));
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.125rem;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

/* Sobre el Libro */
.about-book {
    background: linear-gradient(135deg, var(--color-cream) 0%, #f0f0dc 100%);
    position: relative;
}

.book-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    /* Visible por defecto */
    opacity: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.book-content > * {
    opacity: 1;
    transform: translateY(0);
}

.book-synopsis {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
}

.benefits-list li {
    padding: var(--spacing-sm) 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-icon {
    flex-shrink: 0;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.benefits-list li:hover .benefit-icon {
    transform: rotate(360deg) scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4));
}

/* ===== ANIMACIONES SVG NEURALES ===== */
@keyframes neuronPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.benefit-icon path,
.benefit-icon circle {
    animation: neuronPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
}

.benefit-icon path:nth-child(1) { --i: 0; }
.benefit-icon path:nth-child(2) { --i: 1; }
.benefit-icon circle:nth-child(1) { --i: 2; }
.benefit-icon circle:nth-child(2) { --i: 3; }

/* ===== MEJORAS EN TARJETAS DE EJERCICIOS ===== */
.exercise-card {
    position: relative;
    overflow: hidden;
}

.exercise-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #1A4D2E, #FFD700);
    background-size: 400% 400%;
    border-radius: 20px;
    opacity: 1;  /*siempre activa la animacion */
    /*transition: opacity 0.3s ease;*/
    animation: borderGradient 6s ease infinite;
    z-index: -1;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/*.exercise-card:hover::before {
    opacity: 1;
}*/

/* ===== EFECTOS DE TEXTO BRILLANTE ===== */
@keyframes textShine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.hero-title {
    background: linear-gradient(
        90deg,
        var(--color-secondary) 0%,
        var(--color-gold) 25%,
        var(--color-secondary) 50%,
        var(--color-gold) 75%,
        var(--color-secondary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
   /* -webkit-text-fill-color: transparent;*/
    animation: textShine 3s linear infinite;
}

/* ===== MEJORAS EN GLASSMORPHISM ===== */
.glass-card {
    position: relative;
    isolation: isolate;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.toc-preview, .people {
    background-color: var(--color-secondary);
    padding: var(--spacing-lg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* VISIBLE por defecto */
    opacity: 1;
}

.toc-preview h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.toc-note {
    font-style: italic;
    color: var(--text-light);
    margin-top: var(--spacing-md);
}

/* Gimnasio Cerebral */
.brain-gym {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 0px;
}

.exercise-preview {
    max-width: 800px;
    margin: 0 auto;
}

.exercise-card {
    background: linear-gradient(135deg, var(--color-cream) 0%, rgba(255, 255, 255, 0.9) 100%);
    padding: var(--spacing-lg);
    border-radius: 15px;
    margin: var(--spacing-lg) 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    /* Visible por defecto */
    opacity: 1;
    transform: translateX(0);
    border: 2px solid transparent;
    background-clip: padding-box;
}

.exercise-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--color-accent-orange);
}

.exercise-card h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.exercise-steps {
    margin-left: var(--spacing-lg);
}

.exercise-steps li {
    padding: var(--spacing-xs) 0;
}

/* Sobre el Autor */
.about-author {
    background: linear-gradient(135deg, var(--color-cream) 0%, #f0f0dc 100%);
}

.author-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    /* Visible por defecto */
    opacity: 1;
    background: rgba(255, 255, 255, 0.95);
    padding: var(--spacing-xl);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.author-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent-orange), var(--color-accent-1));
}

.author-photo {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    /* Completamente visible y estable */
    opacity: 1 !important;
    transform: scale(1) !important;
    border: 4px solid var(--color-accent-1);
    animation: authorGlow 3s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

@keyframes authorGlow {
    0%, 100% {
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 0 0 rgba(255, 215, 0, 0);
    }
    50% {
        box-shadow: 0 15px 35px rgba(255, 215, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

.author-bio {
    /* Visible por defecto */
    opacity: 1;
    transform: translateX(0);
}

.author-bio p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
    text-align: justify;
}

/* Newsletter */
.newsletter {
    background-color: var(--color-primary);
    color: var(--text-white);
}

.newsletter .section-title {
    color: var(--color-accent-1);
}

.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-form .form-group {
    display: flex;
    gap: var(--spacing-sm);
}

.privacy-note {
    text-align: center;
    margin-top: var(--spacing-sm);
    opacity: 0.8;
}

/* Contacto */
.contact {
    background-color: var(--color-secondary);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
  /*  color: var(--color-primary); */
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm);
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    transform: scale(1.02);
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--text-white);
    padding: var(--spacing-lg) 0;
}

.footer-content {
    text-align: center;
}

.footer-links {
    margin: var(--spacing-md) 0;
}

.footer-link {
    color: var(--text-white);
    margin: 0 var(--spacing-md);
}

.footer-link:hover {
    color: var(--color-accent-1);
}

.footer-credit {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: var(--spacing-md);
}

/* ===== ESTILOS ADICIONALES PARA ANIMEJS ===== */

/* Preparar elementos para animaciones más suaves */
.hero-title,
.hero-subtitle,
.hero-description,
.btn-primary,
.book-cover,
.section-title,
.book-content,
.benefits-list,
.benefits-list li,
.exercise-card,
.author-content,
.author-photo,
.author-bio {
    will-change: transform, opacity;
}

/* Efectos especiales para la portada del libro */
.book-cover {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Mejoras visuales para formularios */
.form-input:focus,
.form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 77, 46, 0.1);
}

/* Mejoras para los mensajes de notificación */
.message {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Efectos de perspectiva para elementos 3D */
.exercise-card,
.toc-preview {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Smooth scrolling mejorado */
html {
    scroll-behavior: auto; /* Será controlado por Anime.js */
}

/* Optimizaciones de rendimiento para animaciones */
* {
 /*   transform-style: preserve-3d; Lo quito porque elimina el header*/
    backface-visibility: hidden;
}

/* Estados iniciales para evitar FOUC (Flash of Unstyled Content) */
/* Elementos están visibles por defecto, animaciones se ejecutan opcionalmente */
.hero-content > *,
.section-title,
.book-content > *,
.benefits-list li,
.exercise-card,
.author-content > * {
    opacity: 1;
    transition: all 0.3s ease;
}

/* Efectos adicionales para mejorar la experiencia */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #0a2818 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="neuron" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,215,0,0.8);stop-opacity:1"/><stop offset="100%" style="stop-color:rgba(255,215,0,0);stop-opacity:0"/></radialGradient></defs><g class="neural-network"><circle cx="100" cy="200" r="3" fill="url(%23neuron)"/><circle cx="300" cy="150" r="4" fill="url(%23neuron)"/><circle cx="500" cy="300" r="2" fill="url(%23neuron)"/><circle cx="700" cy="180" r="3" fill="url(%23neuron)"/><circle cx="900" cy="250" r="4" fill="url(%23neuron)"/><circle cx="150" cy="400" r="3" fill="url(%23neuron)"/><circle cx="350" cy="450" r="2" fill="url(%23neuron)"/><circle cx="550" cy="380" r="4" fill="url(%23neuron)"/><circle cx="750" cy="420" r="3" fill="url(%23neuron)"/><circle cx="950" cy="480" r="2" fill="url(%23neuron)"/><circle cx="200" cy="600" r="3" fill="url(%23neuron)"/><circle cx="400" cy="650" r="4" fill="url(%23neuron)"/><circle cx="600" cy="580" r="2" fill="url(%23neuron)"/><circle cx="800" cy="620" r="3" fill="url(%23neuron)"/><circle cx="120" cy="750" r="4" fill="url(%23neuron)"/><circle cx="320" cy="800" r="2" fill="url(%23neuron)"/><circle cx="520" cy="730" r="3" fill="url(%23neuron)"/><circle cx="720" cy="780" r="4" fill="url(%23neuron)"/><circle cx="920" cy="720" r="2" fill="url(%23neuron)"/><line x1="100" y1="200" x2="300" y2="150" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="300" y1="150" x2="500" y2="300" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="500" y1="300" x2="700" y2="180" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="700" y1="180" x2="900" y2="250" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="150" y1="400" x2="350" y2="450" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="350" y1="450" x2="550" y2="380" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="550" y1="380" x2="750" y2="420" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="750" y1="420" x2="950" y2="480" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="200" y1="600" x2="400" y2="650" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="400" y1="650" x2="600" y2="580" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="600" y1="580" x2="800" y2="620" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="120" y1="750" x2="320" y2="800" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="320" y1="800" x2="520" y2="730" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="520" y1="730" x2="720" y2="780" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="720" y1="780" x2="920" y2="720" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="100" y1="200" x2="150" y2="400" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="300" y1="150" x2="350" y2="450" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="500" y1="300" x2="550" y2="380" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="700" y1="180" x2="750" y2="420" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="900" y1="250" x2="950" y2="480" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></g></svg>');
    opacity: 0.4;
    animation: neuralPulse 8s ease-in-out infinite;
}

@keyframes neuralPulse {
    0%, 100% { 
        opacity: 0.4; 
        transform: scale(1) translateX(0);
    }
    25% { 
        opacity: 0.6; 
        transform: scale(1.02) translateX(-5px);
    }
    50% { 
        opacity: 0.5; 
        transform: scale(1.01) translateX(0);
    }
    75% { 
        opacity: 0.7; 
        transform: scale(1.03) translateX(5px);
    }
}

/* Mejoras para las secciones */
.about-book {
    background: linear-gradient(135deg, var(--color-cream) 0%, #f0f0dc 100%);
    position: relative;
}

.brain-gym {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.about-author {
    background: linear-gradient(135deg, var(--color-cream) 0%, #f0f0dc 100%);
}

/* Efectos de scroll suaves para toda la página */
* {
    scroll-behavior: smooth;
}

/* ===== LOADING SCREEN ÉPICO CON ANIMACIÓN IA ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #0a2818 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
}

.loading-content {
    text-align: center;
    color: var(--text-white);
    position: relative;
}

/* Contenedor de animación IA */
.ai-animation-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: aiGlow 3s ease-in-out infinite;
}

@keyframes aiGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.6);
        transform: scale(1.02);
    }
}

#lottie-ai-animation {
    width: 250px;
    height: 250px;
    filter: hue-rotate(45deg) saturate(1.2) brightness(1.1);
}

/* Estilo adicional para la animación SVG */
.ai-animation-svg {
    animation: svgPulse 4s ease-in-out infinite;
}

@keyframes svgPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(45deg) saturate(1.2) brightness(1.1);
    }
    25% {
        transform: scale(1.02) rotate(1deg);
        filter: hue-rotate(50deg) saturate(1.3) brightness(1.2);
    }
    50% {
        transform: scale(1.05) rotate(0deg);
        filter: hue-rotate(40deg) saturate(1.4) brightness(1.15);
    }
    75% {
        transform: scale(1.02) rotate(-1deg);
        filter: hue-rotate(55deg) saturate(1.25) brightness(1.25);
    }
}

/* Texto del loading actualizado */
.loading-text h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-accent-1);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.loading-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    animation: fadeInOut 3s ease-in-out infinite;
    color: var(--color-cream);
}

@keyframes textGlow {
    0% {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 2px 2px 20px rgba(255, 215, 0, 0.5);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Barra de progreso mejorada */
.progress-container {
    width: 320px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-accent-orange), var(--color-accent-1), #FFE55C);
    border-radius: 12px;
    width: 0%;
    transition: width 0.3s ease;
    animation: progressGlow 2s ease-in-out infinite;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-percentage {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--color-accent-1);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Efectos de magnetismo */
a, button, .btn {
    transition: transform 0.2s ease;
}

a:hover, button:hover, .btn:hover {
    transform: translateY(-2px);
}

/* ===== PARTÍCULAS NEURALES INTELIGENTES ===== */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.7;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* ===== EFECTO GLASSMORPHISM ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.45);
}

/* Aplicar glassmorphism a elementos existentes */
.toc-preview, .areapreguntas,
.exercise-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.author-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== PARALLAX MULTICAPA ===== */
[data-parallax] {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* ===== MORPHING BUTTONS ===== */
.btn-morph {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-morph .btn-icon {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-morph:hover .btn-icon {
    right: 20px;
    opacity: 1;
}

.btn-morph:hover .btn-text {
    transform: translateX(-15px);
}

.btn-morph .btn-text {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


#botonfijocompra {
    opacity:0.4;
    z-index:1000;
}
#botonfijocompra:hover {
    opacity:1.0;
}

/* ===== BOTONES QUE LATEN ===== */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.05);
    }
    45% {
        transform: scale(0.95);
    }
}

.btn-primary {
    animation: heartbeat 2s ease-in-out infinite;
    animation-play-state: paused;
}

.btn-primary:hover {
    animation-play-state: running;
}

/* ===== EFECTOS 3D AVANZADOS ===== */
.exercise-card,
.toc-preview {
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.exercise-card:hover {
    transform: perspective(1000px) rotateX(-5deg) rotateY(5deg) translateZ(30px);
}

/* ===== NEURAL NETWORK BACKGROUND MEJORADO ===== */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="neuron" cx="50%" cy="50%" r="50%"><stop offset="0%" style="stop-color:rgba(255,215,0,0.8);stop-opacity:1"/><stop offset="100%" style="stop-color:rgba(255,215,0,0);stop-opacity:0"/></radialGradient></defs><g class="neural-network"><circle cx="100" cy="200" r="3" fill="url(%23neuron)"/><circle cx="300" cy="150" r="4" fill="url(%23neuron)"/><circle cx="500" cy="300" r="2" fill="url(%23neuron)"/><circle cx="700" cy="180" r="3" fill="url(%23neuron)"/><circle cx="900" cy="250" r="4" fill="url(%23neuron)"/><circle cx="150" cy="400" r="3" fill="url(%23neuron)"/><circle cx="350" cy="450" r="2" fill="url(%23neuron)"/><circle cx="550" cy="380" r="4" fill="url(%23neuron)"/><circle cx="750" cy="420" r="3" fill="url(%23neuron)"/><circle cx="950" cy="480" r="2" fill="url(%23neuron)"/><circle cx="200" cy="600" r="3" fill="url(%23neuron)"/><circle cx="400" cy="650" r="4" fill="url(%23neuron)"/><circle cx="600" cy="580" r="2" fill="url(%23neuron)"/><circle cx="800" cy="620" r="3" fill="url(%23neuron)"/><circle cx="120" cy="750" r="4" fill="url(%23neuron)"/><circle cx="320" cy="800" r="2" fill="url(%23neuron)"/><circle cx="520" cy="730" r="3" fill="url(%23neuron)"/><circle cx="720" cy="780" r="4" fill="url(%23neuron)"/><circle cx="920" cy="720" r="2" fill="url(%23neuron)"/><line x1="100" y1="200" x2="300" y2="150" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="300" y1="150" x2="500" y2="300" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="500" y1="300" x2="700" y2="180" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="700" y1="180" x2="900" y2="250" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="150" y1="400" x2="350" y2="450" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="350" y1="450" x2="550" y2="380" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="550" y1="380" x2="750" y2="420" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="750" y1="420" x2="950" y2="480" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="200" y1="600" x2="400" y2="650" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="400" y1="650" x2="600" y2="580" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="600" y1="580" x2="800" y2="620" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="120" y1="750" x2="320" y2="800" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="320" y1="800" x2="520" y2="730" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="520" y1="730" x2="720" y2="780" stroke="rgba(255,215,0,0.2)" stroke-width="1"/><line x1="720" y1="780" x2="920" y2="720" stroke="rgba(255,215,0,0.3)" stroke-width="1"/><line x1="100" y1="200" x2="150" y2="400" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="300" y1="150" x2="350" y2="450" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="500" y1="300" x2="550" y2="380" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="700" y1="180" x2="750" y2="420" stroke="rgba(255,215,0,0.1)" stroke-width="1"/><line x1="900" y1="250" x2="950" y2="480" stroke="rgba(255,215,0,0.1)" stroke-width="1"/></g></svg>');
    opacity: 0.3;
    animation: neuralPulse 8s ease-in-out infinite;
    z-index: 0;
} 


/* Jesus 
=================================*/

.benefits-list ul li {padding: 0;margin: 0;}

.benefits-list li {
    display: list-item;
}

.benefits-list h4 {
    display:  inline;
    padding-left: 0.5em;
}
.areapreguntas{
    margin-bottom: 1em;
}

.listatrabajo{

    display: inline-block;
    text-align: start;
    padding-left: 0.8em;
}

.people {
    background-color: #1a4d2e;
    color: white;
}
h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}
.toc-note {
    font-style: italic;
    color: inherit;
    margin-top: 0;
}

.dirigido {
    margin-top: 1em;
}
.muestragimnasio{
    width: 100%;
    max-width: 550px;
}
.exercise-card{
    text-align: center;
}
.metodo{font-size: 1.5em;
box-shadow: 0 4px 15px rgba(255, 165, 0, 0.3);
text-align: center;

}
.portadacentrada{
    text-align: center;
}
.portadacentrada img {
    max-width: 230px;
    box-shadow: 0 23px 66px #777;
}

.footer-credit {display: none;}



/* ================================== */
/*        ESTILOS TESTIMONIOS         */
/* ================================== */

.testimonials {
    background-color: #f8f9fa; /* Un fondo suave para diferenciar la sección */
    padding: 80px 0;
}

.testimonial-swiper {
    padding-bottom: 50px; /* Espacio para la paginación */
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto; /* Centra la tarjeta en el slide */
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-img {
    display:none;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0px;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    font-style: italic;
    color: #333;
    margin: 0 0 25px 0;
    border: none; /* Resetear el borde del blockquote */
}

.testimonial-author strong {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    display: block;
    color: #000;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Personalización de Swiper para que encaje con tu diseño */
/* Usaré un color dorado/amarillo que vi en los iconos de tu HTML */
:root {
    --swiper-theme-color: #FFD700; /* Color primario para el carrusel */
    --swiper-navigation-color: #ddd; /* Color de las flechas */
}

.swiper-pagination-bullet-active {
    background: var(--swiper-theme-color);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--swiper-navigation-color);
    transition: opacity 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 0.7;
}

.botoncompra{
    text-align: center;
}

#evento-banner {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: #005a5a;
    color: #ffffff;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.95em;
    z-index: 1001; /* Z-index más alto que el header */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
/* Clase para ocultar el banner */
#evento-banner.oculto {
    display: none;
}
#evento-banner p {
    margin: 0;
    padding-right: 30px;
}
#cerrar-banner {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    line-height: 1;
}