﻿/* ═══════════════════════════════════════════════════════════════
   base.css — Grupo Editorial Almuzara
   Estructura completa. Todos los colores vienen de tema.php.
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--sans); }

/* ── Utilidades globales ─────────────────────────────────────────── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ══════════════════════════════════════════════════════════════════
   CABECERA
   ══════════════════════════════════════════════════════════════════ */
.cab {
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    position: sticky; top: 0; z-index: 200;
}
.cab-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 1rem;
    padding: .6rem 1.5rem;
}

/* Logo */
.cab-logo {
    display: flex; align-items: center;
    flex-shrink: 0; margin-right: .5rem;
}
.cab-logo img { height: var(--logo-alto, 45px); width: auto; }

/* Nav */
.cab-nav { display: flex; align-items: center; gap: .1rem; flex: 1; }
.cab-nav a {
    font-size: .78rem; font-weight: 400;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--ink-soft);
    padding: .4rem .65rem; border-radius: var(--r);
    white-space: nowrap;
    transition: color .15s, background .15s;
}
.cab-nav a:hover,
.cab-nav a.activo { color: var(--accent); background: var(--accent-lt); }

/* Buscador */
.cab-search {
    display: flex; align-items: center;
    border: 1px solid var(--rule); border-radius: var(--r);
    overflow: hidden; background: #fff; flex-shrink: 0;
}
.cab-search input {
    border: none; outline: none;
    font-family: var(--sans); font-size: .83rem;
    padding: .42rem .75rem; width: 200px;
    background: transparent; color: var(--ink);
}
.cab-search input::placeholder { color: var(--ink-mute); }
.cab-search button {
    border: none; background: var(--accent); color: #fff;
    font-size: .78rem; font-weight: 500;
    padding: .42rem .85rem; white-space: nowrap;
    transition: background .15s;
}
.cab-search button:hover { filter: brightness(.9); }

/* Carrito */
.cab-cart {
    position: relative; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--rule); border-radius: var(--r);
    color: var(--ink-soft);
    transition: border-color .15s, color .15s;
}
.cab-cart:hover { border-color: var(--accent); color: var(--accent); }
.cab-cart svg { width: 20px; height: 20px; }
.cab-cart-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--accent); color: #fff;
    font-size: .65rem; font-weight: 500;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ══════════════════════════════════════════════════════════════════ */
.bc {
    max-width: 1100px; margin: 1.2rem auto 0; padding: 0 1.5rem;
    font-size: .78rem; color: var(--ink-mute);
    display: flex; gap: .35rem; align-items: center; flex-wrap: wrap;
}
.bc a { color: var(--ink-mute); transition: color .15s; }
.bc a:hover { color: var(--accent); }
.bc-sep { opacity: .45; }

/* ══════════════════════════════════════════════════════════════════
   LAYOUT GENERAL
   ══════════════════════════════════════════════════════════════════ */
.contenido {
    max-width: 1100px; margin: 2rem auto 4rem; padding: 0 1.5rem;
}

/* ══════════════════════════════════════════════════════════════════
   FICHA DE LIBRO
   ══════════════════════════════════════════════════════════════════ */
.ficha {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0 3rem;
}

/* Portada */
.portada {
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--sh-lg); background: var(--paper-2);
    position: relative;
}
.portada img { width: 100%; transition: transform .4s ease; }
.portada:hover img { transform: scale(1.02); }
.portada-zoom {
    position: absolute; bottom: 10px; right: 10px;
    background: rgba(0,0,0,.5); color: #fff;
    border-radius: var(--r); font-size: .72rem;
    padding: .25rem .55rem; backdrop-filter: blur(4px);
}

/* Botón compra */
.btn-compra {
    display: block; width: 100%; margin-top: 1.1rem;
    background: var(--accent); color: #fff;
    border: none; border-radius: var(--r);
    padding: .85rem 1rem; text-align: center;
    font-size: .78rem; font-weight: 500;
    letter-spacing: .05em; text-transform: uppercase;
    line-height: 1.4;
    transition: filter .15s, transform .12s;
}
.btn-compra:hover { filter: brightness(.88); transform: translateY(-1px); }
.btn-compra-precio {
    display: block; margin-top: .3rem;
    font-size: 1.3rem; font-weight: 300;
    letter-spacing: 0; text-transform: none;
}
.btn-compra-tachado {
    font-size: .82rem; opacity: .6;
    text-decoration: line-through; margin-left: .4rem;
}

