/* =========================================
   RESET EDICIONES - FRONTEND THEME (CYBER-NOIR)
   VERSION: 6.0 (Consolidada + Modal Fix)
   ========================================= */

/* ==========================================
   1. VARIABLES
   ========================================== */
:root {
    --bg-dark: #0a0a0a;
    --bg-panel: #161616;
    --bg-input: #222222;
    --text-main: #f4f4f4;
    --text-muted: #cccccc;
    --accent: #00f2ff;
    --secondary: #ff0055;
    --border-light: #333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ==========================================
   2. FUENTES LOCALES
   ========================================== */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 900; font-display: swap; src: url('../fonts/montserrat-v31-latin-900.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/merriweather-v33-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: italic; font-weight: 300; font-display: swap; src: url('../fonts/merriweather-v33-latin-300italic.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/merriweather-v33-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Merriweather'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/merriweather-v33-latin-700.woff2') format('woff2'); }

/* ==========================================
   3. BASE Y TIPOGRAFÍA GLOBAL
   ========================================== */
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4,
.dynamic-section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dynamic-section-title {
    text-align: center;
    font-size: 2.5rem;
    margin: 60px 0 50px 0;
    text-transform: uppercase;
}

/* ==========================================
   4. NAVBAR
   ========================================== */
.navbar {
    padding: 20px 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: block; width: 180px; height: auto; }
.logo img { width: 100%; aspect-ratio: 285/105; }
.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-left: 20px;
    transition: 0.3s;
}
.nav-link:hover { color: var(--accent); }

/* ==========================================
   5. HERO HOME
   ========================================== */
.hero-video-container {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 0;
    background: #000;
}
.hero-video-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 100%; height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
    filter: brightness(0.7);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 20px; }
.hero-title-main {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    text-transform: uppercase;
    color: #fff;
}
.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.6;
    color: #f4f4f4;
    margin: 0 auto 30px auto;
    max-width: 700px;
    font-style: italic;
    font-weight: 400;
}
.btn-hero {
    display: inline-block;
    padding: 18px 36px;
    text-transform: uppercase;
    font-weight: 900;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    transition: 0.3s;
}

/* ==========================================
   6. BOTONES E INSIGNIAS GLOBALES
   ========================================== */
