/* ===== Gildo · Tokens y estilos compartidos ===== */
:root {
  --c-bg:        #FAF6F0;
  --c-bg-2:      #F2EBDC;
  --c-ink:       #3B2F2F;
  --c-ink-soft:  #6B5C56;
  --c-ink-mute:  #998a82;
  --c-line:      #E3D9C7;
  --c-olive:     #556B2F;
  --c-olive-dk:  #2C3A1A;
  --c-sand:      #C4A882;
  --c-terra:     #B7654B;

  --f-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --f-body:    'Source Serif 4', 'Lora', Georgia, serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --paper-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.18 0 0 0 0 0.18 0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

html, body { background: var(--c-bg); color: var(--c-ink); margin: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
/* Las secciones tienen padding-top generoso (96-120px). Hacemos que el anclaje
   "entre" un poco en la sección para que el contenido (label + título) quede
   cerca del borde superior del viewport, no flotando muy abajo. */
section[id] { scroll-margin-top: -60px; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.gildo-site {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  position: relative;
  /* overflow: visible — necesario para que .sec-bleed pueda extender
     el color de la sección más allá del ancho del site. El recorte
     horizontal lo hace html/body con overflow-x: clip. */
}
.gildo-site.with-grain::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--paper-grain);
  opacity: var(--grain-opacity, 0.5);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.gildo-site > * { position: relative; z-index: 2; }

/* ============================================================
   FULL-BLEED COLORED SECTIONS
   Cuando una sección tiene un color de fondo distinto al del
   site, ese color se extiende de borde a borde del viewport,
   pero el contenido interno conserva sus márgenes/padding.
   Funciona heredando el background del propio elemento en un
   pseudo absoluto de 100vw centrado.
   ============================================================ */
.sec-bleed { position: relative; isolation: isolate; }
.sec-bleed::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: inherit;
  z-index: -1;
  pointer-events: none;
}
/* El footer siempre tiene color distinto: bleed por defecto */
.footer { position: relative; isolation: isolate; }
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: inherit;
  z-index: -1;
  pointer-events: none;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px 64px;
  border-bottom: 1px solid var(--c-line);
  position: relative;
  z-index: 50;
}
.nav .brand {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-ink);
  text-decoration: none;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0; padding: 0;
  font-size: 20px;
  color: var(--c-ink-soft);
}
.nav ul a {
  color: inherit; text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}
.nav ul a:hover { color: var(--c-olive); }

/* Decorative items in the mobile slide-out menu — hidden on desktop */
.nav-menu-header,
.nav-menu-footer,
.nav-close,
.nav-backdrop { display: none; }

.sec { padding: 96px 64px; }
.sec-label {
  font-family: var(--f-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--c-ink-mute);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 14px;
}
.sec-label::before {
  content: ""; width: 28px; height: 1px; background: var(--c-sand);
}
.sec-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0 0 32px;
  color: var(--c-ink);
}
.sec-title em { font-style: italic; color: var(--c-olive); }
.lede {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  max-width: 62ch;
}