/* RRSS */
.rrss { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.rrss-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--rule); border-radius: var(--r);
    padding: .32rem .7rem; font-size: .75rem;
    color: var(--ink-soft); background: #fff;
    transition: border-color .15s, color .15s;
}
.rrss-btn:hover { border-color: var(--accent); color: var(--accent); }
.rrss-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Ficha de datos */
.datos {
    margin-top: 1.3rem;
    border: 1px solid var(--rule); border-radius: var(--r);
    overflow: hidden; font-size: .83rem;
}
.dato {
    display: flex; gap: .6rem;
    padding: .5rem .85rem;
    border-bottom: 1px solid var(--rule);
}
.dato:last-child { border-bottom: none; }
.dato:nth-child(even) { background: var(--paper-2); }
.dato dt {
    font-size: .73rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-mute); min-width: 85px; flex-shrink: 0;
    padding-top: 1px;
}
.dato dd a { color: var(--accent); }

/* Etiquetas */
.etiq-wrap { margin-top: 1.1rem; }
.etiq-label {
    font-size: .72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--ink-mute); margin-bottom: .45rem;
}
.etiq {
    display: inline-block; padding: .2rem .6rem;
    border: 1px solid var(--rule); border-radius: 20px;
    font-size: .77rem; color: var(--ink-soft);
    margin: .18rem .18rem 0 0;
    transition: border-color .15s, color .15s, background .15s;
}
.etiq:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-lt); }

/* Pulsadores */
.puls { margin-top: 1.1rem; display: flex; flex-direction: column; gap: .1rem; }
.puls-a {
    display: flex; align-items: center; gap: .5rem;
    font-size: .81rem; color: var(--ink-soft);
    padding: .38rem .2rem;
    border-bottom: 1px solid transparent;
    transition: color .15s;
}
.puls-a:hover { color: var(--accent); }
.puls-a svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .55; }
.puls-info {
    display: flex; align-items: center; gap: .5rem;
    font-size: .81rem; color: var(--ink-mute);
    padding: .38rem .2rem;
}
.puls-info svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .4; }

/* Columna derecha de la ficha */
.ficha-der { /* sin estilos propios, hereda de .contenido */ }

.sello-chip {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .73rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent); margin-bottom: .7rem;
}
.sello-chip::before {
    content: ''; display: block; width: 16px; height: 1px; background: var(--accent);
}

.titulo-libro {
    font-family: var(--serif);
    font-size: 2.2rem; line-height: 1.18; font-weight: 600;
    letter-spacing: -.01em;
}
.subtitulo-libro {
    font-family: var(--serif);
    font-size: 1.1rem; font-weight: 400; font-style: italic;
    color: var(--ink-soft); margin-top: .35rem;
}
.autor-linea {
    margin-top: .85rem; font-size: .82rem; font-weight: 500;
    letter-spacing: .04em; color: var(--ink-mute); text-transform: uppercase;
}
.autor-linea a { color: var(--accent); }
.autor-linea a:hover { text-decoration: underline; }

.sep-ornamento {
    margin: 1.3rem 0; height: 1px;
    background: linear-gradient(to right, var(--rule) 0%, transparent 100%);
}

.tag-libro {
    font-family: var(--serif);
    font-size: 1.08rem; font-weight: 600;
    color: var(--ink); line-height: 1.45; margin-bottom: 1.1rem;
}
.contra {
    color: var(--ink-soft); font-size: .93rem;
    line-height: 1.82; max-width: 66ch;
}
.contra p + p { margin-top: .85rem; }

/* Secciones internas de la ficha */
.seccion {
    margin-top: 2rem; padding-top: 1.8rem;
    border-top: 1px solid var(--rule);
}
.sec-tit {
    font-family: var(--serif); font-size: .92rem; font-weight: 600;
    letter-spacing: .04em; margin-bottom: .9rem;
    display: flex; align-items: center; gap: .7rem;
}
.sec-tit::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* Bio autor */
.bio-bloque { display: flex; gap: 1.2rem; align-items: flex-start; }
.bio-foto {
    width: 100px; height: 130px; object-fit: cover; object-position: top;
    border-radius: var(--r); box-shadow: var(--sh); flex-shrink: 0;
}
.bio-nombre {
    font-family: var(--serif); font-size: 1rem; font-weight: 600;
    letter-spacing: .02em; margin-bottom: .5rem;
}
.bio-txt { font-size: .86rem; color: var(--ink-soft); line-height: 1.75; }

