/* ==========================================================================
   ALMÁCIGO MULTICOLOR — Sistema de Diseño Editorial Multicolor (v2.0)
   Inspirado en el logotipo botánico multicolor y las obras de taller.
   Compatible con sitio estático y tema WordPress + Smart Slider 3 + CF7.
   ========================================================================== */

:root {
  /* Superficies y tintas */
  --bg-paper: #fcf9f2;
  --bg-warm: #f5efe3;
  --bg-white: #ffffff;
  --ink: #1e1829;
  --ink-soft: #4e465b;
  --ink-muted: #6e657a;
  --border: #e5dccd;
  --border-strong: #c9bca7;

  /* Paleta multicolor extraída del logotipo */
  --purple: #7b358d;
  --purple-deep: #5a2269;
  --purple-soft: #f5ebf8;

  --green: #1e964b;
  --green-deep: #157338;
  --green-soft: #eaf7ef;

  --orange: #ec7d1c;
  --orange-soft: #fef2e6;

  --blue: #1496c4;
  --blue-soft: #e8f6fc;

  --red: #dc2435;
  --red-soft: #fdecef;

  --yellow: #f7cf45;
  --yellow-soft: #fff9de;

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout y elevación */
  --container: 1200px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 16px rgba(30, 24, 41, 0.06);
  --shadow-md: 0 14px 34px rgba(30, 24, 41, 0.09);
  --shadow-lg: 0 24px 56px rgba(30, 24, 41, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background-color: var(--bg-paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg-white);
  font-weight: 700;
  font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.section {
  padding: clamp(68px, 7.5vw, 112px) 0;
}

.section--tight {
  padding: clamp(44px, 5vw, 72px) 0;
}

.section--warm {
  background: var(--bg-warm);
}

.section--white {
  background: var(--bg-white);
}

.section--purple-soft {
  background: var(--purple-soft);
}

.section--green-soft {
  background: var(--green-soft);
}

.section--blue-soft {
  background: var(--blue-soft);
}

/* ==========================================================================
   Tipografía y encabezados
   ========================================================================== */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.6em;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.35rem);
  font-variation-settings: "SOFT" 60, "WONK" 1;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-variation-settings: "SOFT" 50, "WONK" 1;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.22;
}

h1 em,
h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
}

p {
  margin: 0 0 1.15em;
  color: var(--ink-soft);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.kicker-meta {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--purple);
}

.heading-accent {
  padding-left: 20px;
  border-left: 4px solid var(--purple);
}

.heading-accent--orange { border-left-color: var(--orange); }
.heading-accent--green { border-left-color: var(--green); }
.heading-accent--blue { border-left-color: var(--blue); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--bg-white);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.gallery-thumb--more::before {
  content: attr(data-more-label);
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(30, 24, 41, 0.68);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.gallery-thumb--more:hover::before {
  background: rgba(123, 53, 141, 0.78);
}

.gallery-thumb--hidden {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
}

.eyebrow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  flex: 0 0 auto;
}

.eyebrow--green { color: var(--green-deep); }
.eyebrow--green .eyebrow__dot { background: var(--green); }
.eyebrow--blue { color: #0e7296; }
.eyebrow--blue .eyebrow__dot { background: var(--blue); }
.eyebrow--orange { color: #b85b0c; }
.eyebrow--orange .eyebrow__dot { background: var(--orange); }
.eyebrow--red { color: #b61928; }
.eyebrow--red .eyebrow__dot { background: var(--red); }

.section-header {
  max-width: 720px;
  margin-bottom: clamp(32px, 4.5vw, 52px);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header--center .eyebrow {
  justify-content: center;
}

.section-header--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.multicolor-rule {
  display: flex;
  gap: 6px;
  width: 92px;
  height: 5px;
  margin-top: 16px;
}

.section-header--center .multicolor-rule {
  margin-inline: auto;
}

.multicolor-rule span {
  flex: 1;
  border-radius: var(--radius-pill);
}

.multicolor-rule span:nth-child(1) { background: var(--red); }
.multicolor-rule span:nth-child(2) { background: var(--orange); }
.multicolor-rule span:nth-child(3) { background: var(--yellow); }
.multicolor-rule span:nth-child(4) { background: var(--green); }
.multicolor-rule span:nth-child(5) { background: var(--blue); }
.multicolor-rule span:nth-child(6) { background: var(--purple); }

/* ==========================================================================
   Botones y enlaces
   ========================================================================== */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s var(--ease), background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--purple);
  color: var(--bg-white);
  box-shadow: 0 8px 20px rgba(123, 53, 141, 0.24);
}

.btn--primary:hover {
  background: var(--purple-deep);
  box-shadow: 0 10px 24px rgba(90, 34, 105, 0.3);
}

.btn--green {
  background: var(--green);
  color: var(--bg-white);
  box-shadow: 0 8px 20px rgba(30, 150, 75, 0.22);
}

.btn--green:hover {
  background: var(--green-deep);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(247, 207, 69, 0.32);
}

.btn--yellow:hover {
  background: #f2c224;
}

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn--outline:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-soft);
}

