/* ==========================================================================
   LOS HIJOS DEL RAYO - SITIO WEB OFICIAL
   Estilos Principales - Diseño Cinemático Histórico / KDP
   ========================================================================== */

:root {
    --bg-dark: #0a0a10;
    --bg-card: rgba(18, 18, 28, 0.85);
    --bg-card-hover: rgba(28, 28, 44, 0.95);
    --gold: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #997a15;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --crimson: #8b0000;
    --crimson-accent: #c41e3a;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b5;
    --text-muted: #707085;
    --border-color: rgba(212, 175, 55, 0.2);
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    /* Variables de lectura (Reader Lightbox) */
    --reader-bg: #fdfbf7;
    --reader-text: #22222b;
    --reader-border: #e6dfd3;
    --reader-accent: #8b0000;
    
    --font-serif: 'Cinzel', 'Playfair Display', 'Georgia', serif;
    --font-reading: 'Merriweather', 'Garamond', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.15);
    --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.6);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(139, 0, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(10, 10, 16, 0.98) 0%, #06060a 100%);
    background-attachment: fixed;
}

/* Tipografía */
h1, h2, h3, h4, .brand-title {
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    color: #ffffff;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.15;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-align: center;
    margin-bottom: 0.8rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 0.8rem auto 0;
}

h3 {
    font-size: 1.3rem;
    color: var(--gold-light);
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #ffffff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Barra de Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 16, 0.92);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.7rem 0;
    background: rgba(6, 6, 10, 0.98);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-symbol {
    font-size: 1.4rem;
    color: var(--gold);
    filter: drop-shadow(0 0 8px var(--gold));
}

.brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
}

.brand-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    font-family: var(--font-sans);
    display: block;
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.4rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--gold), #b89228);
    color: #000 !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    border: 1px solid var(--gold-light);
    box-shadow: 0 4px 15px var(--gold-glow);
}

.nav-cta-btn::after {
    display: none;
}

.nav-cta-btn:hover {
    background: #ffffff;
    color: #000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #b89228);
    color: #0a0a10;
    box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-primary:hover {
    background: #ffffff;
    color: #0a0a10;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #ffffff;
    transform: translateY(-3px);
    border-color: #ffffff;
}

.btn-crimson {
    background: linear-gradient(135deg, var(--crimson-accent), var(--crimson));
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.btn-crimson:hover {
    background: #e62e4a;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 7.5rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.2rem;
}

.hero-title .highlight {
    background: linear-gradient(135deg, #ffffff 30%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--gold-light);
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
}

.hero-description {
    font-size: 1.05rem;
    color: #d0d0df;
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-notice-banner {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(212, 175, 55, 0.08);
    border: 1px dashed var(--border-color);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--gold-light);
}

.hero-notice-banner i {
    font-size: 1.1rem;
    color: var(--gold);
}

/* Portada 3D del Libro */
.hero-book-wrap {
    display: flex;
    justify-content: center;
    perspective: 1200px;
}

.book-card-3d {
    position: relative;
    max-width: 380px;
    width: 100%;
    transform: rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.85));
}

.book-card-3d:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.03);
    filter: drop-shadow(0 30px 60px rgba(212, 175, 55, 0.25));
}

.book-cover-img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    cursor: pointer;
}

.book-badge-edition {
    position: absolute;
    bottom: -15px;
    right: 20px;
    background: var(--bg-dark);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* Secciones Generales */
section {
    padding: 5.5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Cita Destacada */
.quote-strip {
    background: linear-gradient(180deg, rgba(139, 0, 0, 0.12), rgba(10, 10, 16, 0.95));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3.5rem 0;
    text-align: center;
}

.quote-strip blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #ffffff;
    max-width: 850px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.6;
}

.quote-author {
    display: block;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    color: var(--gold);
    margin-top: 1rem;
    font-style: normal;
    letter-spacing: 0.1em;
}

/* Sinopsis Section */
.synopsis-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.synopsis-text p {
    font-size: 1.05rem;
    color: #dcdce6;
    line-height: 1.85;
    margin-bottom: 1.4rem;
}

.synopsis-details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-card);
}