/* Libros mini (mismo autor) */
.libros-mini { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .9rem; }
.libro-mini { width: 82px; flex-shrink: 0; }
.libro-mini img {
    width: 82px; height: 120px; object-fit: cover;
    border-radius: var(--r); box-shadow: var(--sh);
    transition: transform .22s, box-shadow .22s;
}
.libro-mini:hover img { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.libro-mini p {
    font-size: .7rem; color: var(--ink-mute); margin-top: .3rem;
    line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}

/* Eventos */
.eventos-lista { list-style: none; display: flex; flex-direction: column; gap: .4rem; margin-top: .75rem; }
.evento-item a {
    display: flex; align-items: baseline; gap: .7rem;
    font-size: .86rem; color: var(--ink-soft);
    padding: .45rem .7rem;
    border: 1px solid var(--rule); border-radius: var(--r);
    transition: border-color .15s;
}
.evento-item a:hover { border-color: var(--accent); }
.ev-fecha {
    font-size: .72rem; font-weight: 500; text-transform: uppercase;
    letter-spacing: .06em; color: var(--accent); min-width: 76px; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   CATÁLOGO
   ══════════════════════════════════════════════════════════════════ */
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols-catalogo), 1fr);
    gap: 1.5rem;
}
.novedades-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols-novedades), 1fr);
    gap: 1.2rem;
}

