/* styles.css */

/* =========================
   BASE / TOKENS
========================= */
:root {
    --bg: #ffffff;
    --bg-soft: #fbf7f6;
    --bg-dark: #0f080a;
    /* From Stitch 'midnight' */
    --bg-dark-light: #221115;
    /* From Stitch 'midnight-light' */

    --ink: #141414;
    --ink-light: #e5e5e5;
    --muted: #5d5d5d;
    --muted-light: #9ca3af;
    /* gray-400 */

    --primary: #d31746;
    /* From Stitch */
    --gold: #C5A059;
    /* From Stitch */
    --gold-light: #E5C888;

    --line: rgba(20, 20, 20, .08);
    --line-light: rgba(255, 255, 255, .1);

    --accent: #2a2a2a;
    --accent-soft: rgba(20, 20, 20, .06);

    --radius: 18px;
    --radius-sm: 12px;

    --shadow: 0 6px 24px rgba(10, 10, 10, .06);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);

    --ease: cubic-bezier(.2, .8, .2, 1);

    --font-serif: "Playfair Display", ui-serif, Georgia, serif;
    --font-sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

/* DECORATION FOR CONTACT HEADER */
.decoration-header {
    position: absolute;
    top: -50px;
    right: -20px;
    width: 300px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transform: rotate(15deg);
    filter: sepia(0.5) contrast(0.8);
}

.decoration-img {
    width: 100%;
    height: auto;
}

.page-hero {
    position: relative;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-serif);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--gold);
}

/* SOCIAL LINKS - Minimal & Elegant */
.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--muted);
    transition: all 0.3s var(--ease);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-link:hover {
    color: var(--gold);
    background: rgba(197, 160, 89, 0.1);
    transform: translateY(-2px);
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: clamp(56px, 6vw, 96px) 0;
    border-top: 1px solid var(--line);
}

.section-soft {
    background: var(--bg-soft);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--ink-light);
    border-top: 1px solid var(--line-light);
    position: relative;
    overflow: hidden;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    color: var(--muted);
    margin: 0 0 .5rem 0;
    font-family: var(--font-sans);
}

.section-head h2 {
    font-size: clamp(1.6rem, 2.3vw, 2.2rem);
    margin: 0 0 .6rem 0;
    line-height: 1.15;
}

.text-white {
    color: #fff;
}

.text-gray-400 {
    color: var(--muted-light);
}

.text-gold {
    color: var(--gold);
}

.subtle {
    color: var(--muted);
    margin: 0;
    max-width: 62ch;
    font-family: var(--font-sans);
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-weight: 600;
    font-family: var(--font-sans);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: all 0.3s var(--ease);
}

.btn-solid {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.btn-solid:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-ghost {
    background: transparent;
}

.btn-ghost:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.btn-outline-gold {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--bg-dark);
}

.btn-outline-white {
    border: 1px solid #fff;
    color: #fff;
    padding: 8px 20px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: 4px;
    /* Stitch style */
}

.btn:focus-visible {
    outline: 2px solid rgba(20, 20, 20, .35);
    outline-offset: 2px;
}

.btn-block {
    width: 100%;
}

/* =========================
   HEADER
========================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .90);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 42px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-nav a {
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--ink);
    text-decoration: none;
}

.header-ctas {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 12px;
    padding: 10px;
}

.nav-toggle-lines {
    width: 18px;
    height: 12px;
    display: inline-block;
    position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.nav-toggle-lines::before {
    top: 2px;
}

.nav-toggle-lines::after {
    bottom: 2px;
}

/* Mobile nav */
@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        inset: 66px 12px auto 12px;
        background: rgba(255, 255, 255, .98);
        border: 1px solid var(--line);
        border-radius: 18px;
        padding: 24px;
        display: none;
        flex-direction: column;
        gap: 16px;
        box-shadow: var(--shadow);
        align-items: flex-start;
    }

    .site-nav.is-open {
        display: flex;
    }

    .header-ctas {
        display: flex;
        gap: 8px;
    }

    .header-ctas .btn {
        display: none;
        /* Hide Contact button to fit icons */
    }

    .mobile-social-row {
        display: flex;
    }
}

.mobile-social-row {
    display: none;
    /* Hidden by default on desktop */
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    width: 100%;
    justify-content: center;
}

.mobile-social-row .social-link {
    width: 48px;
    height: 48px;
    background: var(--bg-soft);
}

