/* RESET & BASE */
:root {
    /* Colores */
    --color-bg-body: #F9F9F7; /* Blanco roto cálido */
    --color-bg-dark: #1A1A1A; /* Negro suave */
    --color-bg-card: #FFFFFF;
    
    --color-text-main: #2C2C2C;
    --color-text-muted: #666666;
    --color-text-light: #E0E0E0;
    --color-text-light-muted: #A0A0A0;
    
    --color-accent: #C5A059; /* Dorado sobrio */
    --color-accent-hover: #B08D45;
    
    --color-border: #E5E5E5;
    --color-border-dark: #333333;
    
    /* Tipografía */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-card: 0 4px 12px rgba(0,0,0,0.08);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1 {
    font-family: var(--font-heading);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--color-text-main);
    color: #fff;
    border: 1px solid var(--color-text-main);
}
.btn-primary:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-text-main);
}
.btn-secondary:hover {
    background-color: var(--color-text-main);
    color: #fff;
}

.btn-gold {
    background-color: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
}
.btn-gold:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

.btn-nav {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border: 1px solid var(--color-text-main);
    background: transparent;
    border-radius: 50px;
}
.btn-nav:hover {
    background: var(--color-text-main);
    color: #fff;
}

/* HEADER */
.site-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    background-color: var(--color-bg-body);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-main);
}
.nav-link:hover, .nav-link.active {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-main);
    transition: 0.3s;
}

/* HERO COMMON */
.hero {
    padding: 3rem 0;
}
.hero--center {
    text-align: center;
}
.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}
.hero-lead {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f0f0;
    color: #555;
    font-size: 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}
.badge-gold {
    background-color: rgba(197, 160, 89, 0.1);
    color: var(--color-accent);
}

/* SECTIONS COMMON */
.section {
    padding: 3rem 0;
}

.section-header-flex {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-main);
    text-align: center;
    width: 100%;
}
.link-secondary {
    font-size: 0.9rem;
    border-bottom: 1px solid var(--color-border-dark);
}

/* BLOG GRID */
.blog-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.section--compact {
    padding-top: 1rem;
}
.filter-btn {
    background: none;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}
.filter-btn.active, .filter-btn:hover {
    border-color: var(--color-text-main);
    background-color: var(--color-text-main);
    color: #fff;
}

.blog-editorial-intro {
    max-width: 620px;
    margin: 0 auto 32px;
    text-align: center;
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    font-family: sans-serif;
}

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

.blog-card {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.05);
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}
.blog-card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #eee;
    position: relative;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.08);
}
.blog-card-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.blog-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.blog-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
}
.blog-title a {
    color: var(--color-text-main);
    text-decoration: none;
    background-image: linear-gradient(var(--color-accent), var(--color-accent));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size 0.3s;
}
.blog-card:hover .blog-title a {
    background-size: 100% 2px;
}
.blog-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}
.blog-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.3s ease;
}
.blog-link:hover {
    gap: 0.5rem;
}

/* ARTICULO INDIVIDUAL (Single Post) */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3rem;
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
    max-width: 90%;
    margin: 0 auto;
    font-weight: 400;
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 4rem;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    font-family: var(--font-body);
}

.article-content p {
    margin-bottom: 1.75rem;
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-top: 3.5rem;
    margin-bottom: 1.25rem;
    color: var(--color-text-main);
    position: relative;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent);
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #222;
}

.article-content ul {
    list-style: disc !important;
}
.article-content ol {
    list-style: decimal !important;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-content blockquote {
    border-left: none;
    position: relative;
    padding: 2rem 3rem;
    margin: 3rem 0;
    font-style: italic;
    font-size: 1.35rem;
    color: #444;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
}
.article-content blockquote::before {
    content: "“";
    font-family: var(--font-heading);
    font-size: 4rem;
    color: var(--color-accent);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.share-section {
    text-align: center;
    margin: 4rem 0 0;
    padding: 3rem 1.5rem;
    background-color: #f9f9f7;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.share-section h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.share-section p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    .article-lead {
        font-size: 1.1rem;
    }
    .article-content h2 {
        font-size: 1.75rem;
    }
}

/* PODCAST SPECIFIC */
.podcast-banner {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    padding: 1.5rem 0;
    color: #fff;
    border-bottom: 4px solid var(--color-accent);
    position: relative;
    overflow: hidden;
}
.podcast-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: bannerShine 6s infinite;
}
@keyframes bannerShine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}
.podcast-banner-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}
.podcast-banner-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.01em;
}
.podcast-banner .badge {
    margin-bottom: 0;
}
.podcast-banner .badge-gold {
    background-color: var(--color-accent);
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.4);
}