/* Tarjeta de libro en catálogo */
.libro-card { text-decoration: none; display: block; }
.libro-card img {
    width: 100%; aspect-ratio: 2/3; object-fit: cover;
    border-radius: var(--r); box-shadow: var(--sh);
    transition: transform .22s, box-shadow .22s;
}
.libro-card:hover img { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.libro-card-titulo {
    font-size: .8rem; color: var(--ink); margin-top: .5rem;
    line-height: 1.3; font-weight: 500;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.libro-card-autor {
    font-size: .73rem; color: var(--ink-mute); margin-top: .15rem;
}
.libro-card-pvp {
    font-size: .78rem; color: var(--accent);
    font-weight: 500; margin-top: .2rem;
}

/* Relacionados */
.relacionados {
    grid-column: 1 / -1;
    margin-top: 2.5rem; padding-top: 2.2rem;
    border-top: 2px solid var(--rule);
}
.relacionados-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols-relacionados), 1fr);
    gap: 1.3rem;
}
.rel-titulo {
    font-size: .73rem; color: var(--ink-mute);
    margin-top: .45rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.rel-autor { font-size: .68rem; color: var(--ink-mute); opacity: .7; margin-top: .1rem; }

/* ══════════════════════════════════════════════════════════════════
   PIE
   ══════════════════════════════════════════════════════════════════ */
.pie {
    background: var(--ink); color: rgba(255,255,255,.5);
    margin-top: 3.5rem; padding: 3rem 0 2rem;
    font-size: .82rem;
}
.pie-inner {
    max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2rem;
}
.pie-col-tit {
    font-size: .72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .1em;
    color: rgba(255,255,255,.85); margin-bottom: .7rem;
}
.pie-col-tit + .pie-col-tit { margin-top: 1rem; }
.pie-link {
    display: block; padding: .2rem 0;
    color: rgba(255,255,255,.45);
    transition: color .15s;
}
.pie-link:hover { color: rgba(255,255,255,.9); }
.pie-rrss { display: flex; gap: .7rem; margin-top: .5rem; }
.pie-rrss a {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.15);
    color: rgba(255,255,255,.45);
    transition: border-color .15s, color .15s;
}
.pie-rrss a:hover { border-color: rgba(255,255,255,.5); color: #fff; }
.pie-rrss svg { width: 14px; height: 14px; }
.pie-logo { opacity: .4; margin-bottom: .7rem; }
.pie-dir {
    color: rgba(255,255,255,.3); font-size: .78rem; line-height: 1.6;
}
.pie-copy {
    max-width: 1100px; margin: 2rem auto 0; padding: 1.2rem 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .73rem; color: rgba(255,255,255,.25); text-align: center;
}

/* ══════════════════════════════════════════════════════════════════
   BANNER HERO (portada con banner activado)
   ══════════════════════════════════════════════════════════════════ */
.banner-hero {
    width: 100%; position: relative; overflow: hidden;
    max-height: 480px;
}
.banner-hero img { width: 100%; height: 100%; object-fit: cover; }
.banner-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.6) 0%, transparent 60%);
    display: flex; align-items: center; padding: 3rem;
}
.banner-hero-texto { color: #fff; max-width: 480px; }
.banner-hero-titulo {
    font-family: var(--serif); font-size: 2rem; font-weight: 600;
    line-height: 1.2; margin-bottom: .75rem;
}
.banner-hero-subtitulo { font-size: .95rem; opacity: .85; }

/* ══════════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════════ */
.modal-bg {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.5); z-index: 500;
    align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-bg.open { display: flex; }
.modal-box {
    background: var(--paper); border-radius: var(--r-lg);
    padding: 2rem; max-width: 500px; width: 100%;
    box-shadow: var(--sh-lg); position: relative;
}
.modal-tit { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: .9rem; }
.modal-body {
    font-size: .87rem; color: var(--ink-soft); line-height: 1.7;
    background: var(--paper-2); border-radius: var(--r); padding: .85rem 1rem;
}
.modal-close {
    position: absolute; top: .85rem; right: .85rem;
    background: none; border: none;
    color: var(--ink-mute); font-size: 1.15rem; line-height: 1;
    transition: color .15s;
}
.modal-close:hover { color: var(--ink); }

/* ══════════════════════════════════════════════════════════════════
   COOKIES
   ══════════════════════════════════════════════════════════════════ */
.cookie-bar {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--paper); border-top: 1px solid var(--rule);
    padding: .9rem 1.5rem; display: none; z-index: 300;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
}
.cookie-bar.visible { display: block; }
.cookie-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.cookie-txt { font-size: .8rem; color: var(--ink-soft); flex: 1; min-width: 220px; }
.cookie-txt a { color: var(--accent); }
.cookie-btns { display: flex; gap: .5rem; flex-shrink: 0; }
.cbtn {
    border: none; border-radius: var(--r);
    font-family: var(--sans); font-size: .78rem; font-weight: 500;
    padding: .4rem .9rem; transition: filter .15s;
}
.cbtn-ok { background: var(--accent); color: #fff; }
.cbtn-ok:hover { filter: brightness(.88); }
.cbtn-no { background: var(--paper-2); color: var(--ink-soft); border: 1px solid var(--rule); }
.cbtn-no:hover { border-color: var(--ink-mute); }

/* ══════════════════════════════════════════════════════════════════
   CATALOGO
   ══════════════════════════════════════════════════════════════════ */
.catalogo-cab {
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--rule);
}
.catalogo-tit {
    font-family: var(--serif);
    font-size: 1.8rem; font-weight: 600; line-height: 1.2;
}
.catalogo-subtit {
    font-size: .95rem; color: var(--ink-soft);
    margin-top: .35rem;
}
.catalogo-total {
    font-size: .8rem; color: var(--ink-mute);
    margin-top: .4rem;
}

/* Sección de colección dentro del catálogo */
.catalogo-seccion {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--rule);
}
.catalogo-seccion:last-child { border-bottom: none; }

.catalogo-seccion-cab {
    display: flex; align-items: baseline;
    gap: 1rem; margin-bottom: .6rem;
    flex-wrap: wrap;
}
.catalogo-seccion-tit {
    font-family: var(--serif);
    font-size: 1.2rem; font-weight: 600;
}
.catalogo-seccion-tit a {
    color: var(--ink);
    transition: color .15s;
}
.catalogo-seccion-tit a:hover { color: var(--accent); }
.catalogo-seccion-count {
    font-size: .78rem; color: var(--ink-mute);
}
.catalogo-seccion-ver {
    font-size: .8rem; color: var(--accent);
    margin-left: auto;
    transition: opacity .15s;
}
.catalogo-seccion-ver:hover { opacity: .75; }
.catalogo-seccion-desc {
    font-size: .85rem; color: var(--ink-mute);
    margin-bottom: 1rem; max-width: 60ch;
}

/* ══════════════════════════════════════════════════════════════════
   FICHA DE AUTOR
   ══════════════════════════════════════════════════════════════════ */
.fichaautor {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0 3rem;
}
.fichaautor-aside { grid-column: 1; }
.fichaautor-contenido { grid-column: 2; }