.portrait {
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(135deg, rgba(85,107,47,0.05) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #ECE2CF 0%, #DCD0B8 100%);
  border: 1px solid var(--c-line);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--c-ink-mute);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.portrait::after {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(59,47,47,0.08);
  pointer-events: none;
}
.portrait .ph {
  background: var(--c-bg);
  padding: 8px 14px;
  border: 1px solid var(--c-line);
  z-index: 1;
}

.cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, var(--cv-1, #E8DEC8) 0%, var(--cv-2, #C9B991) 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 14px 32px -16px rgba(59,47,47,0.35),
    0 2px 6px -2px rgba(59,47,47,0.2);
  color: var(--c-ink);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(59,47,47,0.08);
  position: relative;
}
.cover .cv-rule { height: 1px; background: currentColor; opacity: 0.3; }
.cover .cv-title {
  font-family: var(--f-display);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 500;
  font-style: italic;
}
.cover .cv-meta {
  display: flex; justify-content: space-between; align-items: end;
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.cover .cv-author {
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}
.cover.viejos   { --cv-1: #E8DEC8; --cv-2: #B7654B; color: #2C2018; }
.cover.honestos { --cv-1: #DDD2BB; --cv-2: #556B2F; color: #1F2812; }
.cover.victoria { --cv-1: #E1D6BD; --cv-2: #2C3A1A; color: #FAF6F0; }

.cover.lg .cv-title { font-size: 56px; }
.cover.lg .cv-author { font-size: 22px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-family: var(--f-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-decoration: none;
  border: 1px solid currentColor;
  color: var(--c-ink);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:hover { background: var(--c-ink); color: var(--c-bg); }
.btn-terra { border-color: var(--c-terra); color: var(--c-terra); }
.btn-terra:hover { background: var(--c-terra); color: var(--c-bg); }

/* Botones distribuidor */
.buy-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 16px 22px;
  text-decoration: none;
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 14px;
  transition: all 0.2s ease;
  min-width: 220px;
}
.buy-btn:hover {
  border-color: var(--c-terra);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px rgba(59,47,47,0.25);
}
.buy-btn .buy-logo {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--c-olive);
  flex-shrink: 0;
}
.buy-btn .buy-meta { display: flex; flex-direction: column; line-height: 1.15; }
.buy-btn .buy-eyebrow {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
  margin-bottom: 4px;
}
.buy-btn .buy-name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 19px;
  color: var(--c-ink);
}

.footer {
  background: var(--c-olive-dk);
  color: #E8DEC8;
  padding: 56px 64px 40px;
  font-size: 13px;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: end;
  border-bottom: 1px solid rgba(232,222,200,0.18);
  padding-bottom: 32px;
  margin-bottom: 28px;
}
.footer .brand-l {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 400;
  color: #FAF6F0;
}
.footer .socials { display: flex; gap: 18px; }
.footer .socials a {
  width: 44px; height: 44px;
  border: 1px solid rgba(232,222,200,0.3);
  display: grid; place-items: center;
  color: #E8DEC8;
  text-decoration: none;
  transition: all 0.2s;
}
.footer .socials a:hover {
  border-color: #FAF6F0;
  background: rgba(250,246,240,0.05);
}
.footer .meta {
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232,222,200,0.55);
}
.footer .meta a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(232,222,200,0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.footer .meta a:hover {
  color: #E8DEC8;
  text-decoration-color: currentColor;
}

.stars { color: var(--c-terra); letter-spacing: 0.14em; font-size: 14px; }

.rule { height: 1px; background: var(--c-line); border: 0; margin: 0; }
.rule-dot {
  display: flex; align-items: center; gap: 18px;
  color: var(--c-sand);
  font-size: 8px;
}
.rule-dot::before, .rule-dot::after {
  content: ""; flex: 1; height: 1px; background: var(--c-line);
}

/* Review card */
.review {
  border-top: 1px solid var(--c-line);
  padding-top: 28px;
}
.review .r-stars { margin-bottom: 14px; }
.review .r-text {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.45;
  color: var(--c-ink);
  margin: 0 0 20px;
}
.review .r-author {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-ink-mute);
}

/* ============================================================
   FORMULARIO DE CONTACTO (sobre fondo verde oliva oscuro)
   ============================================================ */
.contact-form {
  margin-top: 24px;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-field-full { grid-column: 1 / -1; }
.contact-field > span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(232, 222, 200, 0.65);
}
.contact-field input,
.contact-field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(232, 222, 200, 0.25);
  color: #FAF6F0;
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  padding: 8px 0 14px;
  resize: none;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.contact-field textarea {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 70px;
  padding-top: 14px;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(232, 222, 200, 0.35);
  font-style: italic;
}
.contact-field input:focus,
.contact-field textarea:focus {
  border-bottom-color: var(--c-terra);
}
.contact-field input:disabled,
.contact-field textarea:disabled {
  opacity: 0.5;
  cursor: wait;
}

.contact-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
}
.contact-form-note {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(232, 222, 200, 0.45);
  margin: 0;
  max-width: 38ch;
  line-height: 1.6;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-family: var(--f-body);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  border: 1px solid var(--c-terra);
  background: var(--c-terra);
  color: #FAF6F0;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.contact-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--c-terra);
}
.contact-submit:disabled {
  opacity: 0.5;
  cursor: wait;
}

.contact-form-error {
  margin: 24px 0 0;
  padding: 14px 18px;
  background: rgba(183, 101, 75, 0.15);
  border-left: 2px solid var(--c-terra);
  font-family: var(--f-body);
  font-size: 14px;
  color: #FAF6F0;
}

/* Estado: enviado */
.contact-form-sent {
  margin-top: 24px;
  padding: 56px 48px;
  border: 1px solid rgba(232, 222, 200, 0.25);
  text-align: center;
}
.contact-form-sent-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--c-sand);
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  font-size: 28px;
  color: var(--c-sand);
}
.contact-form-sent h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.1;
  color: #FAF6F0;
  margin: 0 0 14px;
}
.contact-form-sent p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(232, 222, 200, 0.8);
  max-width: 44ch;
  margin: 0 auto 28px;
}
.contact-form-reset {
  background: transparent;
  border: 1px solid rgba(232, 222, 200, 0.4);
  color: #FAF6F0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.contact-form-reset:hover {
  border-color: var(--c-terra);
  color: var(--c-terra);
}

