/* =====================================================================
   Tipografías alojadas aquí mismo (nada se pide a Google)
   Playfair Display + Lora · subconjuntos latino y latino extendido
   ===================================================================== */

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora-400-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/lora-500-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/lora-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/lora-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/lora-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/lora-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/lora-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/lora-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-display-500-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-display-500-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-600-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-600-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-display-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-display-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/playfair-display-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/playfair-display-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/playfair-display-900.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =====================================================================
   Andrés Cortés Caballero — Hoja de estilos
   Estilo: literario clásico (papel, tinta, serif)
   ===================================================================== */

/* ---------- Variables ---------- */
:root {
  --paper:      #f8f4ec;
  --paper-2:    #f1e9da;
  --paper-3:    #eae0cd;
  --ink:        #191613;
  --ink-2:      #4b443c;
  --ink-3:      #7a7166;
  --line:       #e2d8c5;
  --line-strong:#cfc2a9;
  --accent:     #8a2b30;   /* rojo tinta profundo */
  --accent-2:   #a9834b;   /* oro viejo */
  --shadow-sm:  0 1px 2px rgba(25,22,19,.06), 0 2px 8px rgba(25,22,19,.05);
  --shadow-md:  0 10px 30px -12px rgba(25,22,19,.28);
  --shadow-lg:  0 30px 60px -25px rgba(25,22,19,.45);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --body:  "Lora", Georgia, "Times New Roman", serif;

  --container: 1160px;
  --radius: 4px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  font-size: clamp(1rem, .95rem + .25vw, 1.075rem);
  line-height: 1.75;
  color: var(--ink-2);
  background-color: var(--paper);
  /* textura de papel sutil */
  background-image:
    radial-gradient(circle at 15% 12%, rgba(169,131,75,.05), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(138,43,48,.04), transparent 45%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--accent); color: #fff; }

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

/* ---------- Tipografía utilitaria ---------- */
.kicker {
  font-family: var(--body);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.kicker--accent { color: var(--accent); }
.kicker--light  { color: rgba(248,244,236,.7); }

.section-title {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.01em;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, gap .25s;
}
.link-arrow:hover { border-color: var(--accent); gap: .7em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .82em 1.6em;
  font-family: var(--body);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform .2s, background-color .25s, color .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent); box-shadow: var(--shadow-md); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #fff; }

.btn--outline-light { border-color: rgba(248,244,236,.4); color: var(--paper); }
.btn--outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* =====================================================================
   CABECERA
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,244,236,.82);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .95rem 0;
}

.brand { display: inline-flex; align-items: baseline; gap: .5ch; }
.brand__mark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.28rem;
  color: var(--accent);
  letter-spacing: .01em;
}
.brand__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--ink);
  letter-spacing: .04em;
}

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__link {
  position: relative;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-2);
  padding: .35rem 0;
  transition: color .2s;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .28s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

.nav__link--cta {
  border: 1px solid var(--line-strong);
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  color: var(--ink);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* botón hamburguesa */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .4rem; }
.nav-toggle span {
  width: 24px; height: 2px; background: var(--ink);
  transition: transform .3s, opacity .3s;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 7vw, 7rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 900;
  color: var(--ink);
  font-size: clamp(3rem, 1.6rem + 7vw, 6rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: .6rem 0 1.3rem;
}
.hero__lead {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.28rem);
  color: var(--ink-2);
  max-width: 34ch;
  line-height: 1.65;
}
.hero__lead em { font-style: italic; color: var(--ink); }
.hero__lead strong { color: var(--accent); font-weight: 600; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

.hero__stores {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__stores li { position: relative; }
.hero__stores li:not(:last-child)::after {
  content: "";
  position: absolute; right: -.75rem; top: 50%;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--line-strong);
  transform: translateY(-50%);
}

/* Retrato */
.hero__media { position: relative; }
.hero__portrait picture { display: block; }
.hero__portrait {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-3);
}
.hero__portrait::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  pointer-events: none;
}
.hero__portrait img {
  width: 100%;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  object-position: center 28%;
  filter: saturate(.92) contrast(1.02);
}

/* placa de premio flotante */
.hero__badge {
  position: absolute;
  left: -1.6rem;
  bottom: -1.6rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 17rem;
}
.hero__badge-star { color: var(--accent-2); font-size: 1.4rem; line-height: 1; }
.hero__badge-text { font-size: .78rem; line-height: 1.45; letter-spacing: .02em; color: rgba(248,244,236,.82); }
.hero__badge-text strong {
  display: block;
  font-family: var(--serif);
  font-size: .98rem;
  color: #fff;
  letter-spacing: .01em;
}

/* =====================================================================
   VÍDEO DE PORTADA
   ===================================================================== */