/* =========================
   HERO
========================= */
.hero {
    border-top: none;
    padding-top: clamp(60px, 10vw, 120px);
    padding-bottom: clamp(60px, 10vw, 120px);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -10%;
    background-image: url('../assets/Fondo-MariposasViolentas.png');
    background-size: cover;
    background-position: center;
    opacity: 0.85;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 8, 10, 0.4) 0%, rgba(15, 8, 10, 0.7) 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    position: relative;
    z-index: 1;
}

html.js .hero-copy {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 800ms cubic-bezier(.2, .8, .2, 1) 200ms forwards;
}

html.js .hero-cover {
    opacity: 0;
    transform: scale(0.94);
    animation: heroCoverZoom 900ms cubic-bezier(.2, .8, .2, 1) 400ms forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroCoverZoom {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-cover {
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 2/3;
    width: 70%;
    margin-left: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 3D effect from Stitch */
.hero-cover img {
    transition: transform 0.5s ease;
}

.hero-cover:hover img {
    transform: scale(1.03);
}

.hero .kicker {
    color: var(--primary);
    font-weight: 700;
    background: rgba(211, 23, 70, 0.1);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    border: 1px solid rgba(211, 23, 70, 0.3);
    backdrop-filter: blur(4px);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    margin: 0 0 1.5rem 0;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.hero-tagline {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
}

.hero-blurb {
    margin: 0 0 2rem 0;
    max-width: 50ch;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-actions .btn-solid {
    background: var(--primary);
    border-color: var(--primary);
    padding: 16px 32px;
    border-radius: 4px;
}

.hero-actions .btn-solid:hover {
    background: #b01038;
    color: #fff;
}

.hero-actions .btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(4px);
    padding: 16px 32px;
    border-radius: 4px;
}

.hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-cover {
        width: 60%;
        margin: 0 auto;
        margin-top: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* =========================
   CURATED FAVORITES (Stitch Adapted)
========================= */
.glow-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(211, 23, 70, 0.05), transparent);
    filter: blur(60px);
    pointer-events: none;
}

.section-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--line-light);
    padding-bottom: 24px;
}

.section-title-large {
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 0 0 8px 0;
    font-family: var(--font-serif);
}

.link-arrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
}

.link-arrow:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.link-arrow .material-symbols-outlined {
    transition: transform 0.3s ease;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 600px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.fav-card {
    cursor: pointer;
}

.fav-card-image {
    position: relative;
    aspect-ratio: 2/3;
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-dark-light);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.5s var(--ease);
}

.fav-card:hover .fav-card-image {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.fav-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease);
}

.fav-card:hover .fav-card-bg {
    transform: scale(1.08);
    /* slight zoom */
}

.fav-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(211, 23, 70, 0.85);
    /* Primary color opacity */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.fav-card:hover .fav-card-overlay {
    opacity: 1;
}

.badge-gold {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gold);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 99px;
    z-index: 10;
}

.fav-card-info {
    text-align: center;
}

.fav-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 0 4px 0;
    color: #fff;
    transition: color 0.3s;
}

.fav-card:hover .fav-card-title {
    color: var(--primary);
}

.fav-card-meta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 900px) {
    .favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .section-head-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .link-arrow {
        display: none;
    }

    /* Hide desktop link */
    .mobile-center-cta {
        text-align: center;
        margin-top: 40px;
    }
}

@media (max-width: 600px) {
    .favorites-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   NEWSLETTER
========================= */
.newsletter-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}

.newsletter-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 32px;
}

.bullets {
    margin: 0 0 24px 1rem;
    padding: 0;
    color: var(--muted);
    font-family: var(--font-sans);
    line-height: 1.8;
}

.form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--muted);
}

.field input {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-family: var(--font-sans);
    background: var(--bg-soft);
}

.field input:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 1px;
}

.field-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.field-check input {
    margin-top: 4px;
}

.form-note {
    margin: 0;
    color: var(--muted);
    font-size: .85rem;
    text-align: center;
}

.form-status {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-sans);
}

@media (max-width: 900px) {
    .newsletter-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CONTACTO
========================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 28px;
    align-items: start;
}

.contact-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    background: #fff;
}

.contact-line {
    display: grid;
    gap: 6px;
    margin: 0 0 24px 0;
    font-family: var(--font-sans);
}