@media (max-width: 768px) {
  .contact-form-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-form-foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .contact-submit { justify-content: center; }
  .contact-form-sent { padding: 40px 24px; }
  .contact-form-sent h3 { font-size: 32px; }
  .contact-field input,
  .contact-field textarea { font-size: 20px; }
}

/* ============================================================
   EVENTOS — card destacada, cards por año y carrusel
   (equivalen a los estilos inline del prototipo React)
   ============================================================ */
.event-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  box-shadow: 0 24px 60px -40px rgba(59,47,47,0.35);
  min-height: 460px;
}
.event-feature-text {
  padding: 56px 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.event-badge {
  display: inline-flex;
  padding: 6px 14px;
  color: var(--c-bg);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.event-book-tag {
  display: inline-flex;
  padding: 4px 10px;
  border: 1px solid var(--c-terra);
  color: var(--c-terra);
  font-family: var(--f-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
}

.past-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.past-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -28px rgba(59,47,47,0.3);
}

/* Carrusel de imágenes por evento */
.carousel {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-2);
}
.carousel-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel-ph {
  width: 100%; height: 100%;
  position: relative;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}
.carousel-ph .ph-glow { position: absolute; inset: 0; }
.carousel-ph .ph-icon { position: absolute; opacity: 0.85; }
.carousel-ph .ph-text {
  font-family: var(--f-display);
  font-style: italic;
  color: rgba(255,255,255,0.94);
  text-align: center;
  padding: 0 24px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.carousel-ph .ph-date {
  display: block;
  margin-top: 10px;
  opacity: 0.8;
  font-style: normal;
  font-family: var(--f-mono);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.car-ctrl {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; gap: 8px; align-items: center;
  background: rgba(44,58,26,0.85);
  padding: 8px 12px;
}
.car-btn {
  width: 26px; height: 26px;
  background: transparent;
  border: 1px solid rgba(232,222,200,0.4);
  color: rgba(232,222,200,0.95);
  font-family: var(--f-display);
  font-size: 18px; line-height: 1; padding: 0;
  cursor: pointer;
}
.car-count {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em;
  color: rgba(232,222,200,0.9);
  padding: 0 6px;
}
.car-dots {
  position: absolute; right: 16px; bottom: 18px;
  display: flex; gap: 6px; max-width: 55%;
  flex-wrap: wrap; justify-content: flex-end;
}
.car-dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.55);
  cursor: pointer; transition: width 0.2s;
}
.car-dot.active { width: 22px; background: var(--c-terra); }

/* ============================================================
   MOBILE — breakpoints
   ============================================================ */

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--c-line);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1px;
  background: var(--c-ink);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* Tablet */
