/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* CSS Variables - Originales */
:root {
    --primary-color: #8B3134;
    --secondary-color: #FFD700;
    --gold: #FFD700;
    --text-color: #333;
    --background-color: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo span {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B3134;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #8B3134;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #8B3134;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #8B3134, #A0353A);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 49, 52, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #FFD700, #FFC107);
    color: #333;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: #8B3134;
    border: 2px solid #8B3134;
}

.btn-outline:hover {
    background: #8B3134;
    color: white;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--background-color) 0%, var(--light-gray) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #8B3134;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-family: 'Merriweather', serif;
    font-style: italic;
}

.hero-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-image {
    text-align: center;
}

.book-cover {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.book-cover:hover {
    transform: scale(1.05);
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #8B3134;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* About Book Section */
.about-book {
    background: #fafafa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Author Section */
.author-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
}

.author-image {
    text-align: center;
}

.author-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #8B3134;
    box-shadow: 0 10px 30px rgba(139, 49, 52, 0.2);
}

.author-name {
    font-size: 1.8rem;
    color: #8B3134;
    margin-bottom: 1.5rem;
}

.author-bio {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials {
    background: #fafafa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

.quote-icon {
    color: #FFD700;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-author .author-name {
    font-weight: 600;
    color: #333;
    display: block;
}

.testimonial-author .author-title {
    color: #888;
    font-size: 0.9rem;
}

/* Download Section */
.download {
    background: linear-gradient(135deg, #8B3134, #A0353A);
    color: white;
}

.download .section-title,
.download .section-description {
    color: white;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.download-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.form-group input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.form-group input::placeholder {
    color: #888;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.8rem;
    color: #FFD700;
    margin-bottom: 1rem;
}

.footer-description {
    color: #ccc;
    margin-bottom: 2rem;
}

.social-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: #8B3134;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #FFD700;
    color: #333;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 2rem;
    text-align: center;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-text {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .author-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .section-title {
        font-size: 1.8rem;
    }

    section {
        padding: 60px 0;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

/* Success Message Styles */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #c3e6cb;
    display: none;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #f5c6cb;
    display: none;
}

/* Language Selector Styles */
.language-selector {
    margin-left: 20px;
}

.language-selector select {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--gold);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.1);
}

.language-selector option {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border: none;
}

/* Author credentials styling */
.author-credentials {
    color: var(--gold);
    font-style: italic;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Form disclaimer styling */
.form-disclaimer {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    margin-top: 15px;
}

/* Mobile adjustments for language selector */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 0;
        margin-top: 10px;
        padding: 15px;
    }
    
    .language-selector select {
        width: 100%;
        padding: 12px;
    }
}

/* Mindfulness Landing Styles */
.hero--mind {
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.95)), url(/img/mindfulness/hero.jpg) center/cover no-repeat;
    padding: 8rem 0 5rem;
}

.hero__title {
    font-family: 'Merriweather', serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    color: #8B3134;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
    max-width: 60ch;
    line-height: 1.6;
}

.hero__meta {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.mindfulness-cover {
    max-width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.mindfulness-cover:hover {
    transform: scale(1.02);
}

.cta-buttons {
    text-align: center;
    margin-top: 2rem;
}

.download-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 1rem;
    font-style: italic;
}

/* Features grid enhancements for mindfulness */
.features-grid .feature-icon {
    background: var(--primary-color);
}

.features-grid .feature-card:nth-child(2n) .feature-icon {
    background: var(--secondary-color);
}

.features-grid .feature-card:nth-child(3n) .feature-icon {
    background: var(--gray-dark);
}

/* Download page styles */
.download-page {
    background: linear-gradient(135deg, var(--background-color), var(--light-gray));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.download-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.download-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.download-title {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.download-message {
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.download-fallback {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* Responsive adjustments for mindfulness */
@media (max-width: 768px) {
    .hero--mind {
        padding: 6rem 0 4rem;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-group .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.6rem;
    }
    
    .hero__subtitle {
        font-size: 1rem;
    }
    
    .download-container {
        padding: 2rem;
    }
}

/* ===== ESTILOS ESPECÍFICOS PARA PÁGINA DE MINDFULNESS ===== */

/* Navegación en página Mindfulness */
.mindfulness-page .nav-logo span {
    color: #4C607B !important;
}

.mindfulness-page .nav-link {
    color: #211B17 !important;
}

.mindfulness-page .nav-link:hover {
    color: #4C607B !important;
}

.mindfulness-page .nav-link::after {
    background-color: #4C607B !important;
}

.mindfulness-page .bar {
    background-color: #211B17 !important;
}

/* Hero específico de Mindfulness */
.hero--mind .hero__title {
    color: #4C607B !important;
}

.hero--mind .hero__subtitle {
    color: #808288 !important;
}

.hero--mind .hero__meta {
    color: #211B17 !important;
}

/* Botones en hero Mindfulness */
.hero--mind .btn-primary {
    background: #4C607B !important;
    color: white !important;
}

.hero--mind .btn-primary:hover {
    background: #3A4A5C !important;
    box-shadow: 0 8px 25px rgba(76, 96, 123, 0.3) !important;
}

.hero--mind .btn-outline {
    color: #4C607B !important;
    border-color: #4C607B !important;
}

.hero--mind .btn-outline:hover {
    background: #4C607B !important;
}

/* Secciones después del hero Mindfulness */
.hero--mind + #features .section-title {
    color: #4C607B !important;
}

.hero--mind + #features .section-description {
    color: #808288 !important;
}

.hero--mind + #features .about-book {
    background: #EEF0F1 !important;
}

/* Iconos de características en Mindfulness */
.hero--mind + #features .features-grid .feature-icon {
    background: #4C607B !important;
}

.hero--mind + #features .features-grid .feature-card:nth-child(2n) .feature-icon {
    background: #CD866B !important;
}

.hero--mind + #features .features-grid .feature-card:nth-child(3n) .feature-icon {
    background: #808288 !important;
}

.hero--mind + #features .feature-title {
    color: #211B17 !important;
}

.hero--mind + #features .feature-description {
    color: #808288 !important;
}