.contact-line .label {
    font-size: .85rem;
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
}

.contact-line .value {
    font-size: 1.25rem;
    font-weight: 500;
}

.contact-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FOOTER
========================= */
.site-footer {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    background: var(--bg-dark);
    color: #fff;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.footer-links {
    display: flex;
    gap: 24px;
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--muted-light);
}

.footer-links a:hover {
    color: #fff;
}

/* =========================
   COOKIES
========================= */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 24px;
    box-shadow: var(--shadow-hover);
    z-index: 60;
    display: none;
    max-width: 600px;
}

.cookie-banner.is-open {
    display: block;
}

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    margin: 0;
    min-width: 220px;
    font-family: var(--font-sans);
    font-size: .9rem;
    color: var(--muted);
}

.cookie-actions {
    display: flex;
    gap: 10px;
}

/* =========================
   SCROLL REVEAL
========================= */

/* Hidden by default when JS is enabled */
html.js .reveal-section,
html.js .reveal-card,
html.js .reveal-fade,
html.js .reveal-text,
html.js .reveal-subtle {
    opacity: 0;
}

html.js .reveal-section {
    transform: translateY(24px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

html.js .reveal-card {
    transform: translateY(24px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

html.js .reveal-fade {
    transition: opacity 1000ms var(--ease);
}

html.js .reveal-text {
    transform: translateY(16px);
    transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

html.js .reveal-subtle {
    transform: translateY(12px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

/* Visible state */
html.js .reveal-section.is-visible,
html.js .reveal-card.is-visible,
html.js .reveal-fade.is-visible,
html.js .reveal-text.is-visible,
html.js .reveal-subtle.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

    html.js .reveal-section,
    html.js .reveal-card,
    html.js .reveal-fade,
    html.js .reveal-text,
    html.js .reveal-subtle {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* =========================
   SAGAS SHOWCASE
========================================================= */
#sagas {
    /* DARK ROMANCE GRADIENT: Deep Petal to Midnight */
    background: #2b050d;
    /* Synced with JS Devórame color */
    color: var(--sagas-ink, var(--ink));
    padding-bottom: clamp(72px, 8vw, 120px);
    overflow: hidden;
    min-height: 950px;
    position: relative;
    transition: background 0.8s ease;
    /* AB FIXED: Smooth section BG transition */
}

/* Optional: Add a subtle texture overlay if available, or just keeping the gradient for now */
#sagas::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.sagas-showcase {
    position: relative;
    margin-top: 28px;
    /* Boxed Layout - Wider & Rounder */
    max-width: 1600px;
    width: 94vw;
    margin-inline: auto;
    /* Center */
    /* Fix Height */
    height: auto;
    min-height: 950px;
    overflow: hidden;
    /* Mask content outside box */
    border-radius: 32px;
    transition: background-color 0.8s ease;
    /* AB FIXED: Smooth BG transition */
}

/* TRACK SYSTEM (Retained for smooth slide) */
.series-track {
    display: flex;
    width: 200%;
    /* Reverted for layout fix */
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    /* Smoother ease */
    z-index: 1;
}

.series-slide {
    width: 50%;
    /* Reverted for layout fix */
    height: 100%;
    position: relative;
    flex-shrink: 0;
    /* AB FIXED Layout Logic: Stacked Grid */
    display: grid;
    grid-template-rows: auto 1fr;
}

/* LAYERS */
.series-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}



/* AB FIXED INTERNAL COMPONENTS (REFINED) */
.series-content-container {
    /* Allow grid layout to work */
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* CHANGE START: Texto blanco con sombras fuertes para legibilidad - FROM AB FIXED */
.series-meta {
    padding: 22px 0 0 0;
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
}

.series-meta .series-kicker {
    margin: 0 0 .4rem 0;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 4px 16px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.series-meta .series-title {
    margin: 0 0 .5rem 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 4px 24px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .series-meta .series-title {
        font-size: 1.8rem;
        /* Prevent huge text on mobile */
    }

    .series-meta .series-tagline {
        font-size: 0.95rem;
        max-width: 100%;
    }
}

.series-meta .series-tagline {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    max-width: 70ch;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.6);
}

/* CHANGE END */

.books-area {
    position: relative;
    margin-top: 16px;
    padding-bottom: 64px;
}

.books-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 12px 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #ffffff;
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
}

.books-header .books-kicker {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .72rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.books-header .books-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.books-counter {
    display: none;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 160ms var(--ease), background 160ms var(--ease);
}

.icon-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 1);
}

.icon-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, .5);
    outline-offset: 2px;
}

/* AB FIXED BOOK VIEWPORT & CARDS (REFINED) */
.books-viewport {
    --book-w: min(360px, 78vw);
    --stack-x1: 280px;
    --stack-x2: 440px;
    --tilt-1: 10deg;
    --tilt-2: 18deg;
    position: relative;
    height: clamp(520px, 52vw, 640px);
    overflow: visible;
    margin-inline: auto;
    width: min(980px, calc(100% - 40px));
}

@media (max-width: 768px) {
    .books-viewport {
        --book-w: 65vw;
        --stack-x1: 40px;
        /* Much tighter stack */
        --stack-x2: 80px;
        --tilt-1: 6deg;
        /* Less tilt to save space */
        --tilt-2: 12deg;
        height: 480px;
        /* Reduced height */
    }
}

.bookCard {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--book-w);
    max-width: 460px;
    transform-origin: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    border-radius: 22px;
    /* Dark background for saga cards - Optimized: No backdrop-filter */
    background: rgba(26, 5, 5, 0.95);
    /* White text */
    color: #ffffff;

    /* PERFORMANCE FIXES */
    will-change: transform, opacity;
    /* backdrop-filter removed for performance */

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transform: translate(-50%, -50%) scale(.96);
    opacity: .65;
    pointer-events: none;
    transition: transform 420ms var(--ease), opacity 420ms var(--ease);
}

/* KOREA SAGA OVERRIDE */
.bookCard.series-card-korea {
    background-color: #fff8e1 !important;
    /* Soft Yellow */
    color: #141414 !important;
}

.bookCard.series-card-korea .bookInfo h3 {
    color: #141414 !important;
}

.bookCard.series-card-korea .bookInfo p {
    color: #5d5d5d !important;
}

.bookCard.series-card-korea .bookBuy {
    background-color: #9c27b0 !important;
    /* Vibrant Purple */
    border-color: #9c27b0 !important;
    color: #ffffff !important;
    font-weight: 700;
}

.bookCard.series-card-korea .bookBuy:hover {
    background-color: #7b1fa2 !important;
    border-color: #7b1fa2 !important;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
}

.bookCard.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
    z-index: 6;
    pointer-events: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.bookCard.is-prev {
    opacity: .55;
    transform: translate(calc(-50% - var(--stack-x1)), -50%) rotate(calc(-1 * var(--tilt-1))) scale(.94);
    z-index: 4;
}

.bookCard.is-next {
    opacity: .55;
    transform: translate(calc(-50% + var(--stack-x1)), -50%) rotate(var(--tilt-1)) scale(.94);
    z-index: 4;
}

.bookCard.is-far-prev {
    opacity: .35;
    transform: translate(calc(-50% - var(--stack-x2)), -50%) rotate(calc(-1 * var(--tilt-2))) scale(.88);
    z-index: 3;
}

.bookCard.is-far-next {
    opacity: .35;
    transform: translate(calc(-50% + var(--stack-x2)), -50%) rotate(var(--tilt-2)) scale(.88);
    z-index: 3;
}

.bookCard.is-hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.84);
    z-index: 1;
}

