:root {
    --bg-primary: #080810;
    --bg-secondary: #0d0d1c;
    --bg-card: #111125;
    --bg-card-hover: #151530;

    --gold: #c4a34e;
    --gold-light: #d4b55f;
    --gold-dark: #8b6914;
    --gold-glow: rgba(196, 163, 78, 0.2);

    --text-white: #f5f0e8;
    --text-light: #e0dcd4;
    --text-muted: #b0aca4;
    --text-dim: #7a7670;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.14);
    --border-gold: rgba(196, 163, 78, 0.3);

    --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Cormorant Garamond', Georgia, serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 14px 40px rgba(0, 0, 0, 0.45);
    --shadow-gold: 0 0 40px rgba(196, 163, 78, 0.08);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* ═══════════════ RESET BASE ═══════════════ */

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

html {
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

::selection {
    background: rgba(196, 163, 78, 0.35);
    color: var(--text-white);
}

/* ═══════════════ HELPERS ═══════════════ */

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

.mt-24 {
    margin-top: 1.5rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ═══════════════ NAVEGACIÓN ═══════════════ */

.site-header {
    position: relative;
    z-index: 1000;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(8, 8, 16, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 2rem;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
    background: rgba(8, 8, 16, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--gold-light);
}

.brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #d4b55f, #8b6914);
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(196, 163, 78, 0.35);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-shrink: 0;
}

.btn-explorar {
    background: var(--gold);
    color: #0a0a0a;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(196, 163, 78, 0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-explorar:hover {
    background: var(--gold-light);
    box-shadow: 0 6px 24px rgba(196, 163, 78, 0.4);
    transform: translateY(-1px);
}

/* Botón hamburguesa */

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    padding: 0;
}

.nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

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

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay */

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Menú lateral */

.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    max-width: 100vw;
    height: 100%;
    background: rgba(8, 8, 16, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--border-subtle);
    padding: 2rem 1.8rem;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.nav-menu.open {
    transform: translateX(0);
}

.menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-close:hover {
    color: var(--text-white);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
    padding: 0.3rem 0;
}

.nav-links a:hover {
    color: var(--text-white);
    padding-left: 0.3rem;
}

.menu-login {
    margin-top: auto;
}

.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-google-login:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.06);
}

/* Modo claro de cabecera */

.nav.nav-light {
    background: rgba(255, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nav.nav-light .nav-brand {
    color: #1a1a1a;
}

.nav.nav-light .nav-brand:hover {
    color: var(--gold-dark);
}

.nav.nav-light .btn-explorar {
    background: var(--gold);
    color: #0a0a0a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav.nav-light .nav-toggle span {
    background-color: #1a1a1a;
}

.nav.nav-light .nav-toggle {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.03);
}

/* ═══════════════ HERO ═══════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 6rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196, 163, 78, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(180, 150, 80, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(160, 130, 60, 0.03) 0%, transparent 50%),
        var(--bg-primary);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 8s infinite ease-in;
}

.particle:nth-child(1) {
    left: 15%;
    bottom: 10%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.particle:nth-child(2) {
    left: 35%;
    bottom: 5%;
    animation-delay: 2s;
    animation-duration: 9s;
}

.particle:nth-child(3) {
    left: 55%;
    bottom: 15%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.particle:nth-child(4) {
    left: 72%;
    bottom: 8%;
    animation-delay: 1s;
    animation-duration: 10s;
}

.particle:nth-child(5) {
    left: 85%;
    bottom: 12%;
    animation-delay: 3s;
    animation-duration: 7.5s;
}

.particle:nth-child(6) {
    left: 25%;
    bottom: 18%;
    animation-delay: 5s;
    animation-duration: 8.5s;
}

.particle:nth-child(7) {
    left: 60%;
    bottom: 3%;
    animation-delay: 6s;
    animation-duration: 9.5s;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.1;
    }

    100% {
        transform: translateY(-100vh) scale(0.3);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    background: rgba(196, 163, 78, 0.06);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-title .highlight {
    background: linear-gradient(180deg, #f0d878 0%, #c4a34e 50%, #a08030 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-accent);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-desc {
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ═══════════════ BOTONES ═══════════════ */

.btn-primary {
    background: var(--gold);
    color: #0a0a0a;
    border: none;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 6px 24px rgba(196, 163, 78, 0.3);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--gold-light);
    box-shadow: 0 8px 32px rgba(196, 163, 78, 0.45);
    transform: translateY(-2px);
}

.btn-primary .arrow {
    transition: var(--transition);
    font-size: 1.1rem;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition);
}

.btn-outline-gold:hover {
    background: rgba(196, 163, 78, 0.1);
    border-color: var(--gold-light);
    color: var(--gold-light);
}

/* ═══════════════ CARRUSEL ═══════════════ */

.carousel-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.carousel-inner {
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    margin-top: 2rem;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.carousel-img {
    width: 200px;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-caption {
    text-align: center;
}

.carousel-city {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-white);
}

.carousel-country {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.carousel-book {
    font-style: italic;
    color: var(--gold-light);
    font-weight: 600;
    font-family: var(--font-accent);
    font-size: 1.1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-size: 2rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
}

.carousel-btn:hover {
    background: rgba(196, 163, 78, 0.3);
    border-color: var(--gold);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.dot {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 12px;
}

.author-signature {
    text-align: center;
    color: var(--text-white);
    margin-top: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ═══════════════ SECCIONES GENERALES ═══════════════ */

.section-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 0.8rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.section-subtitle {
    color: var(--text-dim);
    margin-bottom: 3.5rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════ LIBROS ═══════════════ */

.books-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.books-section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.book-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem 2rem;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.book-card:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold), var(--shadow-card-hover);
}

.book-cover-link {
    display: inline-block;
    text-decoration: none;
}

.book-cover {
    width: 130px;
    height: 190px;
    margin: 0 auto 1.5rem;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.book-card:hover .book-cover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(196, 163, 78, 0.1);
    transform: translateY(-2px);
}

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

/* Mantengo h3 y h4 por compatibilidad con futuras páginas */
.book-card h3,
.book-card h4 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.6rem;
}

.book-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.book-price {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
}

.book-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.btn-sm-gold {
    background: var(--gold);
    color: #0a0a0a;
    border: none;
    padding: 0.6rem 1.6rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(196, 163, 78, 0.2);
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 6px 20px rgba(196, 163, 78, 0.35);
    transform: translateY(-1px);
}

.btn-sm-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.5rem 1.4rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-sm-ghost:hover {
    border-color: rgba(255, 255, 255, 0.35);
    color: var(--text-light);
}

/* ═══════════════ RESULTADOS ═══════════════ */

.results-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.results-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.results-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2rem;
    text-align: left;
    margin-top: 2.5rem;
}

.results-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    color: var(--text-light);
    padding: 0.7rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.results-list li:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
}