@media (max-width: 1024px) {
  .nav { padding: 22px 48px; }
  .sec { padding: 80px 48px; }
  /* Libros: a tres columnas no quepan tan anchos en tablet */
  .books-grid { max-width: 720px !important; gap: 48px !important; }
  .footer { padding: 48px 40px 32px; }
  .sec-title { font-size: 48px; }
  .m-pic-h { height: 420px !important; min-height: 0 !important; }
}

/* Hero quote + CTA: en pantallas estrechas, la frase ocupa todo el ancho y el
   botón pasa debajo, alineado a la izquierda. */
@media (max-width: 900px) {
  .hero-quote-row {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    align-items: start !important;
  }
  .hero-quote-row .hero-quote-cta {
    text-align: left !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  body { font-size: 15px; }

  /* Navbar mobile */
  .nav {
    padding: 18px 36px;
    align-items: center;
  }
  .nav .brand { font-size: 20px; }
  .nav-toggle { display: block; }
  .nav ul {
    position: fixed;
    top: 0; right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--c-bg);
    border-left: 1px solid var(--c-line);
    flex-direction: column;
    gap: 0;
    padding: 88px 32px 32px;
    margin: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    box-shadow: -20px 0 40px -20px rgba(59,47,47,0.2);
  }
  .nav ul.open { transform: translateX(0); }
  .nav ul li {
    border-bottom: 1px solid var(--c-line);
    padding: 18px 0;
  }
  .nav ul a {
    font-family: var(--f-display);
    font-size: 22px;
    font-style: italic;
    color: var(--c-ink);
  }

  /* Slide-out menu — close button (X) */
  .nav-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  .nav-close:hover {
    border-color: var(--c-terra);
    background: rgba(0,0,0,0.02);
  }
  .nav-close span {
    position: absolute;
    width: 18px;
    height: 1.5px;
    background: var(--c-ink);
    border-radius: 2px;
  }
  .nav-close span:nth-child(1) { transform: rotate(45deg); }
  .nav-close span:nth-child(2) { transform: rotate(-45deg); }

  /* Slide-out menu — decorative header */
  .nav ul .nav-menu-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: none;
    padding: 0 0 28px;
    margin-bottom: 8px;
    position: relative;
  }
  .nav-menu-mark {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 56px;
    line-height: 0.9;
    color: var(--c-terra);
    letter-spacing: -0.02em;
  }
  .nav-menu-sub {
    font-family: var(--f-sans, var(--f-display));
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--c-ink-soft);
    margin-top: 10px;
  }
  .nav-menu-rule {
    display: block;
    width: 36px;
    height: 1px;
    background: var(--c-terra);
    margin-top: 18px;
    opacity: 0.6;
  }

  /* Slide-out menu — decorative footer */
  .nav ul .nav-menu-footer {
    display: block;
    border-bottom: none;
    padding: 28px 0 0;
    margin-top: auto;
  }
  .nav-menu-quote {
    font-family: var(--f-display);
    font-style: italic;
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-ink-soft);
    display: block;
    padding-top: 20px;
    border-top: 1px solid var(--c-line);
  }
  .nav-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(44,58,26,0.4);
    z-index: 90;
  }
  .nav-backdrop.open { display: block; }

  /* Sections */
  .sec { padding: 56px 36px; }
  .footer { padding: 40px 36px 28px; }
  .sec-title { font-size: 36px; line-height: 1.05; margin-bottom: 24px; }
  .sec-label { font-size: 10px; letter-spacing: 0.28em; }
  .lede { font-size: 16px; }

  /* Stack all 2-col grids to 1-col */
  .gildo-site [style*="gridTemplateColumns"][style*="1fr"]:not(.no-mobile-stack),
  .mobile-stack { display: block !important; }

  /* Generic helpers — apply via className */
  .m-stack { display: flex !important; flex-direction: column !important; gap: 32px !important; }
  .m-pad   { padding: 56px 36px !important; }
  .m-pad-y { padding-top: 56px !important; padding-bottom: 56px !important; }
  .m-pad-x { padding-left: 36px !important; padding-right: 36px !important; }

  /* Hero scale-down */
  .m-hero-h1 { font-size: 96px !important; line-height: 0.9 !important; }
  .m-hero-quote { font-size: 22px !important; line-height: 1.3 !important; }
  .m-h2 { font-size: 36px !important; line-height: 1.05 !important; }
  .m-h2-lg { font-size: 48px !important; line-height: 0.95 !important; }
  .m-h3 { font-size: 24px !important; }
  .m-text { font-size: 15px !important; }
  .m-cols-1 { grid-template-columns: 1fr !important; gap: 32px !important; }
  .m-cols-2 { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
  /* Libros: en móvil/tablet vertical, una sola columna pero con la portada acotada
     para que no ocupe todo el ancho del viewport */
  .books-grid {
    grid-template-columns: 1fr !important;
    max-width: 320px !important;
    gap: 56px !important;
  }
  .m-bio-cols { column-count: 1 !important; }
  .m-pic-h { height: 380px !important; min-height: 0 !important; }

  /* Footer */
  .footer-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer .brand-l { font-size: 28px; }
  .footer .meta { flex-direction: column; gap: 8px; font-size: 10px; }

  /* Botones distribuidor */
  .buy-btn { min-width: 0; width: 100%; padding: 14px 18px; }
  .buy-btn .buy-name { font-size: 17px; }

  /* Cover ratio guard */
  .cover.lg .cv-title { font-size: 36px; }
  .cover.lg .cv-author { font-size: 16px; }

  /* Review */
  .review .r-text { font-size: 18px; }

  /* Eventos paginación */
  .m-pager-stack { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }

  /* Feature event card mobile */
  .event-feature { grid-template-columns: 1fr !important; }
  .event-feature-text { padding: 32px 24px 32px !important; }
}