.bookCover {
    aspect-ratio: 2/3;
    border-radius: 16px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .02), rgba(0, 0, 0, 0)),
        #f5f2f1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookCover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bookInfo {
    display: grid;
    gap: 8px;
}

.bookInfo h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

.bookInfo p {
    margin: 0;
    color: #cccccc;
    /* Lighter text for dark bg */
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: .95rem;
}

.bookBuy {
    margin-top: 6px;
    width: 100%;
    background-color: #e50914;
    /* Striking Red */
    border-color: #e50914;
    color: #fff;
    font-weight: 700;
}

.bookBuy:hover {
    background-color: #b20710;
    border-color: #b20710;
    color: #fff;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}


/* Sagas Nav Arrows */
.series-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 200ms var(--ease);
}

.series-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.08);
}

.series-prev {
    left: 10px;
}

.series-next {
    right: 10px;
}

.series-arrow span {
    font-size: 22px;
    line-height: 1;
}

/* INDICATOR */
.series-indicator {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 14px;
    display: flex;
    gap: 8px;
    z-index: 25;
}

.series-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, .6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 0;
    color: transparent;
    transition: all 200ms var(--ease);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.series-dot.is-active {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: scale(1.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* =========================
   PAGE HERO (Generic)
========================= */
.page-hero {
    padding: clamp(60px, 8vw, 100px) 0;
    background: linear-gradient(135deg,
            #3e2723 0%,
            #4e342e 20%,
            #5d4037 40%,
            #6d4c41 60%,
            #4e342e 80%,
            #3e2723 100%);
    position: relative;
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.05) 3px,
            rgba(0, 0, 0, 0.05) 6px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 1px,
            rgba(0, 0, 0, 0.03) 1px,
            rgba(0, 0, 0, 0.03) 2px);
    opacity: 0.4;
    pointer-events: none;
}

.page-hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin: 0 0 1rem 0;
    font-family: var(--font-serif);
    color: #fff;
    position: relative;
    z-index: 1;
}