.btn--light {
  background: var(--bg-white);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--yellow);
  color: var(--ink);
}

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: var(--bg-white);
  border-color: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: var(--bg-white);
  color: var(--ink);
  border-color: var(--bg-white);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--purple);
  border-bottom: 2px solid rgba(123, 53, 141, 0.3);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
  color: var(--red);
  border-color: var(--red);
  gap: 10px;
}

/* ==========================================================================
   Header & Navegación con franja multicolor
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: rgba(252, 249, 242, 0.94);
  background-image: linear-gradient(
    90deg,
    var(--red) 0% 16.66%,
    var(--orange) 16.66% 33.33%,
    var(--yellow) 33.33% 50%,
    var(--green) 50% 66.66%,
    var(--blue) 66.66% 83.33%,
    var(--purple) 83.33% 100%
  );
  background-size: 100% 6px;
  background-position: top left;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header__inner {
  width: min(calc(100% - 48px), var(--container));
  min-height: 82px;
  padding-top: 6px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  transition: transform 0.3s var(--ease);
}

.brand:hover img {
  transform: rotate(-6deg) scale(1.04);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand__tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  background: var(--bg-warm);
  color: var(--ink);
}

.site-nav a.is-active {
  background: var(--purple-soft);
  color: var(--purple);
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: var(--purple);
  color: var(--bg-white);
  padding: 10px 20px;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  background: var(--purple-deep);
  color: var(--bg-white);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] span:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Slider (Smart Slider 3 Ready) — Inicio
   ========================================================================== */
.hero-slider-wrap {
  padding: 24px 0 36px;
  background:
    radial-gradient(circle at 8% 18%, rgba(247, 207, 69, 0.28), transparent 36%),
    radial-gradient(circle at 92% 20%, rgba(20, 150, 196, 0.16), transparent 38%),
    radial-gradient(circle at 75% 88%, rgba(123, 53, 141, 0.12), transparent 40%),
    var(--bg-paper);
}

.smartslider-slot {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(30, 24, 41, 0.08);
}