.check-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(196, 163, 78, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--gold-light);
}

/* ═══════════════ AUTOR ═══════════════ */

.author-section {
    padding: 6rem 2rem;
    background: var(--bg-primary);
}

.author-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    align-items: start;
}

.author-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border: 1px solid var(--border-subtle);
    text-align: center;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 100px;
}

.author-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--border-gold);
    box-shadow: 0 0 30px rgba(196, 163, 78, 0.2);
    background: #1a1a30;
}

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

/* Mantengo compatibilidad con la clase anterior */
.years-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-light);
    border: 1px solid var(--border-gold);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    background: rgba(196, 163, 78, 0.06);
}

.author-card h2,
.author-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Visión editorial */

.author-section-editorial {
    position: relative;
}

.author-inner-editorial {
    align-items: stretch;
}

.editorial-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    padding: clamp(2rem, 4vw, 3.2rem);
    background:
        linear-gradient(135deg, rgba(196, 163, 78, 0.10), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
        var(--bg-card);
    min-height: 100%;
}

.editorial-panel::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -80px;
    bottom: -80px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(196, 163, 78, 0.14), transparent 65%);
    pointer-events: none;
}

.editorial-panel .section-label {
    text-align: left;
}

.editorial-panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.18;
    color: var(--text-white);
    margin-bottom: 1.2rem;
}

.editorial-panel > p {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 680px;
}

.editorial-principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.editorial-principles div {
    padding: 1.15rem;
    border: 1px solid rgba(196, 163, 78, 0.18);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.editorial-principles span {
    display: block;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.65rem;
}

.editorial-principles strong {
    display: block;
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 0.45rem;
}

.editorial-principles p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .editorial-principles {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════ CTA FINAL ═══════════════ */

.final-cta {
    padding: 6rem 2rem;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(196, 163, 78, 0.07) 0%, transparent 60%),
        var(--bg-secondary);
}

.final-cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.final-cta h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.tagline {
    font-family: var(--font-accent);
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════ FOOTER ═══════════════ */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 2rem 2rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.8rem;
}

.footer-brand-sub {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
    font-size: 1rem;
}

.footer-social a:hover {
    color: var(--gold-light);
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

/* Mantengo h3 y h4 por compatibilidad */
.footer h3,
.footer h4 {
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 0.6rem;
}

.footer ul a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer ul a:hover {
    color: var(--gold-light);
}

.footer-contact {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.footer-contact a {
    color: var(--gold-light);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 968px) {
    .books-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .results-list {
        grid-template-columns: 1fr 1fr;
    }

    .author-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .author-card {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 0 1.3rem;
    }

    .nav-inner {
        height: 60px;
    }

    .hero {
        min-height: auto;
        padding: 7rem 1.3rem 4rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary,
    .btn-ghost,
    .btn-outline-gold {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        text-align: center;
    }

    .books-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .results-list {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .final-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .carousel-card {
        flex-direction: column;
        padding: 1.7rem 1rem;
    }

    .carousel-img {
        width: 160px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.6rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .btn-explorar {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .carousel-section,
    .books-section,
    .results-section,
    .author-section,
    .final-cta {
        padding-left: 1.3rem;
        padding-right: 1.3rem;
    }

    .results-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0 1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .brand-icon {
        width: 24px;
        height: 24px;
    }

    .btn-explorar {
        display: none;
    }

    .nav-menu {
        width: 86%;
        padding: 1.5rem;
    }

    .hero-badge {
        font-size: 0.68rem;
        padding: 0.4rem 0.9rem;
    }

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

    .hero-subtitle {
        font-size: 1.05rem;
    }

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

    .book-card {
        padding: 1.8rem 1.2rem 1.5rem;
    }

    .author-card {
        padding: 1.8rem 1.2rem;
    }

    .footer {
        padding: 3rem 1.5rem 1.5rem;
    }

    .carousel-city {
        font-size: 1.15rem;
    }

    .book-price {
        color: var(--gold-light);
    }
}

/* Usuarios con reducción de movimiento activada */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════ PÁGINA LIBROS / CATÁLOGO ═══════════════ */

.page-hero {
    padding: 9rem 2rem 5rem;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196, 163, 78, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(180, 150, 80, 0.04) 0%, transparent 50%),
        var(--bg-primary);
    text-align: center;
}

.page-hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    color: var(--text-white);
    line-height: 1.18;
    margin-bottom: 1.2rem;
}

.page-title .highlight {
    display: block;
    background: linear-gradient(180deg, #f0d878 0%, #c4a34e 50%, #a08030 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 620px;
    margin: 0 auto;
}

.catalog-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.catalog-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.catalog-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.catalog-filter {
    width: 100%;
    max-width: 420px;
}

.catalog-filter label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
}

.catalog-filter input {
    width: 100%;
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    padding: 0.85rem 1.2rem;
    font-family: var(--font-body);
    outline: none;
    transition: var(--transition);
}

.catalog-filter input::placeholder {
    color: var(--text-dim);
}

.catalog-filter input:focus {
    border-color: var(--border-gold);
    box-shadow: 0 0 0 4px rgba(196, 163, 78, 0.08);
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.catalog-book-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 2rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.catalog-book-card:hover {
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold), var(--shadow-card-hover);
}

.catalog-cover-link {
    display: block;
    text-decoration: none;
}

.catalog-cover-wrap {
    width: 180px;
    height: 260px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
    background: #16162c;
}

.catalog-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.catalog-book-content h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--text-white);
    margin-bottom: 0.6rem;
}

.catalog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}

.catalog-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    background: rgba(196, 163, 78, 0.06);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.catalog-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.catalog-description {
    color: var(--text-dim);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    max-width: 720px;
}

.catalog-price {
    font-family: var(--font-display);
    color: var(--gold-light);
    font-weight: 700;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.empty-state {
    margin-top: 2rem;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    text-align: center;
}

.empty-state h3 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
}

/* Responsive catálogo */

@media (max-width: 820px) {
    .catalog-header {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-filter {
        max-width: none;
    }

    .catalog-book-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .catalog-meta,
    .catalog-actions {
        justify-content: center;
    }

    .catalog-description {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 7rem 1.3rem 4rem;
    }

    .catalog-section {
        padding: 4rem 1.3rem;
    }

    .catalog-book-card {
        padding: 1.5rem 1rem;
    }

    .catalog-cover-wrap {
        width: 150px;
        height: 220px;
    }

    .catalog-actions {
        flex-direction: column;
        align-items: center;
    }

    .catalog-actions a {
        width: 100%;
        max-width: 260px;
    }
}

/* ═══════════════ PÁGINA MUESTRA / LECTOR PDF ═══════════════ */

.sample-hero {
    padding: 9rem 2rem 5rem;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196, 163, 78, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(180, 150, 80, 0.04) 0%, transparent 50%),
        var(--bg-primary);
}

.sample-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: center;
}

.sample-cover-box {
    width: 240px;
    height: 350px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 35px rgba(196, 163, 78, 0.12);
}

.sample-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sample-info {
    max-width: 720px;
}

.sample-info .page-title {
    text-align: left;
}

.sample-info .page-title .highlight {
    display: block;
}

.sample-info .page-subtitle {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

.sample-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.pdf-reader-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.pdf-reader-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.pdf-reader-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pdf-reader-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 760px;
    box-shadow: var(--shadow-card);
}

.pdf-reader-box iframe {
    width: 100%;
    height: 760px;
    border: none;
    display: block;
    background: #ffffff;
}

.pdf-mobile-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
}