.clip {
  background: var(--ink);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.clip__video {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.clip__video video { width: 100%; height: auto; display: block; }
.clip__caption {
  max-width: 62ch;
  margin: 1.2rem auto 0;
  text-align: center;
  font-family: Lora, Georgia, serif;
  font-style: italic;
  font-size: .95rem;
  line-height: 1.6;
  color: rgba(248, 244, 236, .74);
}

/* =====================================================================
   DESTACADO
   ===================================================================== */
.featured {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.featured__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.featured__cover {
  position: relative;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  overflow: hidden;
  transform: rotate(-1.5deg);
  transition: transform .4s ease;
}
.featured__cover:hover { transform: rotate(0deg) scale(1.01); }
.featured__cover img { width: 100%; }

.featured__banner {
  grid-column: 1 / -1;
  margin: 0 0 clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.featured__banner img { width: 100%; display: block; }

.featured__body .section-title { margin: .5rem 0 .8rem; }
.featured__meta {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.3rem;
}
.featured__text { max-width: 52ch; color: var(--ink-2); }
.featured__text strong { color: var(--accent); }

/* =====================================================================
   SECCIONES GENÉRICAS
   ===================================================================== */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section--tint { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head .section-title { margin-top: .5rem; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.section-intro { margin-top: 1rem; color: var(--ink-3); }

/* ---------- Rejilla de libros ---------- */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
}
.book__link {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.book__link:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.book__cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform .5s ease;
}
.book__link:hover .book__cover { transform: scale(1.04); }

.book__tag {
  position: absolute;
  top: .7rem; left: .7rem;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 2px;
}
.book__tag--award { background: var(--accent); }

.book__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
  margin-top: 1rem;
}
.book__genre {
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: .25rem;
}

/* =====================================================================
   SOBRE MÍ
   ===================================================================== */
.about { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.about__inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media img {
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  filter: grayscale(1) contrast(1.03);
  transition: filter .5s;
}
.about__media img:hover { filter: grayscale(0); }
.about__media::before {
  content: "";
  position: absolute; inset: -14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  pointer-events: none;
}
.about__body .section-title { margin: .5rem 0 1.2rem; }
.about__body p { max-width: 58ch; }
.about__body p + p { margin-top: 1rem; }

.awards { margin: 1.8rem 0; border-top: 1px solid var(--line); }
.awards li {
  display: flex;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.awards li span {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--accent);
  min-width: 3.2rem;
}
.awards em { color: var(--ink-3); font-style: italic; }

/* ---------- Relatos (lista) ---------- */
.readings { border-top: 1px solid var(--line-strong); }
.readings li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.readings a {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  color: var(--ink);
  padding: .95rem 0;
  transition: color .2s, padding-left .25s;
  flex: 1;
}
.readings li:hover a { color: var(--accent); padding-left: .6rem; }
.readings span {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- Blog ---------- */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.4rem);
}
.post__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.post__link:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.post__date {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.post__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: .7rem;
}
.post__excerpt { font-size: .95rem; color: var(--ink-3); flex: 1; margin-bottom: 1.3rem; }

/* =====================================================================
   CTA / CONTACTO
   ===================================================================== */
.cta {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(169,131,75,.16), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(138,43,48,.28), transparent 50%);
}
.cta__inner { position: relative; max-width: 46rem; text-align: center; margin-inline: auto; }
.cta__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem);
  color: #fff;
  margin: .8rem 0 1.2rem;
}
.cta__text { color: rgba(248,244,236,.78); margin-bottom: 2.2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

/* =====================================================================
   PIE
   ===================================================================== */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 3rem 0; }
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__brand .brand__name { font-size: 1.15rem; }
.footer__tag { font-size: .85rem; color: var(--ink-3); margin-top: .5rem; max-width: 30ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.footer__nav a {
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); transition: color .2s;
}
.footer__nav a:hover { color: var(--accent); }
.footer__legal { font-size: .78rem; color: var(--ink-3); width: 100%; padding-top: 1.8rem; margin-top: .5rem; border-top: 1px solid var(--line); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 520px; }
  .hero__badge { left: auto; right: 1rem; bottom: -1.2rem; }
  .featured__inner { grid-template-columns: 220px 1fr; }
  .about__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 300px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 6rem 2rem 2rem;
    background: var(--paper);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 90;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
  .nav__link--cta { margin-top: 1.2rem; text-align: center; border: 1px solid var(--ink); }

  .nav-toggle { display: flex; z-index: 110; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .featured__inner { grid-template-columns: 1fr; }
  .featured__cover { max-width: 230px; margin-inline: auto; }
  .section-head--row { align-items: flex-start; }
}

@media (max-width: 520px) {
  .books { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .hero__badge { position: static; margin-top: 1.2rem; max-width: none; }
  .readings li { flex-direction: column; gap: 0; padding-bottom: .6rem; }
  .footer__inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