.title-display {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.page-hero .kicker {
    color: var(--gold);
    position: relative;
    z-index: 1;
}

.page-hero-text {
    max-width: 60ch;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* =========================
   CATALOG / BOOKS
========================= */
/* AB FIX: Sagas Header Refinement */
#sagas .section-head {
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 24px;
    width: min(94vw, 1600px);
    /* Match showcase width */
    margin-inline: auto;
    /* Center it */
}

#sagas .section-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    /* Full width of the header container */
    height: 1px;
    background-color: rgba(255, 255, 255, 0.4);
}

/* AB FIX: Series Text Styling (Dynamic Content) */
.series-content-container {
    padding: 0 5vw;
    /* Horizontal padding to prevent edge collision */
    max-width: 1400px;
    margin-inline: auto;
    width: 100%;
    /* Ensure it uses available space */
}

.series-text {
    margin-bottom: 24px;
    color: #fff;
    /* Ensure text is aligned with the grid/layout */
    padding-left: 16px;
}

.series-kicker {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 8px;
    font-family: var(--font-sans);
}

.series-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    /* Responsive sizing */
    font-family: var(--font-serif);
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.series-tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-style: italic;
    max-width: 600px;
}

/* AB FIX: Bottom CTA Button Spacing */
.mobile-center-cta {
    margin-top: 80px;
    /* Increased to 80px for clear separation */
    text-align: center;
    width: 100%;
    display: block !important;
    /* Force visibility even on desktop if user wants it there */
}

/* CATALOG / BOOKS */
.catalog-head {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

@media(min-width: 768px) {
    .catalog-head {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

/* AB FIX: Favorites Refinement */
.fav-card-image {
    border: 1px solid var(--gold);
    /* Yellow contour */
}

/* Adjust "Ver todos" button position - pushing it down */
.section-head-row {
    align-items: flex-end;
    /* Align bottom */
}

.section-head-row .link-arrow {
    margin-bottom: -10px;
    padding-top: 20px;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--bg-soft);
    color: var(--ink);
}

.filter-btn.is-active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 24px;
}

@media (max-width: 600px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 12px;
    }

    .book-title {
        font-size: 1rem;
    }
}

.book-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.book-item-cover {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-soft);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.book-item:hover .book-item-cover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.book-item-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-item:hover .book-overlay {
    opacity: 1;
}

.book-meta {
    display: grid;
    gap: 4px;
}

.book-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.2;
    margin: 0;
    color: var(--ink);
}

.book-series {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.book-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================
   AUTHOR SPOTLIGHT DECORATIONS
========================================= */
.spotlight-portrait-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* AB FIXED: "L" Decorative Corners */
.spotlight-portrait-frame::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 40px;
    height: 40px;
    border-top: 2px solid rgba(255, 255, 255, 0.6);
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    z-index: 5;
    pointer-events: none;
}

.spotlight-portrait-frame::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    z-index: 5;
    pointer-events: none;
}

.spotlight-deco-border {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 2;
    pointer-events: none;
}

.spotlight-aspect {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    /* Clean cut */
    background: #1a1a1a;
}

/* =========================
   BIO PAGE
========================= */
.bio-hero {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
}

.bio-image {
    position: relative;
    height: 50vh;
}

.bio-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.bio-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 24px;
    background: #fff;
}

.bio-name {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.9;
    margin-bottom: 24px;
}