.btn,
.overlay-btn,
.btn-action,
.btn-sample {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem;
    padding: 16px 24px;
    border-radius: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-primary { background: var(--accent); color: #000; border: none; }
.btn-outline { background: transparent; border: 1px solid #555; color: #fff; width: 100%; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.badge,
.f-badge,
.system-tag,
.badge-oculto,
.sello-badge {
    font-size: 0.85rem;
    padding: 8px 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 900;
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge-oculto {
    position: absolute;
    top: 10px; right: 10px;
    background: #e74c3c;
    color: #fff;
    z-index: 10;
}

/* ==========================================
   7. PRICING SECTION HOME
   ========================================== */
.pricing-section {
    background: #0a0a0a;
    padding: 80px 0;
    border-bottom: 1px solid #333;
}
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.pricing-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}
.pricing-card.featured {
    border: 2px solid #e74c3c;
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.price-tag {
    font-size: 3.5rem;
    font-weight: 900;
    color: white;
    margin: 20px 0;
    font-family: var(--font-heading);
    line-height: 1;
}
.price-old {
    display: block;
    font-size: 1.1rem;
    color: #888;
    text-decoration: line-through;
    margin-bottom: 5px;
}
.features-list { list-style: none; padding: 0; margin: 30px 0; text-align: left; color: #ccc; flex-grow: 1; }
.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
    gap: 10px;
    line-height: 1.5;
    font-size: 1.1rem;
}
.features-list li strong { color: #ffffff; }
.pricing-guarantee {
    color: #fff;
    font-size: 1.05rem;
    background: rgba(255,255,255,0.05);
    padding: 15px 25px;
    border-radius: 50px;
    display: inline-block;
    border: 1px solid #333;
}

/* ==========================================
   8. CATÁLOGO GRID & CARDS
   ========================================== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 30px;
}
.book-card-ui {
    display: block;
    position: relative;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}
.book-card-ui:hover { transform: translateY(-8px); }
.card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    background: #111;
}
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 10, 15, 0.90);
    /* SIN backdrop-filter aquí para no romper hijos fixed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}
.book-card-ui:hover .card-overlay { opacity: 1; }
.book-card-ui:hover .card-img { transform: scale(1.05); }
.overlay-stars { color: #f1c40f; font-size: 1.2rem; margin-bottom: 15px; }
.overlay-quote {
    font-family: var(--font-body);
    font-style: italic;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}
.card-info,
.card-info-simple { padding-top: 15px; }
.card-title,
.card-title-simple {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.2;
}
.card-tagline,
.card-tagline-simple {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: #e6e6e6;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   9. ATMAN TERMINAL
   ========================================== */
.atman-terminal {
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-left: 4px solid #e74c3c;
    margin: 0 auto 60px auto;
    box-shadow: var(--shadow-card);
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
}
.atman-grid { display: grid; grid-template-columns: 1.5fr 3fr; min-height: 280px; }
.atman-code-visual {
    background: #000;
    color: #0f0;
    padding: 30px;
    font-size: 0.9rem;
    line-height: 1.5;
    border-right: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0.8;
}
.atman-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: radial-gradient(circle at top right, #1a1a1a 0%, #0d0d0d 100%);
}
.atman-title { font-size: 2.2rem; margin-bottom: 10px; text-transform: uppercase; }
.atman-desc { color: #bbb; font-size: 1.15rem; line-height: 1.6; margin-bottom: 30px; font-family: var(--font-body); }
.cmd-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #555;
    color: #fff;
    padding: 14px 25px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    transition: 0.3s;
    background: rgba(255,255,255,0.05);
}
.cmd-btn:hover { background: #fff; color: #000; border-color: #fff; }
.blink { animation: blinker 1s step-end infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* ==========================================
   10. LIBRO DETALLE (FICHA DE COMPRA)
   ========================================== */
.book-hero { padding: 60px 0; border-bottom: 1px solid #222; }

.book-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
    z-index: 10;
    /* IMPORTANTE: sin transform, filter ni backdrop-filter
       para no crear un containing block que rompa hijos fixed */
}

/* PORTADA 3D */
.book-cover-container { perspective: 1000px; }
.book-cover-img {
    width: 100%;
    max-width: 540px;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
    transform: rotateY(-10deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.book-cover-img:hover {
    transform: rotateY(0deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.2);
}

.book-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -1px;
}
.book-tagline {
    font-size: 1.35rem;
    color: var(--accent);
    margin-bottom: 40px;
    font-style: italic;
    font-weight: 400;
}
.book-content { padding: 60px 0; background-color: transparent; }
.prose p {
    margin-bottom: 20px;
    font-size: 1.15rem !important;
    color: #f4f4f4 !important;
    font-weight: 400;
    line-height: 1.7 !important;
}

/* Ficha Técnica */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}
.tech-item { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.tech-item strong {
    color: #bbb;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: var(--font-heading);
}
.tech-item span { color: #fff; font-size: 1rem; font-family: var(--font-body); font-weight: 300; }

.series-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 196, 15, 0.1);
    border: 1px solid #f1c40f;
    color: #f1c40f;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.series-indicator:hover {
    background: rgba(241, 196, 15, 0.25);
    transform: translateY(-2px);
    color: #fff;
    border-color: #ffeaa7;
}

/* Opciones de Compra */
.editions-wrapper { display: flex; flex-direction: column; gap: 20px; margin-top: 15px; }
.edition-card {
    background: #16161a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px;
    position: relative;
}
.edition-card.premium {
    border: 2px solid #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.15);
    background: linear-gradient(180deg, #1f1414 0%, #16161a 100%);
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.premium-badge { background: #e74c3c; color: #000; }
.intl-badge { background: #e67e22; color: #fff; }
.digital-badge { background: #3498db; color: #fff; }

.stock-alert {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    border: 1px solid rgba(231, 76, 60, 0.3);
    margin-bottom: 15px;
    width: 100%;
    justify-content: center;
}
.stock-alert.critical { animation: pulse-red 2s infinite; }
@keyframes pulse-red {
    0%   { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70%  { box-shadow: 0 0 0 8px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.perks-list { margin-bottom: 20px; font-size: 1.05rem; color: #ccc; }
.perks-list ul { list-style: none; padding: 0; margin: 0; }
.perks-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    font-family: var(--font-body);
}
.perks-list i { color: #2ecc71; margin-top: 5px; font-size: 0.9rem; }

.price-block { margin-bottom: 15px; }
.price-current {
    color: #fff;
    font-size: 2.8rem;
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1;
}
.price-currency { font-size: 1.1rem; color: #888; font-weight: 700; }

.btn-action { width: 100%; text-decoration: none; border: none; }
.premium-btn { background-color: #e74c3c; color: #000; }
.premium-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 20px rgba(0,0,0,0.5); filter: brightness(1.1); }
.buscalibre { background-color: #e67e22; color: #fff; }
.buscalibre:hover { box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4); }
.mercadopago { background-color: #009ee3; color: #fff; }
.mercadopago:hover { box-shadow: 0 5px 15px rgba(0, 158, 227, 0.4); }
.gumroad { background-color: #2ecc71; color: #000; }
.gumroad:hover { box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4); }
.btn-action:disabled { background: #444 !important; color: #888 !important; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ==========================================
   11. AUTOR Y CROSS-SELLING
   ========================================== */
.author-section {
    padding: 80px 0;
    background-color: #121212;
    border-top: 1px solid var(--border-light);
}
.author-grid { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.author-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--accent);
    filter: grayscale(100%);
    transition: 0.5s;
}
.author-photo:hover { filter: grayscale(0%); }
.author-title { font-size: 0.95rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.author-name { font-size: 2.2rem; margin-bottom: 20px; color: #fff; }
.author-bio { color: #f4f4f4; font-size: 1.15rem; line-height: 1.7; font-weight: 400; margin-bottom: 20px; }

.cross-sell-section { padding: 80px 0; background: transparent; border-top: 1px solid #333; }

/* ==========================================
   12. TESTIMONIOS Y REVIEWS CTA
   ========================================== */
.testimonials-section { background-color: #f8f9fa; padding: 60px 0; border-top: 1px solid #eee; }
.swiper { width: 100%; padding: 20px 10px 60px 10px; }
.swiper-slide { height: auto; display: flex; }
.testimonial-card {
    background: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #e1e4e8;
    border-left: 4px solid #e74c3c;
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
.testimonial-text {
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}
.testimonial-author {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #000;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.quote-icon { color: #ddd; font-size: 1.5rem; margin-bottom: 15px; }

.leave-review-cta { background-color: #f4f6f9; padding: 60px 0; border-top: 1px solid #ddd; }
.review-invite-card {
    background: #ffffff;
    color: #222;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}
.invite-title {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #111;
    font-size: 1.5rem;
}
.invite-text { font-family: var(--font-body); font-size: 1.1rem; line-height: 1.6; color: #555; margin-bottom: 0; }
.btn-review-launch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #222;
    color: #fff;
    padding: 15px 25px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.btn-review-launch:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 210, 255, 0.4);
}
.review-stars-preview { margin-top: 15px; color: #f1c40f; display: flex; justify-content: center; gap: 5px; font-size: 1.1rem; }

/* ==========================================
   13. FORMULARIOS
   ========================================== */
.contact-form-container,
.success-box,
.error-box,
.pending-box {
    background-color: var(--bg-panel);
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.contact-form-container { text-align: left; }

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 18px;
    font-size: 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    color: #fff;
    margin-bottom: 20px;
    font-family: var(--font-body);
}
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.1);
    background-color: #2a2a2a;
}
label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-muted);
}
.contact-form-container button,
.contact-form-container input[type="submit"] {
    width: 100%;
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1.1rem;
    padding: 18px 24px;
    border-radius: 4px;
    background: var(--accent);
    color: #000;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
    margin-top: 10px;
}
.contact-form-container button:hover,
.contact-form-container input[type="submit"]:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

/* ==========================================
   14. TRUST BADGES Y SELLOS
   ========================================== */
.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.trust-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.trust-item i { font-size: 1.5rem; color: var(--accent); margin-bottom: 5px; }

.social-proof-bar {
    background: #f8f9fa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 50px 0;
    text-align: center;
    margin-top: 60px;
}
.social-proof-quote { font-size: 1.5rem; font-style: italic; color: #333; max-width: 800px; margin: 0 auto 15px; line-height: 1.6; }

.sello-link-header { display: inline-block; transition: transform 0.3s ease; }
.sello-link-header:hover { transform: translateX(8px); }
.sello-icon-svg { height: 1.8rem; width: auto; vertical-align: middle; fill: currentColor !important; margin-right: 8px; }

/* ==========================================
   15. FOOTER
   ========================================== */
.main-footer {
    background-color: #050505;
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid var(--border-light);
    font-size: 1rem;
}
.footer-flex { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.copyright { color: var(--text-muted); opacity: 0.7; }
.footer-links a {
    color: var(--text-muted);
    margin-left: 25px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.footer-links a:hover { color: var(--accent); text-shadow: 0 0 8px rgba(0, 242, 255, 0.4); }

/* ==========================================
   16. MODALES Y LECTOR
   ──────────────────────────────────────────
   REGLA CRÍTICA: .reader-overlay NO puede
   tener backdrop-filter, transform ni filter
   porque rompería el position:fixed de
   .btn-close-reader. El botón de cierre vive
   FUERA del overlay en el HTML.
   ========================================== */
.reader-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgb(10, 10, 10); /* sólido, sin backdrop-filter */
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.reader-content {
    background-color: #1a1a1a;
    width: 100%;
    max-width: 700px;
    padding: 50px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.1);
    position: relative;
    margin: 20px 0 50px;
}

.reader-body {
    font-family: var(--font-body);
    font-size: 1.25rem;
    line-height: 1.8;
    color: #f4f4f4;
    text-align: justify;
}

/* ──────────────────────────────────────────
   BOTÓN DE CIERRE
   Vive fuera del overlay → position:fixed
   funciona correctamente respecto al viewport
   ────────────────────────────────────────── */
.btn-close-reader {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #fff;
    border: none;
    border-radius: 50%;
    z-index: 100001; /* un nivel por encima del overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    /* Sin will-change ni transform en estado base */
}
.btn-close-reader::after {
    content: "\d7";
    color: #000;
    font-size: 2.5rem;
    font-family: Arial, sans-serif;
    font-weight: 900;
    line-height: 0;
}
.btn-close-reader i,
.btn-close-reader span { display: none; }
.btn-close-reader:hover {
    background: var(--accent);
    transform: scale(1.1);
}

/* ==========================================
   17. ADMIN BAR Y TOGGLE
   ========================================== */
.admin-bar {
    background: #1a1a1a;
    border-bottom: 2px solid #e74c3c;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.admin-bar-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.admin-bar-label {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hidden-pill { background: rgba(231,76,60,0.15); border: 1px solid #e74c3c; padding: 4px 10px; border-radius: 4px; }
.toggle-wrapper { display: flex; align-items: center; gap: 10px; }
.toggle-label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; }
.toggle-label.inactive { color: #555; }
.toggle-label.active { color: #fff; }
.toggle { position: relative; display: inline-block; width: 50px; height: 28px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #333;
    border-radius: 26px;
    transition: 0.3s;
    border: 1px solid #555;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px; width: 20px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
input:checked + .toggle-slider { background: #e74c3c; border-color: #e74c3c; }
input:checked + .toggle-slider:before { transform: translateX(24px); }
.item-admin-wrapper.oculto .book-card-ui,
.item-admin-wrapper.oculto .card-visual { outline: 2px dashed #e74c3c; filter: grayscale(50%); opacity: 0.7; }
.admin-preview-bar {
    background: #e74c3c;
    color: white;
    text-align: center;
    padding: 10px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: sticky;
    top: 0;
    z-index: 9999;
}

/* ==========================================
   18. RESPONSIVE / MÓVILES
   ========================================== */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .hero-title-main { font-size: 3rem; }
    .hero-subtitle { font-size: 1.3rem !important; }

    .grid-2,
    .author-grid,
    .btn-group { grid-template-columns: 1fr; gap: 30px; }

    .book-hero,
    .author-grid { text-align: center; }

    /* Columna izquierda: sin sticky en móvil */
    .book-left-col,
    .book-cover-container {
        position: relative !important;
        top: auto !important;
        z-index: 1;
    }

    /* Portada achicada y centrada */
    .book-cover-img {
        max-width: 220px !important;
        height: auto !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
    }

    .btn-hero { width: 100%; padding: 15px; }
    .atman-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .social-proof-quote { font-size: 1.2rem; }
    .footer-flex { flex-direction: column; gap: 20px; text-align: center; }
    .footer-links a { margin: 0 10px; }
    .review-invite-card { flex-direction: column; text-align: center; padding: 30px 20px; }
    .price-block .price-current { font-size: 2.6rem !important; }

    /* Modal a pantalla completa en móvil */
    .reader-overlay { padding: 0; }
    .reader-content {
        padding: 80px 20px 40px 20px !important;
        margin: 0 !important;
        border-radius: 0 !important;
        min-height: 100vh;
        width: 100vw;
        max-width: 100vw;
        border: none !important;
    }

    /* Botón de cierre en móvil */
    .btn-close-reader {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    .btn-close-reader::after {
        font-size: 2.4rem;
    }
}
/* Corrección para el fondo de las opciones del menú desplegable */
select.input-dedicatoria option {
    background-color: #16161a; /* Un gris muy oscuro, casi negro */
    color: #ffffff;
    padding: 10px;
}