.episodes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.episode-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    transition: 0.3s;
}
.episode-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.episode-image-placeholder {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background-color: #f0f0f0;
}
.episode-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.episode-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.episode-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.episode-meta .featured-badge {
    color: var(--color-accent);
    font-weight: 600;
}

.episode-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.episode-title a {
    text-decoration: none;
    color: var(--color-text-main);
}
.episode-title a:hover {
    color: var(--color-accent);
}

.episode-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-text-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}
.btn-text-icon:hover {
    color: var(--color-accent-hover);
}
.play-icon {
    font-size: 0.8rem;
}

/* Mobile Responsiveness for Podcast Cards */
@media (max-width: 600px) {
    .episode-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .episode-image-placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }
}

/* INTERLINK SECTION */
.blog-interlink {
    padding: 4rem 0;
    background-color: #F4F4F2;
    margin-top: 4rem;
}
.related-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}
.interlink-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .interlink-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.interlink-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    background-color: #000;
    height: 300px;
    background-size: cover;
    background-position: center;
}
.interlink-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    transition: 0.3s;
}
.interlink-card:hover::before {
    background: rgba(0,0,0,0.4);
}
.interlink-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}
.interlink-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.interlink-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}
.interlink-cta {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CARD BACKGROUNDS (placeholder urls) */
.interlink-card--libros {
    background-image: url('../img/libro-caballos-historia.png');
}
.interlink-card--patreon {
    background-image: url('../img/vocesdelegadoportadapodcast.png');
}
.interlink-card--blog {
    background-image: url('../img/imagencienciaygeneticadelcaballo.png');
}

.interlink-card--podcast {
    background-image: url('../img/portada-voces-de-legado-sin-letra-podcast.png');
}

.interlink-grid--three {
    grid-template-columns: 1fr 1fr 1fr;
}

/* Interlink Mobile */
@media (max-width: 768px) {
    .interlink-grid,
    .interlink-grid--three {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* FOOTER */
.site-footer {
    background-color: #000000;
    color: #fff;
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 1rem;
}
.footer-claim {
    color: #aaa;
    max-width: 300px;
}
.footer-contact {
    margin-top: 1rem;
}
.footer-contact a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.footer-contact a:hover {
    text-decoration: underline;
}
.footer-nav h4, .footer-social h4 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-nav ul li, .social-links li {
    margin-bottom: 0.75rem;
}
.footer-nav a, .social-links a {
    color: #ddd;
    font-size: 0.95rem;
}
.footer-nav a:hover, .social-links a:hover {
    color: #fff;
}
.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: 2rem;
    color: #666;
    font-size: 0.85rem;
}
.bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 1.5rem 0;
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}
.cookie-banner.is-visible {
    transform: translateY(0);
}
.cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media(min-width: 768px) {
    .cookie-banner__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.cookie-banner__text p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.cookie-banner__links {
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
}
.cookie-banner__links button {
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    color: var(--color-text-muted);
}
.cookie-banner__actions {
    display: flex;
    gap: 1rem;
}
.cookie-btn-secondary {
    background: transparent;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* COOKIE PANEL (Modal) */
.cookie-panel-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.cookie-panel-backdrop.is-open {
    opacity: 1;
    pointer-events: all;
}
.cookie-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 8px;
    z-index: 2002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    max-height: 90vh;
    overflow-y: auto;
}
.cookie-panel.is-open {
    opacity: 1;
    pointer-events: all;
}
.cookie-panel__group {
    margin: 1.5rem 0;
}
.cookie-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.cookie-toggle-row strong {
    display: block;
    margin-bottom: 0.25rem;
}
.cookie-toggle-row p {
    font-size: 0.85rem;
    color: #666;
    max-width: 300px;
}
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}
.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}
.cookie-switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .cookie-switch-slider {
    background-color: var(--color-accent);
}
input:checked + .cookie-switch-slider:before {
    transform: translateX(16px);
}
.cookie-panel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