/* Smaller phones */
@media (max-width: 420px) {
  .sec { padding: 48px 28px; }
  .nav { padding: 16px 28px; }
  /* En teléfonos pequeños, una columna con la portada un poco más acotada */
  .books-grid {
    grid-template-columns: 1fr !important;
    max-width: 260px !important;
    gap: 48px !important;
  }
  .footer { padding: 36px 28px 24px; }
  .m-pad   { padding: 48px 28px !important; }
  .m-pad-x { padding-left: 28px !important; padding-right: 28px !important; }
  .m-hero-h1 { font-size: 76px !important; }
  .sec-title { font-size: 32px; }
  .event-feature-text { padding: 28px 28px !important; }
}

/* ============================================================
   ANIMACIONES DE ENTRADA
   ============================================================ */

/* Estado inicial — invisible y desplazado */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.reveal-up    { transform: translateY(28px); }
.reveal.reveal-left  { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.reveal-fade  { transform: none; }
.reveal.reveal-scale { transform: scale(0.96); transform-origin: center; }

/* Cuando entra en viewport */
.reveal.is-in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Delays escalonados */
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
.reveal[data-delay="6"] { transition-delay: 0.48s; }

/* Hero — animación más expresiva al cargar */
@keyframes heroLetterRise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-rise {
  animation: heroLetterRise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.hero-rise[data-delay="1"] { animation-delay: 0.1s; }
.hero-rise[data-delay="2"] { animation-delay: 0.25s; }
.hero-rise[data-delay="3"] { animation-delay: 0.4s; }
.hero-rise[data-delay="4"] { animation-delay: 0.55s; }
.hero-rise[data-delay="5"] { animation-delay: 0.7s; }

@keyframes heroQuiet {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.hero-fade { animation: heroQuiet 1.4s ease-out both; animation-delay: 0.2s; }

/* Línea horizontal decorativa que se dibuja */
@keyframes ruleDraw {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.rule-draw { transform-origin: left center; animation: ruleDraw 1s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: 0.6s; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in,
  .hero-rise, .hero-fade, .rule-draw {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