.spec-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.92rem;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: var(--text-muted);
}

.spec-value {
    color: #ffffff;
    font-weight: 600;
}

/* Claves de la Novela (Interactive Grid) */
.keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.key-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.key-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px var(--gold-glow);
}

.key-img-wrap {
    height: 160px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.key-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.key-card:hover .key-img-wrap img {
    transform: scale(1.08);
}

.key-era-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(10, 10, 16, 0.85);
    color: var(--gold);
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.key-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.key-title {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.key-teaser {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.key-read-more {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Personajes */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--shadow-card);
}

.character-avatar-wrap {
    width: 110px;
    height: 110px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.character-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-name {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.character-role {
    font-size: 0.82rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
    display: block;
}

.character-bio {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Banner de Muestra de Lectura */
.sample-banner {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 0, 0, 0.15)), #101018;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.sample-banner h2 {
    margin-bottom: 1rem;
}

.sample-banner p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 2rem;
    color: #cfcfe0;
}

/* Autor */
.author-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3.5rem;
    align-items: center;
}

.author-img-wrap {
    text-align: center;
}

.author-photo {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid var(--gold);
    box-shadow: 0 0 40px var(--gold-glow);
}

.author-bio h3 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

.author-role {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-bottom: 1.2rem;
    display: block;
}

.author-bio p {
    font-size: 1.02rem;
    color: #d0d0df;
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

/* Otras Novelas */
.novels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.novel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.novel-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-card);
}

.novel-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.novel-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.novel-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    flex: 1;
}

.novel-link {
    font-size: 0.82rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Footer */
footer {
    background: #06060a;
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    list-style: none;
}

.footer-nav a {
    color: var(--text-secondary);
}

.footer-nav a:hover {
    color: var(--gold);
}

/* ==========================================================================
   MODALES Y LIGHTBOXES
   ========================================================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #14141e;
    border: 1px solid var(--gold);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    animation: modalIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes modalIn {
    from { transform: scale(0.92) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.3);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--gold);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close-btn:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.8rem;
    overflow-y: auto;
}

.modal-img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--border-subtle);
}

.modal-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #dcdce6;
}

.modal-historical-note {
    background: rgba(212, 175, 55, 0.08);
    border-left: 3px solid var(--gold);
    padding: 0.9rem 1.2rem;
    margin-top: 1.4rem;
    font-size: 0.88rem;
    color: var(--gold-light);
    border-radius: 0 6px 6px 0;
}

/* ==========================================================================
   MODAL LIGHTBOX DE LECTURA (FONDO CLARO, LETRAS OSCURAS)
   Estructura con Pestañas y Audiolibro Oficial Narrado
   ========================================================================== */
.reader-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 18, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reader-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.reader-lightbox-box {
    background: #fdfbf7;
    border-radius: 12px;
    max-width: 980px;
    width: 100%;
    height: 94vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px #e2dacd;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.96) translateY(12px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.reader-lightbox-header {
    background: #fbf9f4;
    border-bottom: 1px solid #e5ded3;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.reader-tabs-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-reader-tab {
    background: #ffffff;
    border: 1px solid #d5cdbf;
    color: #4a5568;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-reader-tab:hover {
    color: #1a202c;
    border-color: #a89f91;
    background: #f7f3ec;
}

.btn-reader-tab.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
}

.reader-actions-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reader-font-btn {
    background: #ffffff;
    border: 1px solid #d5cdbf;
    color: #1a202c;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 800;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.reader-font-btn:hover {
    background: #ede6d8;
    border-color: #a89f91;
}