/* BOOK PROMO POPUP */
.book-popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.book-popup.is-visible {
    opacity: 1;
    pointer-events: all;
}
.book-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}
.book-popup__content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.book-popup.is-visible .book-popup__content {
    transform: translateY(0);
}
.book-popup__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.8);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}
.book-popup__close:hover {
    background: #fff;
    color: var(--color-accent);
}
.book-popup__grid {
    display: grid;
    grid-template-columns: 1fr;
}
@media(min-width: 768px) {
    .book-popup__grid {
        grid-template-columns: 1fr 1.2fr;
    }
}
.book-popup__image {
    background-color: var(--color-bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.book-popup__image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(197, 160, 89, 0.2) 0%, rgba(0,0,0,0) 70%);
}
.book-popup__image img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}
.book-popup__content:hover .book-popup__image img {
    transform: rotate(0deg) scale(1.05);
}
.book-popup__details {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
.book-popup__label {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.book-popup__details h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--color-text-main);
}
.book-popup__details p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.book-popup__details .btn {
    align-self: flex-start;
}

/* RESPONSIVE NAV & POPUP */
@media (max-width: 768px) {
    /* Popup Adjustments */
    .book-popup__content {
        max-width: 90vw;
        max-height: 90vh;
        overflow-y: auto;
    }
    .book-popup__image {
        padding: 1.5rem;
        height: 200px;
    }
    .book-popup__image img {
        max-height: 160px;
    }
    .book-popup__details {
        padding: 1.5rem;
        text-align: center;
    }
    .book-popup__details h3 {
        font-size: 1.5rem;
    }
    .book-popup__details .btn {
        align-self: center;
        width: 100%;
    }
    .book-popup__close {
        top: 0.5rem;
        right: 0.5rem;
        background: #fff;
        color: #333;
    }
    
    /* Nav */
    .site-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg-body);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    .site-nav.open {
        transform: translateY(0);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .mobile-menu-toggle {
        display: flex;
    }
}

/* RESTORED HOME & GLOBAL LAYOUTS */

/* Hero Grid System */
.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3rem;
}
@media (min-width: 900px) {
    /* If there is a second column (image), restore grid, otherwise keep centered */
    .hero-grid:has(.hero-visual) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center; /* Center buttons */
}
@media (min-width: 900px) {
    /* If grid layout is active (2 columns), align left */
    .hero-grid:has(.hero-visual) .hero-actions {
        justify-content: flex-start;
    }
}
.social-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-top: 2rem;
}
.proof-number {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 1.25rem;
}
.proof-text {
    font-weight: 500;
}
.proof-tagline {
    flex-basis: 100%;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: 0.25rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .social-proof {
        justify-content: center;
        text-align: center;
    }
    .proof-tagline {
        text-align: center;
    }
}

/* Spotify Section */
.spotify-feature {
    background-color: #000;
    color: #fff;
    padding: var(--spacing-lg) 0;
}
.spotify-feature .section-title {
    color: #fff;
}
.spotify-feature .text-lead {
    color: #ccc;
}

.spotify-feature-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.rate-podcast-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rate-podcast-cta:hover {
    color: #fff;
}

.spotify-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem; /* Better spacing for mobile */
    margin-top: 2rem;
}
@media (min-width: 600px) {
    .spotify-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .spotify-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.spotify-card {
    background: var(--color-bg-card);
    color: var(--color-text-main);
    border: 1px solid rgba(0,0,0,0.08); /* More subtle border */
    border-radius: 16px; /* Larger radius for modern feel */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy transition */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Modern shadow */
    height: 100%; /* Ensure full height in grid */
}
.spotify-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--color-accent);
}
.spotify-card-image {
    overflow: hidden;
    position: relative;
    aspect-ratio: 1/1; /* Enforce square */
}
.spotify-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}
.spotify-card:hover .spotify-card-image img {
    transform: scale(1.08);
}
.spotify-card-body {
    padding: 2rem; /* Generous padding */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}