.pdf-mobile-note strong {
    color: var(--gold-light);
}

.sample-purchase-cta {
    padding: 6rem 2rem;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(196, 163, 78, 0.08) 0%, transparent 60%),
        var(--bg-primary);
    text-align: center;
}

.sample-purchase-inner {
    max-width: 720px;
    margin: 0 auto;
}

.sample-purchase-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: var(--text-white);
    margin-bottom: 1rem;
}

.pdf-error-box {
    min-height: 420px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.pdf-error-box h3 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
}

.pdf-error-box p {
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 1.5rem;
}

/* Responsive lector PDF */

@media (max-width: 900px) {
    .sample-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .sample-info {
        margin: 0 auto;
    }

    .sample-info .page-title,
    .sample-info .page-subtitle {
        text-align: center;
    }

    .sample-info .page-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .sample-actions {
        justify-content: center;
    }

    .pdf-reader-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .pdf-reader-header .btn-outline-gold {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .sample-hero {
        padding: 7rem 1.3rem 4rem;
    }

    .sample-cover-box {
        width: 180px;
        height: 265px;
    }

    .pdf-reader-section {
        padding: 4rem 1rem;
    }

    .pdf-reader-box {
        border-radius: 12px;
        min-height: 620px;
    }

    .pdf-reader-box iframe {
        height: 620px;
    }

    .sample-actions {
        flex-direction: column;
        align-items: center;
    }

    .sample-actions a {
        width: 100%;
        max-width: 320px;
    }

    .sample-purchase-cta {
        padding: 4rem 1.3rem;
    }
}

/* ═══════════════ LECTOR DE INTRODUCCIÓN INCRUSTADA ═══════════════ */

.embedded-reader-section {
    padding: 5rem 2rem;
    background: var(--bg-secondary);
}

.embedded-reader-inner {
    max-width: 980px;
    margin: 0 auto;
}

.reader-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    margin-bottom: 2rem;
}

.reader-actions {
    display: flex;
    gap: 0.5rem;
}

.reader-tool-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-gold);
    background: rgba(196, 163, 78, 0.08);
    color: var(--gold-light);
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.reader-tool-btn:hover {
    background: rgba(196, 163, 78, 0.16);
    transform: translateY(-1px);
}

.book-reader {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
        var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: clamp(1.4rem, 4vw, 4rem);
    box-shadow: var(--shadow-card);
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.95;
}

.reader-book-header {
    text-align: center;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.reader-kicker {
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.reader-book-header h2 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.18;
    margin-bottom: 1rem;
}

.reader-book-header p:last-child {
    color: var(--text-muted);
    font-family: var(--font-accent);
    font-size: 1.2rem;
    font-style: italic;
}

.reader-block {
    margin-bottom: 3rem;
}

.reader-block h3 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    line-height: 1.25;
    margin-bottom: 0.8rem;
}

.reader-subtitle {
    font-family: var(--font-accent);
    color: var(--gold-light);
    font-size: 1.25em;
    font-style: italic;
    margin-bottom: 1.4rem;
}

.reader-block p {
    color: var(--text-light);
    margin-bottom: 1.15rem;
}

.reader-list {
    list-style: none;
    margin: 1.4rem 0 1.7rem;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.reader-list li {
    position: relative;
    padding-left: 1.8rem;
    color: var(--text-light);
}

.reader-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-light);
}

.reader-toc {
    background: rgba(196, 163, 78, 0.045);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: clamp(1.2rem, 3vw, 2rem);
}

.reader-toc .reader-list {
    columns: 2;
    display: block;
}

.reader-toc .reader-list li {
    break-inside: avoid;
    margin-bottom: 0.65rem;
}

.reader-quote {
    background:
        radial-gradient(ellipse at top, rgba(196, 163, 78, 0.12), transparent 60%),
        rgba(255, 255, 255, 0.025);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: clamp(1.3rem, 3vw, 2rem);
}

.reader-author-note {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: clamp(1.3rem, 3vw, 2rem);
}

.reader-end-card {
    margin-top: 4rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196, 163, 78, 0.14), transparent 65%),
        var(--bg-secondary);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-xl);
    text-align: center;
}

.reader-end-card h3 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.8rem;
}

.reader-end-card p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 1.6rem;
}

.reader-error-box {
    min-height: 360px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
}

.reader-error-box h3 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
}

.reader-error-box p {
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 1.5rem;
}

/* Responsive lector incrustado */

@media (max-width: 760px) {
    .embedded-reader-section {
        padding: 4rem 1.2rem;
    }

    .reader-toolbar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .book-reader {
        line-height: 1.85;
    }

    .reader-toc .reader-list {
        columns: 1;
    }
}