.btn-close-reader {
    background: #ef4444;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 9px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.btn-close-reader:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Barra de Audio */
.reader-audio-bar {
    background: #f0ebe1;
    border-bottom: 1px solid #e0d7c8;
    padding: 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.reader-audio-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #1e293b;
}

.reader-audio-badge i {
    color: #8b0000;
    font-size: 1.15rem;
}

.reader-audio-bar audio {
    flex: 1;
    max-width: 440px;
    height: 36px;
    outline: none;
}

.reader-audio-hint {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
}

/* Cuerpo de Lectura */
.reader-lightbox-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 45px 70px;
    background: #fdfbf7;
    color: #262633;
    font-family: var(--font-reading);
    font-size: 1.12rem;
    line-height: 1.9;
    letter-spacing: 0.01em;
}

.reader-title-header {
    text-align: center;
    margin-bottom: 2.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 2px solid #e5ded3;
}

.reader-novel-title {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: #2c2217;
    margin-bottom: 0.35rem;
    letter-spacing: 0.06em;
}

.reader-author {
    font-size: 0.95rem;
    color: #7d6b58;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.reader-section-title {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    color: #241a10;
    margin: 2.5rem 0 1.5rem;
    text-align: center;
    line-height: 1.35;
}

.reader-section-title::after {
    content: '';
    display: block;
    width: 44px;
    height: 2px;
    background: #8b0000;
    margin: 0.7rem auto 0;
}

.reader-date {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #b45309;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
}

.reader-lightbox-body p {
    color: #292938;
    margin-bottom: 1.5rem;
    text-align: justify;
    text-indent: 2rem;
}

.reader-lightbox-body p:first-of-type,
.reader-section-title + p,
.reader-date + p {
    text-indent: 0;
}

/* Notas al pie */
.footnote-ref {
    color: #8b0000;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.8em;
    vertical-align: super;
    text-decoration: none;
    padding: 0 2px;
}

.reader-footnote-box {
    background: #f4ece1;
    border-left: 3px solid #8b0000;
    padding: 0.9rem 1.3rem;
    margin: 1.5rem 0;
    font-size: 0.9rem;
    color: #4a4035;
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
}

/* Banners al final de cada muestra */
.reader-end-banner {
    margin-top: 50px;
    padding: 35px 30px;
    background: #f7f2ea;
    border: 1px solid #e2dacd;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-sans);
}

.reader-end-banner h4 {
    font-size: 1.4rem;
    color: #22222b;
    margin-bottom: 10px;
    font-family: var(--font-serif);
}

.reader-end-banner p {
    color: #555566;
    max-width: 640px;
    margin: 0 auto 20px auto;
    font-size: 0.98rem;
    text-align: center;
    text-indent: 0;
}

/* Pestañas de Láminas para el modal de claves */
.sheet-tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.btn-sheet-tab {
    background: #1e1e2d;
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-sheet-tab:hover {
    color: #ffffff;
    border-color: var(--gold);
    background: #28283d;
}

.btn-sheet-tab.active {
    background: var(--gold);
    color: #0b0b12;
    font-weight: 700;
    border-color: var(--gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid,
    .synopsis-grid,
    .author-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .hero {
        text-align: center;
        padding-top: 6.5rem;
    }
    
    .hero-actions,
    .hero-tagline {
        justify-content: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .book-card-3d {
        transform: none;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0d0d14;
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.2rem;
    }
    
    nav ul.mobile-active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .reader-lightbox-header {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .reader-tabs-group {
        justify-content: center;
    }
    
    .btn-reader-tab {
        font-size: 0.8rem;
        padding: 6px 10px;
        flex: 1;
        text-align: center;
    }
    
    .reader-actions-group {
        justify-content: space-between;
    }
    
    .reader-audio-bar {
        padding: 10px 14px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .reader-audio-bar audio {
        max-width: 100%;
    }
    
    .reader-lightbox-body {
        padding: 24px 16px;
        font-size: 1.02rem;
    }
}