.spotify-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--color-text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spotify-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit description lines */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.spotify-card-cta {
    width: 100%;
    text-align: center;
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    background-color: transparent;
    border: 2px solid var(--color-text-main);
    color: var(--color-text-main);
}
.spotify-card-cta:hover {
    background-color: var(--color-text-main);
    color: #fff;
    transform: translateY(-2px);
}
.spotify-card:hover .spotify-card-cta {
    border-color: var(--color-accent);
    background-color: var(--color-accent);
    color: #fff;
}

/* Archive Grid */
.archive-section {
    background-color: var(--color-bg-dark);
    color: #fff;
    padding: var(--spacing-lg) 0;
}
.archive-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.archive-subtitle {
    color: var(--color-text-light-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 600px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 900px) {
    .archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.archive-card {
    position: relative;
    background-color: #000;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}
.archive-card:hover {
    border-color: var(--color-accent);
}
.archive-card-content {
    position: relative;
    z-index: 2;
}
.archive-card-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.5rem;
}
.archive-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.2;
    color: #fff;
}
/* Background placeholders for archive cards */
.archive-card--razas { background: linear-gradient(to bottom, transparent, #000), url('../img/imagenrazasyorigenesdelcaballo.png') center/cover; }
.archive-card--imperios { background: linear-gradient(to bottom, transparent, #000), url('../img/imagenimperioyguerracaballo.png') center/cover; }
.archive-card--ciencia { background: linear-gradient(to bottom, transparent, #000), url('../img/imagencienciaygeneticadelcaballo.png') center/cover; }
.archive-card--doma { background: linear-gradient(to bottom, transparent, #000), url('../img/imagendomaymontacaballo.png') center/cover; }
.archive-card--cultura { background: linear-gradient(to bottom, transparent, #000), url('../img/imagenculturaecuestrecaballo.png') center/cover; }
.archive-card--tradicional { background: linear-gradient(to bottom, transparent, #000), url('../img/imagenconocimientotradicionalcaballos.png') center/cover; }

/* Community / Patreon Section */
.community {
    background-color: var(--color-bg-dark);
    color: #fff;
    padding: var(--spacing-xl) 0;
}
.community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}
@media (min-width: 900px) {
    .community-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.text-light { color: #fff; }
.text-light-muted { color: var(--color-text-light-muted); }

.benefit-list {
    margin: 2rem 0;
}
.benefit-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text-light);
}
.benefit-list .icon {
    color: var(--color-accent);
}

.community-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.community-card-mockup {
    width: 100%;
    max-width: 550px; /* Aumentado para dar más espacio */
    position: relative;
    margin: 0 auto;
    overflow: visible; /* Asegura que nada se recorte */
}

.community-card-mockup img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border-radius: 4px;
    /* Eliminado max-height y object-fit para evitar conflictos de recorte */
}

/* Patreon Page Specifics */
.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 900px) {
    .spotlight-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.spotlight-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}
.spotlight-img {
    width: 100%;
    border-radius: 8px;
}
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 900px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.showcase-card {
    background: #fff;
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: transparent;
}

/* Decorative top line on hover */
.showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.showcase-card:hover::before {
    transform: scaleX(1);
}

.showcase-icon-wrapper {
    margin-bottom: 1rem;
}

.showcase-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1;
    color: rgba(197, 160, 89, 0.25);
    font-weight: 700;
    display: block;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
}

.showcase-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.showcase-preview {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 1.5rem;
    margin-top: auto;
}

.preview-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-text-light-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.showcase-list li {
    font-size: 0.95rem;
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.showcase-list li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
    opacity: 0.7;
}

/* --- PAGE: LIBROS RE-DESIGN --- */

/* Hero Editorial */
.hero--editorial {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 4rem 0;
    text-align: center;
}

.hero--editorial .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    color: #fff;
}

.hero--editorial .hero-lead {
    font-family: var(--font-body);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-text-light-muted);
}

/* Featured Book */
.section--featured-book {
    padding: 2rem 0;
    background-color: var(--color-bg-body);
}

@media (min-width: 768px) {
    .section--featured-book {
        padding: 3rem 0;
    }
}

.book-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .book-layout {
        grid-template-columns: 45% 1fr;
        gap: 4rem;
    }
}

.book-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.book-cover-large {
    width: 100%;
    max-width: 450px;
    height: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-radius: 2px;
}

.book-content .book-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.book-content .book-subtitle {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-style: italic;
}

.book-synopsis {
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-main);
}

.book-values {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.book-values li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.book-values li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    top: 2px;
}

.book-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.book-microcopy {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.section--intl-editions {
    background-color: #f4f4f2;
    padding: 2.5rem 0 3rem;
}

@media (min-width: 768px) {
    .section--intl-editions {
        padding: 3rem 0 3.5rem;
    }
}

.section--intl-editions .section-title {
    margin-bottom: 1rem;
}

.section-kicker {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

.book-editions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .book-editions {
        grid-template-columns: 1fr 1fr;
    }
}

.book-edition {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.75rem 1.75rem 1.9rem;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.book-edition:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.08);
    border-color: var(--color-accent);
}

.book-edition h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.book-edition p {
    text-align: left;
    margin-bottom: 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.book-edition .edition-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.book-edition .btn {
    margin-top: auto;
}

/* Books in Process */
.section--process {
    background-color: #f4f4f2; /* Slightly darker than bg-body */
    padding: 3rem 0;
}

.section--process .section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-text-main);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.process-card {
    background: transparent;
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 4px;
    transition: border-color 0.3s;
}

.process-card:hover {
    border-color: var(--color-accent);
}

.process-status {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 1px solid var(--color-text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.process-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text-main);
}

.process-desc {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.process-footer {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--color-accent);
}

/* Closing */
.section--closing {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--color-bg-body);
}

@media (min-width: 768px) {
    .section--closing {
        padding: 3rem 0;
    }
}

.closing-text {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.4;
    color: var(--color-text-main);
}

.closing-link {
    display: inline-block;
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--color-accent);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.closing-link:hover {
    color: var(--color-accent);
}

/* Responsive Image Fix for Community Card */
@media (max-width: 768px) {
    .hero-image-placeholder img,
    .hero-image-placeholder {
        height: auto !important;
    }
}

/* --- RESTORED MISSING SECTIONS (HOME) --- */

/* Hero Image Placeholder (Base) */
.hero-image-placeholder {
    width: 100%;
    /* aspect-ratio: 1/1; Removed to allow natural image shape */
    background-color: transparent; /* Changed from #f0f0f0 to avoid gray bars */
    border-radius: 8px;
    overflow: visible; /* Changed from hidden to avoid clipping shadows/edges */
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image-placeholder img {
    width: 100%;
    height: auto; /* Changed from 100% to auto */
    object-fit: contain; /* Changed from cover to contain */
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Added shadow for better look */
}

/* Project Intro (Editorial) */
.project-intro {
    background-color: #F9F9F7;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}
.project-intro-inner {
    display: flex;
    justify-content: center;
}
.project-intro-card {
    max-width: 800px;
    text-align: center;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.project-intro-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}
.project-intro-lead {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.project-intro-text {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Featured Book Section */
.featured-book {
    padding: 4rem 0;
    background-color: #fff;
}
.book-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.book-content {
    order: -1;
}
@media (min-width: 900px) {
    .book-card {
        grid-template-columns: 1fr 1fr;
    }
    .book-content {
        order: initial;
    }
}
.book-visual {
    background-color: #f4f4f4;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
.book-cover-placeholder {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.book-cover-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
}
.book-content {
    padding: 2rem;
}
.book-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    margin-top: 1rem;
}
.book-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.book-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1.4rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}
.book-languages-label {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}
.book-language-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.badge-outline {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-text-main);
    color: var(--color-text-main);
    font-size: 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Latest Episode & Recent Episodes (Restored) */
.latest-episode {
    background-color: #f8f5f0;
    padding: 4rem 0;
    border-top: 1px solid var(--color-border);
}
.section-header-center {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}
.episode-player-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    min-height: 152px;
}

.recent-episodes {
    padding: 4rem 0;
}

/* Latest Episode Card Styling */
.latest-player-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .latest-player-card {
        flex-direction: row;
        text-align: left;
    }
}

.latest-artwork {
    width: 100%;
    max-width: 200px; /* Reduced size */
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.latest-artwork img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.latest-content {
    flex-grow: 1;
}

.latest-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-main);
    line-height: 1.3;
}

.latest-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

@import 'mailerlite-custom.css';

/* --- RESTORED MISSING SECTIONS (PART 2: HOME & PATREON) --- */

/* Lead Magnet (Home) */
.lead-magnet {
    padding: 6rem 0;
    background-color: #F4F4F4; /* Light gray background */
    color: var(--color-text-main);
    text-align: center;
    border-top: 1px solid var(--color-border);
}
.magnet-card {
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    padding: 3rem;
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.magnet-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}
.magnet-text {
    margin-bottom: 2rem;
    color: var(--color-text-muted);
    font-size: 1.1rem;
}
.magnet-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}
.magnet-form input {
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #555;
    flex-grow: 1;
    min-width: 250px;
}
.privacy-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 1rem;
}

/* Social TikTok (Home) */
.social-tiktok {
    padding: 4rem 0;
    background-color: #fff;
    color: var(--color-text-main);
    text-align: center;
    border-top: 1px solid var(--color-border);
}
.social-tiktok-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--color-text-main);
}
.social-tiktok-card {
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.social-tiktok-header {
    margin-bottom: 1rem;
}
.social-tiktok-handle {
    font-weight: bold;
    font-size: 1.2rem;
    display: block;
    color: var(--color-text-main);
}
.social-tiktok-bio {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.social-tiktok-followers {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tiktok-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.social-tiktok-metric-number {
    font-weight: 700;
    font-size: 1.5rem; /* Larger number */
    color: var(--color-text-main);
    line-height: 1;
}
.tiktok-metric-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}
.social-tiktok-link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--color-accent);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
}
.social-tiktok-link:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* Community Sample (Home & Patreon) */
.community-sample-container {
    padding-top: 2rem;
}
.community-sample-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin-bottom: 3rem;
}
.community-sample {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .community-sample {
        grid-template-columns: 1fr 1fr;
    }
}
.sample-label {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.sample-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}
.sample-desc {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.sample-link {
    color: var(--color-accent);
    font-weight: 600;
    text-decoration: none;
}
.sample-link:hover {
    text-decoration: underline;
}
.sample-preview {
    order: -1; /* Place image on the left (desktop) or top (mobile) */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    aspect-ratio: 16/9;
    background: #333;
}
.sample-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.sample-preview:hover .sample-image {
    transform: scale(1.03);
}

/* Patreon Specifics */
.hero--patreon {
    background-color: #1a1a1a;
    color: #fff;
    padding: 6rem 0 4rem;
    text-align: center;
}
.hero--patreon .hero-title {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}
.hero--patreon .hero-lead {
    color: #ccc;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
}

.spotlight {
    padding: 4rem 0;
    background-color: #fff;
}
.spotlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .spotlight-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.spotlight-card {
    border: 1px solid var(--color-border);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    background: #f9f9f7;
    transition: transform 0.3s;
}
.spotlight-card:hover {
    transform: translateY(-5px);
}
.spotlight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.spotlight-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}
.spotlight-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* --- FAQ ACCORDION STYLES --- */
.faq-section {
    padding: 4rem 0;
    background-color: var(--color-bg-body);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.faq-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-text-main);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: var(--color-text-main);
    transition: background-color 0.2s ease;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-body);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--color-accent);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--color-bg-card);
}

.faq-answer p {
    margin: 0;
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* Creator Credit */
.creator-credit {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
}
.creator-credit a {
    color: inherit;
    text-decoration: underline;
}
.creator-credit a:hover {
    color: var(--color-accent);
}