.bio-lead {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    color: var(--muted);
    font-weight: 300;
    line-height: 1.5;
}

@media(min-width: 900px) {
    .bio-hero {
        grid-template-columns: 1fr 1fr;
        min-height: 85vh;
    }

    .bio-image {
        height: auto;
        order: 2;
    }

    .bio-content {
        order: 1;
        padding: 60px;
    }
}

.bio-text-section {
    padding: 80px 0;
    background: var(--bg-soft);
}

.bio-prose {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ink);
}

.drop-cap {
    float: left;
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 0.8;
    margin: 10px 16px 0 0;
    color: var(--primary);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.award-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.award-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto hover-grow */
.award-card.hover-grow {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s ease;
}

.award-card.hover-grow:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.award-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.award-card:hover .award-icon {
    transform: scale(1.15) rotate(5deg);
}

@media (max-width: 768px) {
    .award-icon {
        font-size: 24px;
        /* Smaller */
    }

    .fact-icon {
        font-size: 20px;
        /* Smaller */
    }

    .award-card,
    .fact-card {
        padding: 12px;
    }
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.fact-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    aspect-ratio: 1/1;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fact-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fact-card:hover {
    border-color: var(--primary);
    background: var(--bg-soft);
    transform: translateY(-4px);
}

/* === NUEVAS ANIMACIONES AVANZADAS === */

/* Slide desde la izquierda - EXTREMADAMENTE AGRESIVO */
.slide-from-left {
    opacity: 0;
    transform: translateX(-100vw);
    /* TODA LA PANTALLA */
    animation: slideInLeft 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in suave para imagen - SOLO OPACIDAD */
.fade-in-smooth {
    opacity: 0;
    animation: fadeInSmooth 1.6s ease-out forwards;
}

@keyframes fadeInSmooth {
    to {
        opacity: 1;
    }
}

/* Scroll reveal - se activa con JavaScript */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Typewriter effect */
.typewriter-text {
    min-height: 2em;
    opacity: 1;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--ink);
    margin-left: 2px;
    animation: blink 0.7s step-end infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.fact-icon {
    font-size: 32px;
    color: var(--muted);
    margin-bottom: 8px;
}

.fact-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.fact-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
}

/* =========================
   FAQ
========================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

details.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

summary.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 24px 24px 24px;
    color: var(--muted);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

details[open] .faq-answer {
    border-top-color: var(--bg-soft);
}

/* =========================
   AUTHOR SPOTLIGHT (Stitch Adapted)
========================= */
.spotlight-section {
    position: relative;
    padding: clamp(60px, 8vw, 120px) 0;
    overflow: hidden;
    background: var(--bg-dark);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* border-white/5 */
}

/* Gold Accent Glow */
.spotlight-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: rgba(197, 160, 89, 0.05);
    /* gold/5 */
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.spotlight-inner {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.spotlight-icon {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 24px;
    display: inline-block;
}

.spotlight-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: #fff;
    margin: 0 0 16px 0;
}

.spotlight-text {
    color: var(--muted-light);
    font-weight: 300;
    margin-bottom: 40px;
    line-height: 1.6;
}

.spotlight-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media(min-width: 640px) {
    .spotlight-form {
        flex-direction: row;
    }
}

.spotlight-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    /* white/5 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 24px;
    border-radius: 6px;
    font-family: var(--font-sans);
}

.spotlight-input:focus {
    outline: none;
    border-color: rgba(197, 160, 89, 0.5);
    /* gold/50 */
    box-shadow: 0 0 0 1px rgba(197, 160, 89, 0.5);
}

.spotlight-btn {
    background: var(--primary);
    color: #fff;
    padding: 16px 32px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.spotlight-btn:hover {
    background: #b01038;
}

.spotlight-note {
    font-size: 0.75rem;
    color: var(--muted);
    /* gray-600 approx */
    margin-top: 16px;
}

/* Specific Spotlight Layout (Author Quote) */
.author-spotlight-grid {
    display: grid;
    gap: 40px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

@media(min-width: 900px) {
    .author-spotlight-grid {
        grid-template-columns: 5fr 7fr;
        gap: 80px;
    }
}

.spotlight-portrait-frame {
    position: relative;
    border-radius: 2px;
}

.spotlight-aspect {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    filter: grayscale(1);
    transition: filter 1s ease;
    border-radius: 2px;
}

.spotlight-aspect:hover {
    filter: grayscale(0);
}

.spotlight-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.spotlight-deco-border {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(197, 160, 89, 0.3);
    z-index: -1;
}

.spotlight-content-side {
    padding-left: 0;
}

.spotlight-label {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
    font-family: var(--font-sans);
}

.spotlight-quote-large {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}

.spotlight-desc {
    color: var(--muted-light);
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.spotlight-sig-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.spotlight-sig-img {
    height: 48px;
    filter: invert(0.8);
    opacity: 0.8;
}

.spotlight-link {
    color: #fff;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.spotlight-link:hover {
    color: var(--primary);
}

/* FOOTER LOGO FIX */
.footer-brand img,
#footerLogo {
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    mix-blend-mode: multiply;
    /* Ensures white bg on logo disappears if present */
    /* If logo is black text, we might need invert for dark footer */
    filter: brightness(0) invert(1);
    /* Forces it to be WHITE text */
    max-width: 140px;
}

/* =========================
   HERO CAROUSEL (Infinite)
========================= */
.hero-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 48px;
    /* Fade out on edges */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    padding: 20px 0;
    pointer-events: none;
    /* Just visual for now */
}

.hero-carousel-track {
    display: flex;
    gap: 32px;
    width: max-content;
    animation: infiniteScroll 60s linear infinite;
    /* Slower for better UX */
    will-change: transform;
    padding-right: 32px;
    /* CRITICAL: Adds gap at end of set 2 so -50% is perfect */
}

.carousel-item {
    width: 160px;
    aspect-ratio: 2/3;
    border-radius: 8px;
    background: #1a0505;
    /* Fallback */
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: cover;
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

/* =========================
   BOOKS CATALOG
========================= */
/* No extra grid styles needed, using original .catalog-grid and .book-item */

.load-more-container {
    text-align: center;
    margin-bottom: 80px;
    margin-top: 40px;
}

/* AB FIX: Ensure anchor fav-cards behave like blocks */
a.fav-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* =========================
   SLIDE-UP CARDS (Catalog)
========================= */
.book-item {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.book-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    /* CRITICAL: Clips the sliding panel */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #000;
}

/* Front Image */
.book-card-front {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Back / Overlay Panel */
.book-card-back {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, 0.92);
    /* Dark, high contrast overlay */
    backdrop-filter: blur(4px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;

    /* Animation State: Hidden below */
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* HOVER STATES */
.book-item:hover .book-card-back {
    transform: translateY(0);
    /* Slide up */
}

.book-item:hover .book-card-front {
    transform: scale(1.1);
    /* Subtle zoom on image */
    opacity: 0.6;
}

/* Content Styling */
.book-title-back {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0;
    color: var(--gold);
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.book-synopsis {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e5e5e5;
    margin: 0;
    text-align: center;

    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.book-card-back .btn {
    margin-top: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.3s;
}

/* Staggered text animations on hover */
.book-item:hover .book-title-back,
.book-item:hover .book-genres-list,
.book-item:hover .book-synopsis,
.book-item:hover .book-card-back .btn {
    opacity: 1;
    transform: translateY(0);
}

/* Genre Tags */
.book-genres-list {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease 0.15s;
}

.book-genre-pill {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Metadata Tags */
.book-info-top {
    display: flex;
    gap: 0;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    /* Critical for vertical alignment */
}

.book-year-tag {
    /* STRICT ENFORCEMENT of Size/Shape */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    height: 32px !important;
    padding: 0 12px !important;
    min-width: 60px;

    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    border-radius: 4px !important;

    /* Uniform Gold Style */
    color: var(--gold) !important;
    border: 1px solid var(--gold) !important;
    background: rgba(193, 154, 107, 0.15) !important;

    margin-right: 8px;
}

.book-series-tag {
    /* STRICT ENFORCEMENT of Size/Shape to match Year Tag */
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    height: 32px !important;
    /* Match year tag height */
    padding: 0 12px !important;
    /* Match year tag padding */
    margin: 0 !important;
    /* Reset any default margins */

    font-family: var(--font-sans);
    font-size: 0.85rem;
    /* Match year tag font size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    border-radius: 4px !important;
    white-space: nowrap;
    /* Prevent wrapping */

    color: var(--gold);
    border: 1px solid var(--gold);
    background: rgba(193, 154, 107, 0.1);
}

/* 3D Volume Effect - REMOVED per user request */
.book-card-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    /* Restored overflow hidden */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /* Restored original subtle shadow */
    background: #000;
}

/* Ensure images respect border radius */
.book-card-front,
.book-card-front img,
.book-card-back {
    border-radius: 8px;
}

/* Spine/Sheen Effect - REMOVED */
.book-card-front::after {
    display: none;
}

.book-item:hover .book-card-back .btn {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   BOOKS HEADER REDESIGN
========================= */
.font-calligraphy {
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 400;

    /* Shimmer Effect - Sharper & Cleaner */
    color: var(--gold);
    /* Fallback */
    background: linear-gradient(110deg,
            var(--gold) 45%,
            #fff 50%,
            var(--gold) 55%);
    background-size: 250% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: textShine 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;

    line-height: 1.4;
    /* Increased from 1 to fix clipping */
    padding-top: 0.2em;
    /* Extra breathing room for ascenders */
    padding-bottom: 0.1em;
    margin: 0;

    text-shadow: none;
    /* Shadow conflicts with clip in some browsers */
    /* Softer shadow for clip text */
    letter-spacing: 0.02em;
}

@keyframes textShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: -250% center;
    }
}

.kicker {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--muted);
    opacity: 0.8;
}

.header-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 24px auto;
    width: 100%;
    max-width: 400px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

.divider-icon {
    color: var(--gold);
    font-size: 1.2rem;
    line-height: 1;
}

.page-hero-text {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-style: italic;
    color: #ccc;
    max-width: 600px;
    margin: 0 auto;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .font-calligraphy {
        font-size: 3.5rem;
    }

    .mobile-header-container {
        padding-top: 40px;
    }
}

/* =========================
   BIO PAGE ANIMATIONS ONLY
========================= */

/* Hero animations */
html.js .slide-from-left {
    opacity: 0;
    transform: translateX(-100px);
    animation: slideFromLeft 1000ms cubic-bezier(0.2, 0.8, 0.2, 1) 200ms forwards;
}

@keyframes slideFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

html.js .fade-in-smooth {
    opacity: 0;
    animation: fadeInSmooth 1200ms cubic-bezier(0.2, 0.8, 0.2, 1) 400ms forwards;
}

@keyframes fadeInSmooth {
    to {
        opacity: 1;
    }
}

/* =========================
   MOBILE OPTIMIZATIONS
========================= */

@media (max-width: 900px) {

    /* General */
    .container {
        width: calc(100% - 32px);
    }

    .section {
        padding: 48px 0;
    }

    /* Hero Home */
    .hero {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-cover {
        width: 60%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    /* Bio Page */
    .bio-hero {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 48px 0 !important;
    }

    .bio-content {
        text-align: center !important;
    }

    .bio-image {
        max-width: 320px !important;
        margin: 0 auto !important;
    }

    .bio-prose {
        max-width: 100%;
        padding: 0 8px;
    }

    .bio-prose p {
        font-size: 1.05rem;
    }

    /* Awards & Facts - Smaller Icons */
    .award-icon {
        font-size: 36px !important;
    }

    .award-card {
        padding: 24px 16px !important;
    }

    .fact-icon {
        font-size: 32px !important;
    }

    .fact-card {
        padding: 16px !important;
    }

    /* Newsletter */
    .newsletter-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    /* Even more compact on small phones */
    .section {
        padding: 40px 0;
    }

    /* Book Cards - Smaller on mobile */
    .book-catalog {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .book-item {
        padding: 12px !important;
    }

    .book-card-inner {
        margin-bottom: 12px !important;
    }

    .book-info-top {
        margin-bottom: 8px !important;
        gap: 6px !important;
    }

    .book-title {
        font-size: 1rem !important;
        margin-bottom: 6px !important;
    }

    .book-year-tag,
    .book-series-tag {
        font-size: 0.75rem !important;
        padding: 0 8px !important;
        height: 26px !important;
    }

    /* Hero even smaller */
    .hero-cover {
        width: 70%;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Bio */
    .bio-image {
        max-width: 280px !important;
    }

    .drop-cap {
        font-size: 3rem !important;
    }

    /* Favorites */
    .favorites-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Sagas smaller */
    #sagas {
        min-height: 800px !important;
    }

    .sagas-showcase {
        min-height: 800px !important;
    }
}