.fichaautor-foto-wrap {
    border-radius: 50%; overflow: hidden;
    width: 180px; height: 180px;
    box-shadow: var(--sh-lg);
    background: var(--paper-2);
    margin: 0 auto;
}
.fichaautor-foto {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
    display: block;
}
.fichaautor-rrss {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: .5rem;
    margin-top: 1.2rem;
}
.fichaautor-rrss-a {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid var(--rule); color: var(--ink-soft);
    transition: border-color .15s, color .15s;
}
.fichaautor-rrss-a:hover { border-color: var(--accent); color: var(--accent); }
.fichaautor-rrss-a svg { width: 15px; height: 15px; }

.fichaautor-nombre {
    font-family: var(--serif);
    font-size: 2rem; font-weight: 600; line-height: 1.2;
    margin-bottom: 1.2rem;
}
.fichaautor-bio {
    font-size: .95rem; color: var(--ink-soft);
    line-height: 1.8; max-width: 66ch;
}

/* Lista de libros del autor */
.fichaautor-libros {
    display: flex; flex-direction: column; gap: 1rem;
    margin-top: .5rem;
}
.fichaautor-libro {
    display: flex; gap: 1rem; align-items: flex-start;
    text-decoration: none;
    padding: .75rem;
    border: 1px solid var(--rule); border-radius: var(--r);
    transition: border-color .15s;
}
.fichaautor-libro:hover { border-color: var(--accent); }
.fichaautor-libro img {
    width: 60px; height: 90px;
    object-fit: cover; border-radius: var(--r);
    box-shadow: var(--sh); flex-shrink: 0;
}
.fichaautor-libro-titulo {
    font-size: .9rem; font-weight: 500; color: var(--ink);
    line-height: 1.35; margin-bottom: .3rem;
}
.fichaautor-libro:hover .fichaautor-libro-titulo { color: var(--accent); }
.fichaautor-libro-fecha {
    font-size: .78rem; color: var(--ink-mute);
}

/* Responsive */
@media (max-width: 700px) {
    .fichaautor { grid-template-columns: 1fr; }
    .fichaautor-aside { margin-bottom: 1.5rem; }
    .fichaautor-foto-wrap { width: 130px; height: 130px; }
}

/* ══════════════════════════════════════════════════════════════════
   AUTORES — TARJETA Y GRID
   ══════════════════════════════════════════════════════════════════ */