.hero-slides {
  position: relative;
  min-height: clamp(500px, 68vh, 640px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(32px, 5vw, 68px);
  opacity: 0;
  visibility: hidden;
  transform: scale(1.015);
  transition: opacity 0.65s var(--ease), transform 0.75s var(--ease), visibility 0.65s;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}

.hero-slide--collage {
  background: linear-gradient(125deg, #271a38 0%, #3d2154 55%, #55286e 100%);
}

.hero-slide--book {
  background: linear-gradient(125deg, #16372d 0%, #1d5742 58%, #287053 100%);
}

.hero-slide--exhibition {
  background: linear-gradient(125deg, #1b2c44 0%, #1d4a6e 58%, #1a698c 100%);
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  color: var(--bg-white);
}

.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-slide__content h1,
.hero-slide__content h2 {
  color: var(--bg-white);
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  margin-bottom: 18px;
}

.hero-slide__content h1 em,
.hero-slide__content h2 em {
  color: var(--yellow);
}

.hero-slide__content p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.3vw, 1.14rem);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-slide__media {
  position: relative;
  z-index: 2;
}

.hero-slide__frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
  background: var(--bg-white);
}

.hero-slide__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide__sticker {
  position: absolute;
  left: -14px;
  bottom: -14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: var(--shadow-md);
  transform: rotate(-3deg);
}

.hero-slider__controls {
  position: absolute;
  left: clamp(24px, 4vw, 68px);
  right: clamp(24px, 4vw, 68px);
  bottom: 20px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.hero-slider__dots {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hero-slider__dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: 0;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.25s ease;
}

.hero-slider__dot.is-active {
  width: 34px;
  background: var(--yellow);
}

.hero-slider__arrows {
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.hero-slider__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(15, 11, 24, 0.42);
  color: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-slider__arrow:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

/* Franja de datos clave en Inicio */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.stat-pill {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat-pill__badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.stat-pill--purple .stat-pill__badge { background: var(--purple-soft); color: var(--purple); }
.stat-pill--green .stat-pill__badge { background: var(--green-soft); color: var(--green-deep); }
.stat-pill--orange .stat-pill__badge { background: var(--orange-soft); color: #b85b0c; }
.stat-pill--blue .stat-pill__badge { background: var(--blue-soft); color: #0e7296; }

.stat-pill div strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.2;
}

.stat-pill div span {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ==========================================================================
   Page Hero (páginas interiores)
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero--paper {
  background:
    radial-gradient(circle at 88% 20%, rgba(247, 207, 69, 0.34), transparent 36%),
    radial-gradient(circle at 12% 85%, rgba(123, 53, 141, 0.12), transparent 35%),
    var(--bg-warm);
}

.page-hero--experience {
  background:
    linear-gradient(105deg, rgba(30, 24, 41, 0.9) 0%, rgba(71, 31, 87, 0.78) 55%, rgba(20, 120, 155, 0.56) 100%),
    url("assets/images/experiencia/exposicion-02.jpg") center / cover no-repeat;
  color: var(--bg-white);
  border-bottom: 0;
}

.page-hero--experience h1,
.page-hero--experience .lead,
.page-hero--experience .eyebrow {
  color: var(--bg-white);
}

.page-hero--experience h1 em {
  color: var(--yellow);
}

.page-hero--books {
  background:
    radial-gradient(circle at 90% 18%, rgba(30, 150, 75, 0.16), transparent 38%),
    radial-gradient(circle at 14% 82%, rgba(236, 125, 28, 0.16), transparent 38%),
    var(--bg-warm);
}

.page-hero__inner {
  max-width: 820px;
}

/* ==========================================================================
   Tarjetas y grillas
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.pillar-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  overflow: hidden;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-card--yellow::before { background: var(--orange); }
.pillar-card--green::before { background: var(--green); }
.pillar-card--purple::before { background: var(--purple); }
.pillar-card--blue::before { background: var(--blue); }
.pillar-card--red::before { background: var(--red); }

.pillar-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.pillar-card--yellow .pillar-card__num { background: var(--orange-soft); color: #b85b0c; }
.pillar-card--green .pillar-card__num { background: var(--green-soft); color: var(--green-deep); }
.pillar-card--purple .pillar-card__num { background: var(--purple-soft); color: var(--purple); }
.pillar-card--blue .pillar-card__num { background: var(--blue-soft); color: #0e7296; }
.pillar-card--red .pillar-card__num { background: var(--red-soft); color: #b61928; }

/* Feature Split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}

.split--reverse .split__media {
  order: 2;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.photo-frame--tall {
  aspect-ratio: 4 / 4.4;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(30, 24, 41, 0.84);
  color: var(--bg-white);
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   Quiénes Somos: Narrativa, Fundadores y Colaboradores
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.story-sticky {
  position: sticky;
  top: 108px;
}

.story-body p {
  font-size: 1.07rem;
  line-height: 1.78;
}

.story-callout {
  margin: 28px 0;
  padding: 24px 28px;
  border-radius: var(--radius-md);
  background: var(--purple-soft);
  border-left: 5px solid var(--purple);
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 1.9vw, 1.52rem);
  font-style: italic;
  color: var(--purple-deep);
  line-height: 1.45;
}

/* Fundadores */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.founder-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  transition: transform 0.28s var(--ease);
}

.founder-card:hover {
  transform: translateY(-5px);
}

.founder-card__photo {
  aspect-ratio: 4 / 4.2;
  overflow: hidden;
  background: var(--bg-warm);
}

.founder-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 14%;
  transition: transform 0.45s var(--ease);
}

.founder-card:hover .founder-card__photo img {
  transform: scale(1.03);
}

.founder-card__body {
  padding: 24px 28px 28px;
  position: relative;
}

.founder-card__role {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.founder-card:nth-child(1) .founder-card__role {
  background: var(--purple-soft);
  color: var(--purple);
}

.founder-card:nth-child(2) .founder-card__role {
  background: var(--green-soft);
  color: var(--green-deep);
}

.founder-card__body h3 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.founder-card__meta {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

/* Colaboradores (debajo de fundadores) */
.collaborators-section {
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.collaborators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.collab-card {
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.collab-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.collab-card__photo {
  aspect-ratio: 4 / 4.4;
  overflow: hidden;
  background: var(--bg-warm);
}

.collab-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.45s var(--ease);
}

.collab-card:hover .collab-card__photo img {
  transform: scale(1.04);
}

.collab-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.collab-card__tag {
  display: inline-block;
  width: max-content;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.collab-card--purple .collab-card__tag { background: var(--purple-soft); color: var(--purple); }
.collab-card--green .collab-card__tag { background: var(--green-soft); color: var(--green-deep); }
.collab-card--orange .collab-card__tag { background: var(--orange-soft); color: #b85b0c; }
.collab-card--blue .collab-card__tag { background: var(--blue-soft); color: #0e7296; }

.collab-card h3 {
  margin: 4px 0 2px;
  font-size: 1.22rem;
}

.collab-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.collab-banner {
  margin-top: 28px;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.collab-banner p {
  margin: 0;
  max-width: 720px;
  font-size: 0.95rem;
}

/* ==========================================================================
   Nuestra Experiencia: Filtros, Línea de Tiempo y Galería por Hito + Lightbox
   ========================================================================== */
.timeline-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.filter-pill.is-active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--bg-white);
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 36px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--red), var(--orange), var(--green), var(--blue), var(--purple));
}

.timeline-card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
}

.timeline-card[hidden] {
  display: none;
}

.timeline-card__dot {
  position: absolute;
  left: -35px;
  top: 30px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 5px solid var(--purple);
  box-shadow: 0 0 0 4px var(--bg-paper);
}

.timeline-card[data-year="2024"] .timeline-card__dot { border-color: var(--orange); }
.timeline-card[data-year="2025"] .timeline-card__dot { border-color: var(--blue); }
.timeline-card[data-year="2026"] .timeline-card__dot { border-color: var(--green); }

.timeline-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.year-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.timeline-card[data-year="2024"] .year-badge { background: var(--orange-soft); color: #b85b0c; }
.timeline-card[data-year="2025"] .year-badge { background: var(--blue-soft); color: #0e7296; }
.timeline-card[data-year="2026"] .year-badge { background: var(--green-soft); color: var(--green-deep); }

.place-tag {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-muted);
}

.timeline-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.timeline-card p {
  max-width: 78ch;
}

/* Galería fotográfica adjunta dentro de un hito */
.milestone-gallery {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.milestone-gallery__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.milestone-gallery__label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
}

.milestone-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-warm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.gallery-thumb:hover img {
  transform: scale(1.07);
}

.gallery-thumb::after {
  content: "⤢";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(30, 24, 41, 0.72);
  color: #fff;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-thumb:hover::after,
.gallery-thumb:focus-visible::after {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 14, 26, 0.92);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__dialog {
  position: relative;
  width: min(100%, 980px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--bg-white);
}

.lightbox__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lightbox__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bg-white);
}

.lightbox__counter {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin-left: 10px;
}

.lightbox__close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0a12;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
  max-height: 74vh;
}

.lightbox__stage img {
  max-height: 74vh;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(18, 14, 26, 0.7);
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__nav:hover {
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }

.lightbox__caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.94rem;
  text-align: center;
}

/* ==========================================================================
   Libros y Publicaciones
   ========================================================================== */
.pub-catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pub-card {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.pub-card--featured {
  border: 2px solid var(--purple);
  background: linear-gradient(180deg, var(--purple-soft) 0%, var(--bg-white) 46%);
}

.pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pub-badge--available { background: var(--green); color: #fff; }
.pub-badge--soon { background: var(--orange-soft); color: #b85b0c; }
.pub-badge--paper { background: var(--blue-soft); color: #0e7296; }

/* Destacado del Libro Almácigo Multicolor */
.book-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.book-cover-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.book-cover-stage img {
  width: min(100%, 400px);
  height: auto;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
  border-radius: 6px 14px 14px 6px;
  border: 0;
  box-shadow: -10px 18px 38px rgba(30, 24, 41, 0.18), 0 2px 8px rgba(30, 24, 41, 0.08);
}

.book-cover-stage--blue {
  background: transparent;
}

.book-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.book-part-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.book-part-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.book-part-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--bg-warm);
}

.book-part-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-part-card__body {
  padding: 20px 22px 24px;
}

.book-spreads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.book-spread-thumb {
  position: relative;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.book-spread-thumb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.book-spread-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.book-spread-thumb span {
  display: block;
  margin-top: 8px;
  padding: 0 4px 2px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.book-jump-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.book-jump-pill {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--bg-white);
  border: 1.5px solid var(--border-strong);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.2s ease;
}

.book-jump-pill:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: var(--purple-soft);
}

.book-cover-badge {
  position: absolute;
  right: 28px;
  bottom: -14px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.fondart-box {
  margin-top: 22px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* Tres dimensiones artísticas + QR */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.activity-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.activity-card--green { border-top: 6px solid var(--green); }
.activity-card--orange { border-top: 6px solid var(--orange); }
.activity-card--purple { border-top: 6px solid var(--purple); }

.activity-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.activity-card__qr {
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.activity-card__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--border-strong);
}

/* Manifiesto destacado */
.manifesto-band {
  padding: clamp(32px, 4.5vw, 52px);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--purple) 0%, #5c2a75 60%, #2a5d7c 100%);
  color: var(--bg-white);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.manifesto-band blockquote {
  margin: 0 auto 14px;
  max-width: 780px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--bg-white);
}

.manifesto-band blockquote em {
  color: var(--yellow);
  font-style: italic;
}

.manifesto-band p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 640px;
  margin: 0 auto;
}

/* Videos del libro */
.video-feature {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  margin-bottom: 28px;
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #14101c;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.video-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: #14101c;
  object-fit: cover;
  margin-bottom: 12px;
}

.video-card h3 {
  font-size: 1.15rem;
  margin-bottom: 2px;
}

/* ==========================================================================
   Formulario de Inscripción Libro (CF7 Ready) y Contacto
   ========================================================================== */
.request-section {
  background:
    radial-gradient(circle at 12% 16%, rgba(247, 207, 69, 0.2), transparent 34%),
    radial-gradient(circle at 90% 80%, rgba(30, 150, 75, 0.18), transparent 36%),
    #241933;
  color: var(--bg-white);
}

.request-section h2,
.request-section h3 {
  color: var(--bg-white);
}

.request-section .eyebrow {
  color: var(--yellow);
}

.request-section .eyebrow__dot {
  background: var(--yellow);
}

.request-section p {
  color: rgba(255, 255, 255, 0.84);
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.pickup-cards {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.pickup-info {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.pickup-info__city {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.pickup-info strong {
  display: block;
  font-size: 1.05rem;
  color: var(--bg-white);
  margin-bottom: 4px;
}

.pickup-info span,
.pickup-info small {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.cutoff-notice {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(247, 207, 69, 0.14);
  border: 1px solid rgba(247, 207, 69, 0.35);
  font-size: 0.88rem;
  color: #fff6cf;
}

/* Tarjeta del formulario */
.form-card {
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.form-card p {
  color: var(--ink-soft);
}

.almacigo-form {
  display: grid;
  gap: 18px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

.field .req {
  color: var(--red);
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-paper);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(123, 53, 141, 0.12);
  outline: none;
}

.field fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.choice-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-paper);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.choice-chip:hover {
  border-color: var(--purple);
}

.choice-chip input {
  accent-color: var(--purple);
  width: 17px;
  height: 17px;
  margin: 0;
}

.choice-chip:has(input:checked) {
  background: var(--purple-soft);
  border-color: var(--purple);
  color: var(--purple-deep);
}

.choice-cards {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-paper);
  cursor: pointer;
  transition: all 0.2s ease;
}

.choice-card:hover {
  border-color: var(--purple);
}

.choice-card input {
  accent-color: var(--purple);
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.choice-card:has(input:checked) {
  background: var(--purple-soft);
  border-color: var(--purple);
}

.choice-card strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
}

.choice-card span {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.conditional-box {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-warm);
  border: 1px solid var(--border);
  display: grid;
  gap: 14px;
}

.conditional-box[hidden],
.field[hidden] {
  display: none !important;
}

.form-hint {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
}

.form-confirmation {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--green-soft);
  border: 2px solid var(--green);
  color: #114726;
}

.form-confirmation[hidden] {
  display: none;
}

.form-confirmation h3 {
  color: #114726;
  margin-bottom: 10px;
}

.form-confirmation p {
  color: #174f2c;
}

.email-preview {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-white);
  border: 1px solid #b5dfc4;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.email-preview strong {
  color: var(--ink);
}

.wp-badge-note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  border-left: 4px solid var(--blue);
  font-size: 0.84rem;
  color: #0f4c63;
}

/* ==========================================================================
   CTA Band & Footer
   ========================================================================== */
.cta-band {
  padding: clamp(54px, 6vw, 84px) 0;
  background: linear-gradient(120deg, var(--purple) 0%, #652879 50%, #1c6b8c 100%);
  color: var(--bg-white);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--bg-white);
  margin-bottom: 8px;
  max-width: 680px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 580px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.84);
  border-top: 6px solid transparent;
  border-image: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple)) 1;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding: 56px 0 42px;
}

.site-footer .brand__name {
  color: var(--bg-white);
}

.site-footer .brand__tag {
  color: rgba(255, 255, 255, 0.6);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--yellow);
}

.site-footer__bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.58);
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.contact-cards {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.contact-item span {
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
}

.contact-item strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
  color: var(--ink);
}

.contact-item small {
  color: var(--ink-muted);
  font-size: 0.84rem;
}

/* Animación sutil de entrada */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Compatibilidad Contact Form 7 en WordPress */
.wpcf7-form p {
  margin: 0;
}

.wpcf7-form .wpcf7-not-valid-tip {
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 4px;
}

.wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-strip,
  .collaborators-grid,
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pub-catalog,
  .grid-3,
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-bottom: 76px;
  }

  .hero-slide__frame {
    max-width: 560px;
  }

  .story-grid,
  .book-showcase,
  .request-grid,
  .contact-grid,
  .video-feature,
  .split {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media {
    order: 0;
  }

  .story-sticky {
    position: static;
  }
}

@media (max-width: 780px) {
  .container,
  .site-header__inner {
    width: min(calc(100% - 32px), var(--container));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-white);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: var(--radius-sm);
    padding: 12px 14px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
  }

  .stats-strip,
  .grid-3,
  .grid-2,
  .book-parts-grid,
  .founders-grid,
  .collaborators-grid,
  .pub-catalog,
  .activity-grid,
  .video-grid,
  .form-row-2,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .timeline-list {
    padding-left: 26px;
  }

  .timeline-list::before {
    left: 8px;
  }

  .timeline-card__dot {
    left: -26px;
    width: 18px;
    height: 18px;
    border-width: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