@media (max-width: 480px) {
    .embedded-reader-section {
        padding: 3rem 1rem;
    }

    .book-reader {
        padding: 1.2rem;
        border-radius: 14px;
    }

    .reader-book-header {
        padding-bottom: 1.8rem;
        margin-bottom: 2rem;
    }

    .reader-block {
        margin-bottom: 2.4rem;
    }
}

/* ═══════════════ PÁGINAS COMPLETADAS / CHECKOUT ═══════════════ */
.detail-section,
.checkout-section,
.author-profile-section,
.contact-section,
.blog-section,
.legal-section,
.values-section,
.trust-strip {
    padding: 5rem 2rem;
}

.detail-inner,
.checkout-inner,
.author-profile-inner,
.contact-inner,
.blog-grid,
.legal-card,
.values-inner,
.trust-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.detail-inner,
.checkout-inner,
.author-profile-inner,
.contact-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: start;
}

.detail-cover-card,
.detail-content-card,
.checkout-summary,
.checkout-panel,
.author-profile-card,
.contact-card,
.contact-form,
.legal-card,
.blog-card,
.values-inner article,
.trust-inner article {
    background: linear-gradient(145deg, rgba(17, 17, 37, 0.96), rgba(10, 10, 22, 0.96));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.detail-cover-card {
    padding: 1.2rem;
    position: sticky;
    top: 96px;
}

.detail-cover-img,
.checkout-cover,
.author-profile-photo img {
    width: 100%;
    border-radius: var(--radius-lg);
    display: block;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.detail-content-card,
.checkout-summary,
.checkout-panel,
.author-profile-card,
.contact-card,
.contact-form,
.legal-card,
.blog-card {
    padding: 2rem;
}

.detail-content-card h2,
.checkout-panel h2,
.checkout-summary h2,
.author-profile-card h2,
.contact-card h2,
.blog-card h2,
.legal-card h2 {
    font-family: var(--font-display);
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.detail-description,
.checkout-summary p,
.checkout-note,
.contact-card p,
.blog-card p,
.legal-card p,
.author-profile-card p {
    color: var(--text-muted);
}

.detail-price {
    font-family: var(--font-display);
    color: var(--gold-light);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 1.5rem 0;
}

.detail-actions,
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 2rem 0;
}

.detail-meta-grid div,
.order-line,
.order-total,
.contact-method {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.detail-meta-grid span,
.order-line span,
.order-total span,
.contact-method strong {
    display: block;
    color: var(--text-dim);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.detail-meta-grid strong,
.order-line strong,
.order-total strong,
.contact-method a {
    color: var(--text-white);
    text-decoration: none;
}

.feature-list {
    margin-top: 1rem;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.feature-list li {
    color: var(--text-light);
    padding-left: 1.8rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold-light);
}

.checkout-hero {
    padding: 9rem 2rem 4rem;
    background: radial-gradient(circle at 70% 20%, rgba(196, 163, 78, 0.12), transparent 34%), var(--bg-primary);
}

.checkout-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 2rem;
    align-items: center;
}

.checkout-cover-wrap {
    padding: 0.8rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-gold);
    background: rgba(196, 163, 78, 0.08);
}

.order-line,
.order-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.order-total {
    border-color: var(--border-gold);
}

.order-total strong {
    color: var(--gold-light);
    font-size: 1.35rem;
}

.sample-link {
    display: inline-block;
    margin-top: 1.3rem;
    color: var(--gold-light);
    text-decoration: none;
    font-weight: 700;
}

.payment-buttons {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.payment-btn {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #080810;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(196, 163, 78, 0.20);
}

.payment-btn small {
    font-weight: 600;
    opacity: 0.82;
}

.payment-disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px dashed var(--border-medium);
    box-shadow: none;
    cursor: not-allowed;
}

.manual-payment-box {
    border-top: 1px solid var(--border-subtle);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.author-profile-photo {
    padding: 1rem;
    border-radius: var(--radius-xl);
    background: rgba(196, 163, 78, 0.08);
    border: 1px solid var(--border-gold);
}

.values-inner,
.trust-inner,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.values-inner article,
.trust-inner article {
    padding: 1.5rem;
}

.values-inner span {
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
}

.values-inner h3,
.trust-inner strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 0.5rem;
}

.values-inner p,
.trust-inner span {
    color: var(--text-muted);
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.contact-form label {
    display: grid;
    gap: 0.45rem;
    color: var(--text-light);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    padding: 0.95rem 1rem;
    font: inherit;
}

.form-note {
    color: var(--text-dim);
    font-size: 0.88rem;
}

.contact-method {
    margin-top: 1rem;
}

.blog-card span {
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 800;
}

.blog-card a,
.legal-card a {
    color: var(--gold-light);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 860px) {
    .detail-inner,
    .checkout-inner,
    .author-profile-inner,
    .contact-inner,
    .checkout-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-cover-card {
        position: static;
        max-width: 360px;
        margin: 0 auto;
    }

    .detail-meta-grid,
    .values-inner,
    .trust-inner,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .checkout-cover-wrap {
        max-width: 260px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .detail-section,
    .checkout-section,
    .author-profile-section,
    .contact-section,
    .blog-section,
    .legal-section,
    .values-section,
    .trust-strip {
        padding: 3.5rem 1rem;
    }

    .detail-content-card,
    .checkout-summary,
    .checkout-panel,
    .author-profile-card,
    .contact-card,
    .contact-form,
    .legal-card,
    .blog-card {
        padding: 1.3rem;
    }

    .order-line,
    .order-total {
        display: block;
    }
}

/* ═══════════════ TERMINACIONES OPERATIVAS · SELECTOR, PAGOS Y RESPONSIVE ═══════════════ */
.sample-picker-section {
    padding: 5rem 1.25rem;
    background: radial-gradient(circle at top left, rgba(201, 162, 76, 0.12), transparent 35%), var(--bg-dark);
}

.sample-picker-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.sample-picker-note {
    max-width: 360px;
    color: var(--text-muted);
    line-height: 1.7;
}

.sample-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.sample-picker-card {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025));
    box-shadow: var(--shadow-soft);
}

.sample-picker-cover {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

.sample-picker-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.sample-picker-content h3 {
    color: var(--text-white);
    font-family: var(--font-display);
    font-size: clamp(1.45rem, 2vw, 2rem);
    margin-bottom: 0.55rem;
}

.sample-picker-content p:not(.section-label) {
    color: var(--text-muted);
    line-height: 1.65;
}

.sample-picker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.payment-buttons {
    display: grid;
    gap: 0.85rem;
}

.payment-btn small,
.zelle-box .form-note {
    line-height: 1.45;
}

.zelle-box {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(201, 162, 76, 0.25);
    background: rgba(201, 162, 76, 0.07);
}

.zelle-box h3 {
    color: var(--text-white);
    margin-bottom: 0.45rem;
}

.zelle-box p {
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.payment-disabled {
    opacity: 0.78;
}

.trust-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.trust-mini-card {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-medium);
    background: rgba(255,255,255,0.04);
}

.trust-mini-card strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 0.35rem;
}

.trust-mini-card span {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

@media (max-width: 920px) {
    .sample-picker-grid,
    .trust-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .sample-picker-card {
        grid-template-columns: 1fr;
    }

    .sample-picker-cover {
        max-width: 240px;
        margin: 0 auto;
    }

    .sample-picker-actions,
    .hero-ctas,
    .cta-buttons,
    .book-actions,
    .catalog-actions,
    .detail-actions {
        flex-direction: column;
    }

    .sample-picker-actions a,
    .hero-ctas a,
    .cta-buttons a,
    .book-actions a,
    .catalog-actions a,
    .detail-actions a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ═══════════════ CHECKOUT PROFESIONAL QVAPAY / SUPABASE ═══════════════ */
.checkout-pro-hero {
    padding: 9rem 2rem 4rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(196, 163, 78, 0.16), transparent 32%),
        radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.07), transparent 26%),
        var(--bg-primary);
}

.checkout-pro-wrap {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 2rem;
    align-items: center;
}

.secure-card,
.checkout-form-card,
.checkout-review-card,
.single-secure-panel {
    background: linear-gradient(145deg, rgba(17, 17, 37, 0.96), rgba(10, 10, 22, 0.96));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.secure-card {
    padding: 1.6rem;
    border-color: var(--border-gold);
}

.secure-card strong {
    display: block;
    color: var(--gold-light);
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.secure-card span,
.trust-list p,
.checkout-form-card label,
.checkout-check,
.crypto-status + h2 + p {
    color: var(--text-muted);
}

.checkout-pro-section {
    padding: 5rem 2rem;
}

.checkout-pro-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 2rem;
    align-items: start;
}

.checkout-form-card,
.checkout-review-card,
.single-secure-panel {
    padding: 2rem;
}

.checkout-steps {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.checkout-steps span {
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

.checkout-steps span.active {
    background: rgba(196, 163, 78, 0.14);
    border-color: var(--border-gold);
    color: var(--gold-light);
}

.checkout-form-card h2,
.checkout-review-card h2,
.single-secure-panel h2 {
    font-family: var(--font-display);
    color: var(--text-white);
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.12;
    margin-bottom: 1.4rem;
}

.checkout-form-card {
    display: grid;
    gap: 1rem;
}

.checkout-form-card label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

.checkout-form-card input,
.checkout-form-card select {
    width: 100%;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
    padding: 1rem;
    font: inherit;
    outline: none;
}

.checkout-form-card input:focus,
.checkout-form-card select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(196, 163, 78, 0.12);
}

.checkout-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.checkout-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 0.75rem !important;
    font-weight: 500 !important;
    line-height: 1.55;
}

.checkout-check input {
    width: auto;
    margin-top: 0.25rem;
}

.checkout-submit:disabled {
    opacity: 0.68;
    cursor: wait;
}

.form-error {
    color: #ffb4b4 !important;
}

.checkout-book-preview {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.checkout-book-preview img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
}

.price-box {
    margin: 1.6rem 0;
    display: grid;
    gap: 0.75rem;
}

.price-box div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.035);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.price-box span {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.price-box strong {
    color: var(--text-white);
}

.price-box .price-total {
    border-color: var(--border-gold);
    background: rgba(196, 163, 78, 0.08);
}

.price-box .price-total strong {
    color: var(--gold-light);
    font-size: 1.45rem;
}

.trust-list {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.trust-list p {
    margin: 0;
    line-height: 1.55;
}

.trust-list strong {
    color: var(--text-white);
}

.single-secure-panel {
    max-width: 980px;
    margin: 0 auto;
}

.crypto-status {
    display: inline-flex;
    border: 1px solid var(--border-gold);
    color: var(--gold-light);
    background: rgba(196, 163, 78, 0.12);
    border-radius: 999px;
    padding: 0.5rem 0.85rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.crypto-status.paid {
    color: #9ff2bf;
    border-color: rgba(159, 242, 191, 0.38);
    background: rgba(159, 242, 191, 0.09);
}

.crypto-grid {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.crypto-qr {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: #fff;
    color: #111;
}

.crypto-qr svg {
    width: 100%;
    height: auto;
}

.crypto-data {
    display: grid;
    gap: 0.8rem;
}

.wallet-text {
    word-break: break-all;
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .checkout-pro-wrap,
    .checkout-pro-grid,
    .crypto-grid {
        grid-template-columns: 1fr;
    }

    .secure-card {
        max-width: 520px;
    }
}

@media (max-width: 620px) {
    .checkout-pro-hero,
    .checkout-pro-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .checkout-form-card,
    .checkout-review-card,
    .single-secure-panel {
        padding: 1.25rem;
    }

    .checkout-two-cols,
    .checkout-book-preview {
        grid-template-columns: 1fr;
    }

    .checkout-book-preview img {
        max-width: 180px;
    }
}


/* ═══════════════ TEMA CLARO EDITORIAL V7 · PEDRO MEDINA ═══════════════ */
:root {
    --bg-primary: #f8f1e5;
    --bg-secondary: #fffaf2;
    --bg-card: #ffffff;
    --bg-card-hover: #fff7e8;
    --gold: #b9872d;
    --gold-light: #c99a48;
    --gold-dark: #7d571b;
    --gold-glow: rgba(185, 135, 45, 0.16);
    --text-white: #1f2933;
    --text-light: #2c3440;
    --text-muted: #5f6b76;
    --text-dim: #78838e;
    --border-subtle: rgba(95, 73, 42, 0.13);
    --border-medium: rgba(95, 73, 42, 0.22);
    --border-gold: rgba(185, 135, 45, 0.35);
    --shadow-card: 0 10px 30px rgba(90, 64, 32, 0.10);
    --shadow-card-hover: 0 18px 42px rgba(90, 64, 32, 0.14);
    --shadow-gold: 0 12px 36px rgba(185, 135, 45, 0.12);
}

html.menu-locked,
body.menu-locked {
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: none;
}

body.menu-locked {
    position: fixed;
    width: 100%;
}

body {
    background: linear-gradient(180deg, #fffaf2 0%, #f8f1e5 46%, #fffdf8 100%);
    color: var(--text-light);
}

.nav,
.nav.scrolled,
.nav.nav-light {
    background: rgba(255, 250, 242, 0.94);
    border-bottom-color: rgba(95, 73, 42, 0.14);
    box-shadow: 0 8px 28px rgba(88, 66, 35, 0.08);
}

.nav-brand,
.nav.nav-light .nav-brand,
.nav-toggle span,
.nav.nav-light .nav-toggle span {
    color: #1f2933;
}

.nav-toggle span,
.nav.nav-light .nav-toggle span {
    background-color: #1f2933;
}

.nav-toggle,
.nav.nav-light .nav-toggle {
    background: #fff7e8;
    border-color: rgba(95, 73, 42, 0.16);
}

.brand-icon {
    background: radial-gradient(circle at 35% 25%, #ffe7a3, #c7933b 52%, #7d571b 100%);
}

.menu-overlay {
    background: rgba(36, 30, 22, 0.45);
    backdrop-filter: blur(3px);
}

.nav-menu {
    background: #fffaf2;
    border-left: 1px solid rgba(95, 73, 42, 0.14);
    box-shadow: -18px 0 50px rgba(60, 43, 25, 0.16);
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.menu-close,
.nav-links a,
.btn-ghost,
.btn-sm-ghost {
    color: var(--text-muted);
}

.menu-close:hover,
.nav-links a:hover,
.btn-ghost:hover,
.btn-sm-ghost:hover {
    color: var(--gold-dark);
}

.hero,
.page-hero,
.sample-hero,
.checkout-hero,
.checkout-pro-hero {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 226, 161, 0.45), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(185, 135, 45, 0.16), transparent 28%),
        linear-gradient(180deg, #fffaf2 0%, #f8f1e5 100%);
}

.hero-title,
.page-title,
.section-title,
.book-card h3,
.book-card h4,
.catalog-book-content h3,
.footer-brand,
.author-card h2,
.detail-content-card h2,
.checkout-pro-title {
    color: #1f2933;
}

.hero-title .highlight,
.page-title .highlight {
    background: linear-gradient(180deg, #c7933b 0%, #9f6b1f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle,
.page-subtitle,
.section-subtitle,
.hero-desc,
.book-desc,
.catalog-description,
.footer-brand-sub,
.footer-contact,
.detail-description,
.checkout-pro-subtitle {
    color: #5f6b76;
}

.books-section,
.results-section,
.author-section,
.catalog-section,
.detail-section,
.checkout-section,
.author-profile-section,
.contact-section,
.blog-section,
.legal-section,
.values-section,
.final-cta,
.embedded-reader-section,
.pdf-reader-section,
.checkout-pro-section {
    background: transparent;
}

.book-card,
.catalog-book-card,
.author-card,
.editorial-panel,
.detail-cover-card,
.detail-content-card,
.reader-error-box,
.checkout-form-card,
.checkout-review-card,
.single-secure-panel,
.crypto-payment-box,
.contact-card,
.blog-card,
.legal-card,
.value-card,
.sample-picker-card,
.reader-card {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(95, 73, 42, 0.13);
    box-shadow: var(--shadow-card);
}

.book-card:hover,
.catalog-book-card:hover,
.sample-picker-card:hover {
    background: #fff7e8;
    border-color: var(--border-gold);
}

.book-cover,
.catalog-cover-wrap,
.detail-cover-card img,
.sample-cover-box {
    box-shadow: 0 16px 36px rgba(76, 55, 32, 0.20);
    border-color: rgba(95, 73, 42, 0.16);
}

.btn-ghost,
.btn-sm-ghost,
.btn-outline-gold,
.catalog-filter input,
.form-group input,
.form-group select,
.form-group textarea,
.checkout-input,
input,
select,
textarea {
    background: #fffdf8;
    border-color: rgba(95, 73, 42, 0.18);
    color: #1f2933;
}

.btn-primary,
.btn-explorar,
.btn-sm-gold {
    background: linear-gradient(180deg, #d3a24b 0%, #b9872d 100%);
    color: #17120a;
    box-shadow: 0 10px 24px rgba(185, 135, 45, 0.24);
}

.btn-primary:hover,
.btn-explorar:hover,
.btn-sm-gold:hover {
    background: linear-gradient(180deg, #e1b65e 0%, #c7933b 100%);
}

.footer {
    background: #efe2cc;
    color: #2c3440;
    border-top: 1px solid rgba(95, 73, 42, 0.15);
}

.footer a,
.footer h3 {
    color: #2c3440;
}

.footer-bottom {
    border-top-color: rgba(95, 73, 42, 0.14);
    color: #66717c;
}

.catalog-meta span,
.hero-badge,
.section-label,
.crypto-status {
    background: rgba(185, 135, 45, 0.10);
    color: #8a5f20;
    border-color: rgba(185, 135, 45, 0.30);
}

.crypto-qr {
    background: #ffffff;
    color: #1f2933;
}

.book-card-featured-light {
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,246,229,.92));
}


/* ═══════════════ AJUSTES V8 · LOGO, CLARIDAD Y AVISOS ═══════════════ */
.brand-icon {
    width: 42px;
    height: 42px;
    background: url('img/logo-pedro-medina.png') center/cover no-repeat !important;
    border: 2px solid rgba(185, 135, 45, 0.45);
    box-shadow: 0 8px 22px rgba(90, 64, 32, 0.18);
}

.nav-brand { gap: 0.7rem; }
.nav-brand span:last-child { letter-spacing: 0.045em; }

body {
    background: linear-gradient(180deg, #fffdf8 0%, #faf3e7 45%, #fffaf2 100%);
}

.hero,
.page-hero,
.checkout-pro-hero {
    background: radial-gradient(circle at 24% 18%, rgba(255, 224, 155, 0.38), transparent 31%),
                radial-gradient(circle at 80% 12%, rgba(191, 145, 70, 0.18), transparent 28%),
                linear-gradient(180deg, #fffaf2 0%, #f8f1e5 100%) !important;
}

.book-status-note,
.catalog-price:has(+ .catalog-actions .js-unavailable-book),
.detail-price {
    font-weight: 800;
}

.book-status-note {
    color: #9b3d2f !important;
    background: #fff1ed;
    border: 1px solid rgba(155, 61, 47, 0.18);
    display: inline-flex;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.book-price span,
.catalog-price,
.detail-price {
    letter-spacing: -0.01em;
}

.notice-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    place-items: center;
    padding: 1.25rem;
}

.notice-modal.active { display: grid; }
.notice-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 26, 18, 0.46);
    backdrop-filter: blur(5px);
}

.notice-modal-card {
    position: relative;
    width: min(520px, 100%);
    background: #fffdf8;
    border: 1px solid rgba(185, 135, 45, 0.22);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(60, 43, 25, 0.24);
    padding: clamp(1.4rem, 4vw, 2.2rem);
    color: #1f2933;
}

.notice-modal-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.notice-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(95, 73, 42, 0.16);
    background: #fff7e8;
    cursor: pointer;
    font-size: 1.4rem;
    color: #1f2933;
}

.notice-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.carousel-track {
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}
.carousel-track:active { cursor: grabbing; }
.carousel-img { pointer-events: none; }

@media (max-width: 520px) {
    .brand-icon { width: 36px; height: 36px; }
    .nav-brand { font-size: 1.05rem; }
    .notice-modal-actions .btn-primary,
    .notice-modal-actions .btn-outline-gold { width: 100%; justify-content: center; }
}

.crypto-method-info {
    margin: 0.4rem 0 1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(177, 130, 54, 0.24);
    background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(246, 230, 199, 0.55));
    color: var(--text);
    line-height: 1.65;
    font-size: 0.94rem;
}

.crypto-method-info strong {
    color: var(--gold-dark);
}

.crypto-method-info span {
    display: inline-flex;
    margin-left: .5rem;
    padding: .1rem .55rem;
    border-radius: 999px;
    background: rgba(177, 130, 54, .12);
    color: var(--gold-dark);
    font-size: .78rem;
    font-weight: 700;
}

.crypto-method-info em {
    display: block;
    margin-top: .4rem;
    color: var(--muted);
    font-style: normal;
}

/* V10 · Advertencias de pago cripto */
.crypto-warning {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(160, 86, 35, 0.28);
    border-radius: 14px;
    background: #fff3df;
    color: #654014;
    line-height: 1.55;
}
.crypto-warning strong { color: #8a4b10; }


/* ═══════════════ V11 · SECCIONES COMERCIALES Y AYUDA DE PAGOS ═══════════════ */
.featured-book-section,
.purchase-flow-section,
.waitlist-section,
.help-payment-section,
.faq-section { padding: 86px 20px; }
.featured-book-inner,
.purchase-flow-inner,
.waitlist-inner,
.help-payment-grid,
.faq-inner { width: min(1180px, 100%); margin: 0 auto; }
.featured-book-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px); gap: 48px; align-items: center; background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(247,239,225,.96)); border: 1px solid rgba(158, 116, 55, .24); border-radius: 34px; padding: clamp(24px, 5vw, 56px); box-shadow: var(--shadow-soft); }
.featured-book-text { font-size: 1.08rem; line-height: 1.8; color: var(--text-muted); margin: 18px 0 20px; }
.featured-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 28px; }
.featured-benefits span { border: 1px solid rgba(158,116,55,.22); background: rgba(255,255,255,.7); padding: 10px 14px; border-radius: 999px; color: var(--text-dark); font-weight: 700; font-size: .9rem; }
.featured-book-cover { display: block; justify-self: center; transform: rotate(1.5deg); transition: .25s ease; }
.featured-book-cover:hover { transform: translateY(-6px) rotate(0deg); }
.featured-book-cover img { width: min(360px, 100%); border-radius: 26px; box-shadow: 0 28px 60px rgba(59, 43, 25, .24); }
.purchase-flow-section { background: rgba(255,255,255,.45); }
.purchase-flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.purchase-flow-grid article,
.help-card,
.waitlist-form,
.detail-waitlist-box,
.safe-purchase-box { background: rgba(255,255,255,.86); border: 1px solid rgba(158,116,55,.18); border-radius: 24px; padding: 24px; box-shadow: var(--shadow-soft); }
.purchase-flow-grid strong { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-gradient); color: #fff; margin-bottom: 14px; }
.purchase-flow-grid h3, .help-card h3 { margin: 0 0 8px; color: var(--text-dark); }
.purchase-flow-grid p, .help-card p { color: var(--text-muted); line-height: 1.7; }
.payment-alert-note { margin: 28px auto 0; max-width: 760px; background: #fff6df; border: 1px solid rgba(184,128,34,.28); padding: 16px 18px; border-radius: 18px; color: #6d4713; text-align: center; }
.waitlist-inner { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 34px; align-items: start; }
.waitlist-form { display: grid; gap: 14px; }
.waitlist-form.compact { box-shadow: none; border-radius: 18px; padding: 18px; margin-top: 16px; }
.waitlist-form label { display: grid; gap: 8px; color: var(--text-dark); font-weight: 700; }
.waitlist-form input, .waitlist-form select { width: 100%; border: 1px solid rgba(94, 69, 35, .22); border-radius: 14px; padding: 13px 14px; font: inherit; background: #fff; color: var(--text-dark); }
.help-payment-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.featured-help-card { grid-row: span 2; background: linear-gradient(145deg, #fff, #fff6e5); }
.help-card h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 14px; color: var(--text-dark); }
.faq-inner { max-width: 920px; }
.faq-inner details { background: #fff; border: 1px solid rgba(158,116,55,.18); border-radius: 18px; padding: 18px 20px; margin: 12px 0; box-shadow: 0 12px 28px rgba(83,58,28,.06); }
.faq-inner summary { cursor: pointer; font-weight: 800; color: var(--text-dark); }
.faq-inner details p { color: var(--text-muted); line-height: 1.75; margin: 12px 0 0; }
.sales-highlight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.sales-highlight-grid div { background: #fff8ea; border: 1px solid rgba(158,116,55,.18); border-radius: 18px; padding: 14px; }
.sales-highlight-grid span { display: block; color: var(--text-muted); font-size: .82rem; margin-bottom: 6px; }
.sales-highlight-grid strong { color: var(--text-dark); }
.safe-purchase-box { margin-top: 22px; color: var(--text-muted); line-height: 1.7; }
@media (max-width: 900px) { .featured-book-inner, .waitlist-inner, .help-payment-grid { grid-template-columns: 1fr; } .purchase-flow-grid { grid-template-columns: repeat(2, 1fr); } .sales-highlight-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .purchase-flow-grid { grid-template-columns: 1fr; } .featured-book-section, .purchase-flow-section, .waitlist-section, .help-payment-section, .faq-section { padding: 58px 16px; } }


/* ═══════════════ V14 · FAQ, ESTADO, SOPORTE Y LANDING RENACER ═══════════════ */
.faq-section,.status-section,.support-center-section,.landing-section{padding:5rem 2rem;}
.support-hero{background:linear-gradient(135deg,rgba(247,239,225,.96),rgba(255,252,246,.96));}
.faq-inner,.status-inner,.support-center-grid,.landing-grid,.landing-split{max-width:var(--max-width);margin:0 auto;}
.faq-inner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;}
.faq-card,.status-card,.support-card,.support-panel,.landing-panel,.landing-grid article,.landing-quote{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:var(--radius-xl);box-shadow:var(--shadow-card);padding:2rem;}
.featured-faq{grid-column:span 2;}
.faq-card h2,.status-card h2,.support-card h2,.support-panel h2,.landing-panel h2,.landing-grid h2{font-family:var(--font-display);color:var(--text-white);line-height:1.15;margin-bottom:1rem;}
.faq-card details{border-top:1px solid var(--border-subtle);padding:1rem 0;}
.faq-card summary{cursor:pointer;color:var(--text-white);font-weight:800;}
.faq-card p,.status-card p,.support-card p,.support-panel p,.landing-panel p,.landing-grid p,.landing-copy p{color:var(--text-muted);line-height:1.75;}
.support-cta-panel{grid-column:1/-1;background:linear-gradient(135deg,rgba(196,163,78,.14),rgba(255,255,255,.04));border:1px solid var(--border-gold);border-radius:var(--radius-xl);padding:2rem;}
.status-inner{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.5rem;align-items:start;}
.status-box{border:1px solid var(--border-subtle);border-radius:var(--radius-lg);padding:1.5rem;background:rgba(255,255,255,.04);}
.status-paid{border-color:var(--border-gold);background:rgba(196,163,78,.1);}.status-box.error{border-color:rgba(255,120,120,.45);}
.support-center-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.2rem;}.support-center-grid.two{grid-template-columns:repeat(2,minmax(0,1fr));}
.support-card span{color:var(--gold-light);font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:.76rem;}.support-card.primary{border-color:var(--border-gold);}
.support-card a:not(.btn-primary):not(.btn-outline-gold){color:var(--gold-light);font-weight:800;text-decoration:none;word-break:break-word;}.support-list{display:grid;gap:.75rem;color:var(--text-light);padding-left:1rem;}
.landing-book-hero{padding:9rem 2rem 5rem;background:radial-gradient(circle at 10% 18%,rgba(196,163,78,.18),transparent 32%),var(--bg-primary);}.landing-book-inner{max-width:var(--max-width);margin:0 auto;display:grid;grid-template-columns:minmax(0,1.05fr) 360px;gap:2.2rem;align-items:center;}.landing-copy h1{font-family:var(--font-display);font-size:clamp(3rem,7vw,5.9rem);line-height:.95;color:var(--text-white);}.landing-subtitle{font-size:clamp(1.2rem,2.2vw,1.65rem);color:var(--gold-light)!important;margin:1rem 0;}.landing-price{margin:1.5rem 0;display:inline-grid;gap:.25rem;border:1px solid var(--border-gold);border-radius:var(--radius-lg);padding:1rem 1.4rem;background:rgba(196,163,78,.1);}.landing-price span{color:var(--text-dim);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;}.landing-price strong{color:var(--gold-light);font-family:var(--font-display);font-size:2.2rem;}.landing-cover-card{padding:1rem;border:1px solid var(--border-gold);border-radius:var(--radius-xl);background:rgba(196,163,78,.08);box-shadow:var(--shadow-card);}.landing-cover-card img{width:100%;display:block;border-radius:var(--radius-lg);}.landing-section.alt{background:rgba(255,255,255,.035);}.landing-grid.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.2rem;}.landing-grid span{font-family:var(--font-display);font-weight:900;color:var(--gold-light);font-size:2rem;}.landing-split{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem;}.landing-quote{max-width:900px;margin:0 auto;text-align:center;border-color:var(--border-gold);}.landing-quote p{font-family:var(--font-display);font-size:clamp(1.7rem,3vw,2.6rem);color:var(--text-white);line-height:1.2;}.landing-quote span{display:block;margin-top:1rem;color:var(--gold-light);font-weight:800;}.center-cta{display:flex;justify-content:center;gap:1rem;flex-wrap:wrap;margin-top:2rem;}
@media(max-width:900px){.faq-inner,.status-inner,.support-center-grid,.support-center-grid.two,.landing-book-inner,.landing-grid.three,.landing-split{grid-template-columns:1fr}.featured-faq{grid-column:auto}.landing-cover-card{max-width:330px;margin:0 auto;}.faq-section,.status-section,.support-center-section,.landing-section{padding:3.5rem 1rem}.landing-book-hero{padding:8rem 1rem 4rem}}


/* ═══════════════ V15 · SOPORTE POST-COMPRA Y PÁGINAS OPERATIVAS ═══════════════ */
.post-purchase-grid,
.support-message-grid,
.launch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.clean-steps {
    padding-left: 1.2rem;
    margin: 18px 0 0;
}
.clean-steps li { margin-bottom: 12px; line-height: 1.65; }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: 11px; line-height: 1.6; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }
.support-mini-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.copy-box {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(152,111,53,.18);
    border-radius: 18px;
    padding: 18px;
    color: var(--text);
    line-height: 1.7;
}
.support-tools-section { padding: 50px 22px 80px; }
.mt-24 { margin-top: 24px; }