.autores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
}
.autor-card {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    text-decoration: none;
}
.autor-card-foto {
    width: 90px; height: 90px;
    border-radius: 50%; overflow: hidden;
    box-shadow: var(--sh);
    background: var(--paper-2);
    flex-shrink: 0;
    transition: transform .22s, box-shadow .22s;
}
.autor-card:hover .autor-card-foto {
    transform: translateY(-3px);
    box-shadow: var(--sh-lg);
}
.autor-card-foto img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top;
}
.autor-card-nombre {
    font-size: .78rem; color: var(--ink);
    margin-top: .5rem; line-height: 1.3;
    font-weight: 500;
}
.autor-card:hover .autor-card-nombre { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════
   PORTADA — BANNER DESLIZANTE
   ══════════════════════════════════════════════════════════════════ */
.banner {
    position: relative; overflow: hidden;
    background: var(--ink); height: 480px;
}
.banner-track { position: relative; width: 100%; height: 100%; }
.banner-slide {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity .6s ease;
    pointer-events: none;
}
.banner-slide.activo { opacity: 1; pointer-events: auto; }
.banner-bg {
    position: absolute; inset: -20px;
    background-size: cover; background-position: center;
    filter: blur(18px) brightness(.35) saturate(.8);
    transform: scale(1.05);
}
.banner-contenido {
    position: relative; z-index: 1;
    max-width: 1100px; margin: 0 auto; height: 100%;
    display: flex; align-items: center;
    gap: 3rem; padding: 2.5rem 1.5rem;
}
.banner-mockup { flex-shrink: 0; position: relative; display: block; width: 160px; }
.banner-mockup img {
    width: 100%; border-radius: 3px;
    box-shadow: -8px 8px 24px rgba(0,0,0,.6), 2px 0 0 rgba(255,255,255,.1);
    position: relative; z-index: 1;
}
.banner-mockup-sombra {
    position: absolute; bottom: -8px; left: 4px; right: 4px;
    height: 20px; background: rgba(0,0,0,.4);
    filter: blur(8px); border-radius: 50%;
}
.banner-texto { color: #fff; flex: 1; }
.banner-sello {
    font-size: .72rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--accent-2, #c8901a); margin-bottom: .5rem;
}
.banner-titulo {
    font-family: var(--serif);
    font-size: 2rem; font-weight: 600; line-height: 1.2; margin-bottom: .5rem;
}
.banner-titulo a { color: #fff; }
.banner-titulo a:hover { text-decoration: underline; }
.banner-subtitulo {
    font-family: var(--serif); font-style: italic;
    font-size: 1rem; color: rgba(255,255,255,.75); margin-bottom: .75rem;
}
.banner-extracto {
    font-size: .88rem; color: rgba(255,255,255,.65);
    line-height: 1.6; max-width: 50ch; margin-bottom: 1.2rem;
}
.banner-cta {
    display: inline-block; padding: .5rem 1.2rem;
    background: var(--accent); color: #fff;
    border-radius: var(--r); font-size: .82rem; font-weight: 500;
    transition: filter .15s;
}
.banner-cta:hover { filter: brightness(.88); }
.banner-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer; transition: background .15s;
}
.banner-btn:hover { background: rgba(255,255,255,.25); }
.banner-btn svg { width: 18px; height: 18px; }
.banner-btn-prev { left: 1rem; }
.banner-btn-next { right: 1rem; }
.banner-dots {
    position: absolute; bottom: 1rem; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: .4rem; z-index: 10;
}
.banner-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.35);
    border: none; cursor: pointer;
    transition: background .2s, transform .2s;
}
.banner-dot.activo { background: #fff; transform: scale(1.2); }

/* ══════════════════════════════════════════════════════════════════
   PORTADA — SECCIONES
   ══════════════════════════════════════════════════════════════════ */
.portada-seccion { margin-bottom: 3rem; }
.portada-seccion-tit {
    font-family: var(--serif);
    font-size: 1.3rem; font-weight: 600;
    color: var(--ink); margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: .7rem;
}
.portada-seccion-tit::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* ══════════════════════════════════════════════════════════════════
   PORTADA — BOTÓN CATÁLOGO Y SCROLL LOADER
   ══════════════════════════════════════════════════════════════════ */
.btn-catalogo {
    display: inline-block; padding: .7rem 2rem;
    border: 2px solid var(--accent); border-radius: var(--r);
    color: var(--accent); font-size: .88rem; font-weight: 500;
    letter-spacing: .04em; transition: background .15s, color .15s;
}
.btn-catalogo:hover { background: var(--accent); color: #fff; }
.scroll-loader {
    display: flex; justify-content: center;
    gap: .4rem; padding: 1.5rem 0;
}
.scroll-loader-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent); opacity: .3;
    animation: pulso .8s ease-in-out infinite;
}
.scroll-loader-dot:nth-child(2) { animation-delay: .15s; }
.scroll-loader-dot:nth-child(3) { animation-delay: .3s; }
@keyframes pulso {
    0%, 100% { opacity: .3; transform: scale(1); }
    50%       { opacity: 1;  transform: scale(1.2); }
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — BANNER
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .ficha { grid-template-columns: 1fr; }
    .catalogo-grid { grid-template-columns: repeat(3, 1fr); }
    .novedades-grid { grid-template-columns: repeat(3, 1fr); }
    .relacionados-grid { grid-template-columns: repeat(4, 1fr); }
    .pie-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .cab-search input { width: 140px; }
    .banner { height: auto; min-height: 320px; }
    .banner-mockup { width: 110px; }
    .banner-titulo { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .cab-nav { display: none; }
    .catalogo-grid { grid-template-columns: repeat(2, 1fr); }
    .novedades-grid { grid-template-columns: repeat(2, 1fr); }
    .relacionados-grid { grid-template-columns: repeat(3, 1fr); }
    .pie-inner { grid-template-columns: 1fr; }
    .titulo-libro { font-size: 1.75rem; }
    .bio-bloque { flex-direction: column; }
    .cab-search input { width: 110px; }
    .banner-mockup { display: none; }
    .banner-titulo { font-size: 1.3rem; }
    .banner-extracto { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   ANIMACIONES
   ══════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-entrada { animation: fadeUp .45s ease both; }
.anim-entrada-2 { animation: fadeUp .45s ease .09s both; }
.anim-entrada-3 { animation: fadeUp .45s ease .18s both; }