/* ==========================================================================
   Artfest México 2027 — Estilos de la one-page
   Depende de: bootstrap 5.3.8 + css/tokens.css
   ========================================================================== */

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--af-header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--af-sans);
  font-size: var(--af-step-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .af-serif {
  font-family: var(--af-serif);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h3 { font-family: var(--af-sans); font-weight: 700; letter-spacing: 0; line-height: 1.25; font-size: var(--af-step-1); }
p, li, dd { max-width: var(--af-measure); text-wrap: pretty; }

a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--af-amarillo); color: var(--af-tinta); }

:focus-visible {
  outline: 3px solid var(--af-focus, var(--af-cobalto));
  outline-offset: 3px;
  box-shadow: none;
}

h2[tabindex="-1"]:focus { outline: none; }

.af-skip {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--af-tinta); color: var(--af-papel); padding: 0.75rem 1rem; font-weight: 700;
}
.af-skip:focus { top: 1rem; color: var(--af-papel); }

.container-xxl { --bs-gutter-x: 2rem; max-width: 1320px; }
@media (min-width: 992px) { .container-xxl { --bs-gutter-x: 3rem; } }

/* ---------- Secciones ---------- */
.af-section { padding-block: var(--af-space-7); position: relative; }
.af-section__title { font-size: var(--af-step-5); margin-bottom: var(--af-space-4); overflow-wrap: break-word; }
@media (max-width: 575.98px) { .af-section__title { font-size: clamp(2.25rem, 1.2rem + 5vw, 3rem); } }

/* Columnas únicas en móvil sin desbordar (los media queries de cada bloque las redefinen) */
.af-hero__grid, .af-about__grid, .af-visit__grid, .af-expo__grid, .af-split, .af-faq__grid, .af-footer__grid { grid-template-columns: minmax(0, 1fr); }
.af-lead { font-size: var(--af-step-1); line-height: 1.45; }

.af-on-dark { --af-focus: var(--af-amarillo); --bs-heading-color: var(--af-papel); color: var(--af-papel); background-color: var(--af-tinta); }

/* Acento de color por sección: el fondo es siempre blanco o negro, el color solo vive en detalles */
.af-section__title::after {
  content: ""; display: block;
  width: 4rem; height: 6px; margin-top: 1.25rem;
  background: var(--af-accent, var(--af-rojo));
}
#que-es { --af-accent: var(--af-naranja); }
.af-visit { --af-accent: var(--af-amarillo); }
.af-after { --af-accent: var(--af-rojo); }
.af-expo { --af-accent: var(--af-cielo); }
.af-sponsor { --af-accent: var(--af-rosa); }
.af-faq { --af-accent: var(--af-verde); }
.af-on-dark a:not(.btn-af) { color: inherit; }

/* ---------- Botones ---------- */
.btn-af {
  --af-btn-bg: var(--af-tinta);
  --af-btn-fg: var(--af-papel);
  --af-btn-bd: var(--af-tinta);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.8rem 1.6rem;
  font-family: var(--af-sans); font-weight: 700; font-size: var(--af-step-0); line-height: 1.2;
  color: var(--af-btn-fg); background: var(--af-btn-bg);
  border: 2px solid var(--af-btn-bd); border-radius: 0;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-af:hover { text-decoration: none; }
.btn-af svg { width: 1.25em; height: 1.25em; flex: none; }

.btn-af--rojo  { --af-btn-bg: var(--af-rojo-cta); --af-btn-bd: var(--af-rojo-cta); }
.btn-af--rojo:hover  { --af-btn-bg: var(--af-tinta); --af-btn-bd: var(--af-tinta); color: var(--af-papel); }
.btn-af--tinta:hover { --af-btn-bg: var(--af-papel); --af-btn-fg: var(--af-tinta); color: var(--af-tinta); }
.btn-af--papel { --af-btn-bg: var(--af-papel); --af-btn-fg: var(--af-tinta); --af-btn-bd: var(--af-papel); }
.btn-af--papel:hover { --af-btn-bg: transparent; --af-btn-fg: var(--af-papel); color: var(--af-papel); }
.btn-af--linea { --af-btn-bg: transparent; --af-btn-fg: currentColor; --af-btn-bd: currentColor; }
.btn-af--linea:hover { --af-btn-bg: var(--af-tinta); --af-btn-fg: var(--af-papel); --af-btn-bd: var(--af-tinta); color: var(--af-papel); }
.af-on-dark .btn-af--linea:hover { --af-btn-bg: var(--af-papel); --af-btn-fg: var(--af-tinta); --af-btn-bd: var(--af-papel); color: var(--af-tinta); }

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

/* ---------- Header ---------- */
.af-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--af-papel);
  border-bottom: 1px solid var(--af-tinta);
}
.af-header__bar { height: var(--af-header-h); display: flex; align-items: center; gap: var(--af-space-3); }
.af-header__logo { display: block; flex: none; }
.af-header__logo img { height: 50px; width: auto; display: block; }
.af-nav { display: none; gap: 1.75rem; list-style: none; padding: 0; margin-bottom: 0; }
.af-nav a {
  color: var(--af-tinta); text-decoration: none; font-weight: 500;
  padding-block: 0.4rem; border-bottom: 3px solid transparent;
}
.af-nav a:hover, .af-nav a[aria-current="true"] { border-bottom-color: var(--af-tinta); }
.af-header__cta { display: none; }
.af-header__menu {
  margin-left: auto; background: none; border: 0; padding: 0;
  min-width: 48px; min-height: 48px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px;
}
.af-header__menu span { display: block; width: 30px; height: 3px; background: var(--af-tinta); }
.af-header__menu span:last-child { width: 20px; }

@media (min-width: 1100px) {
  .af-nav { display: flex; }
  .af-header__cta { display: inline-flex; min-height: 44px; padding: 0.55rem 1.1rem; }
  .af-header__menu { display: none; }
}
@media (max-width: 400px) { .af-header__logo img { height: 42px; } }

/* Menú móvil (offcanvas de Bootstrap) */
.af-menu.offcanvas { --bs-offcanvas-width: 100%; --bs-offcanvas-bg: var(--af-tinta); color: var(--af-papel); }
.af-menu .offcanvas-header { height: var(--af-header-h); border-bottom: 1px solid rgba(255,255,255,0.35); }
.af-menu .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: 1; width: 1.5em; height: 1.5em; }
.af-menu__list { list-style: none; padding: 0; margin: 0 0 var(--af-space-5); }
.af-menu__list a {
  display: block; padding-block: 0.35rem;
  font-family: var(--af-serif); font-size: var(--af-step-4); font-weight: 600; line-height: 1.1;
  color: var(--af-papel); text-decoration: none;
}
.af-menu__list a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------- Hero ---------- */
.af-hero { padding-block: var(--af-space-5) var(--af-space-6); border-bottom: 1px solid var(--af-tinta); }
.af-hero__grid { display: grid; gap: var(--af-space-5); align-items: center; }
@media (min-width: 992px) {
  .af-hero { padding-block: var(--af-space-4); }
  .af-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--af-space-6); }
}

.af-art {
  position: relative; margin: 0;
  aspect-ratio: 1 / 1; width: 100%;
  max-height: calc(100svh - var(--af-header-h) - 4rem);
  max-width: calc(100svh - var(--af-header-h) - 4rem);
  min-width: min(100%, 320px);
  justify-self: center;
}
.af-art__tiles {
  position: absolute; inset: 0;
  display: grid; grid-template: repeat(4, 1fr) / repeat(4, 1fr);
  /* La imagen completa queda debajo de las celdas para tapar las juntas de subpíxel */
  background: var(--af-crema) url("../img/2027/hero-cuadrado-2027.webp") center / 100% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .js .af-art__tiles:not(.is-done) { background-image: none; }
}
.af-art__tile {
  background-image: url("../img/2027/hero-cuadrado-2027.webp");
  background-size: 400% 400%;
  background-position: calc(var(--c) * 33.3333%) calc(var(--r) * 33.3333%);
}
.af-art__credit { position: absolute; right: 0; bottom: -1.75rem; font-size: var(--af-step--1); }
.af-art__credit a { color: var(--af-tinta); }

/* Ensamble: las celdas sobre las diagonales (la X) aparecen primero */
@media (prefers-reduced-motion: no-preference) {
  .js .af-art__tile {
    opacity: 0; transform: scale(0.82);
    animation: af-tile 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
    animation-delay: calc(0.15s + var(--d) * 0.16s);
  }
}
@keyframes af-tile { to { opacity: 1; transform: none; } }

.af-hero__logo { width: min(72%, 440px); height: auto; display: block; margin-bottom: var(--af-space-4); }
.af-hero__edition { font-family: var(--af-serif); font-size: var(--af-step-3); line-height: 1.05; margin: 0; }
.af-hero__edition b { font-weight: 800; }
.af-hero__venue { font-family: var(--af-serif); font-size: var(--af-step-2); margin: 0 0 var(--af-space-4); }
.af-hero__date { font-family: var(--af-serif); font-weight: 500; margin: 0 0 var(--af-space-4); line-height: 0.95; }
.af-hero__date span { display: block; }
.af-hero__days { font-size: var(--af-step-6); letter-spacing: -0.02em; }
.af-hero__month { font-size: var(--af-step-2); margin-top: 0.35rem; }

/* ---------- Qué es ---------- */
.af-about__grid { display: grid; gap: var(--af-space-4); }
@media (min-width: 992px) { .af-about__grid { grid-template-columns: 5fr 6fr; gap: var(--af-space-6); } }
.af-facts { list-style: none; padding: 0; margin: var(--af-space-6) 0 0; display: grid; gap: var(--af-space-4); }
@media (min-width: 768px) { .af-facts { grid-template-columns: repeat(3, 1fr); } }
.af-fact { border-top: 8px solid var(--af-fact, var(--af-tinta)); padding-top: var(--af-space-2); }
.af-fact__n { display: block; font-family: var(--af-serif); font-weight: 700; font-size: var(--af-step-6); line-height: 1; }
.af-fact__l { display: block; margin-top: 0.5rem; font-weight: 500; }

/* ---------- Visita ---------- */
.af-visit__grid { display: grid; gap: var(--af-space-5); align-items: start; }
@media (min-width: 992px) { .af-visit__grid { grid-template-columns: 1fr 1fr; gap: var(--af-space-6); } }
.af-days { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.af-day {
  aspect-ratio: 1 / 1.15; padding: 0.9rem; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--af-papel); color: var(--af-tinta);
  border-top: 8px solid var(--af-day);
}
.af-days { gap: 2px; }
.af-day:nth-child(1) { --af-day: var(--af-rojo); }
.af-day:nth-child(2) { --af-day: var(--af-amarillo); }
.af-day:nth-child(3) { --af-day: var(--af-cobalto); }
.af-day__dow { font-weight: 700; }
.af-day__n { font-family: var(--af-serif); font-weight: 700; font-size: var(--af-step-6); line-height: 0.85; }
.af-day__m { font-size: var(--af-step--1); }
.af-info { margin: var(--af-space-4) 0; }
.af-info dt { font-weight: 700; margin-top: var(--af-space-2); }
.af-info dd { margin: 0; }

/* ---------- Video (facade de Instagram) ---------- */
.af-video { width: 100%; max-width: 400px; justify-self: center; }
.af-video__frame { position: relative; aspect-ratio: 9 / 16; background: #1a1a1a; overflow: hidden; }
.af-video__play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer;
  background-color: #1a1a1a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.af-video__play::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0) 45%);
}
.af-video__badge {
  position: relative; z-index: 1;
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--af-papel); color: var(--af-tinta);
  display: grid; place-items: center;
  transition: transform 0.2s ease;
}
.af-video__badge svg { width: 34px; height: 34px; margin-left: 6px; }
.af-video__play:hover .af-video__badge { transform: scale(1.06); }
.af-video__label {
  position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: 1rem;
  color: var(--af-papel); font-weight: 700; text-align: left;
}
.af-video__frame .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
.af-video__frame.is-loaded { aspect-ratio: auto; background: var(--af-papel); overflow: visible; }
.af-video__fallback { display: inline-block; margin-top: 0.75rem; font-weight: 500; }

/* ---------- Aftermovie ---------- */
.af-after { background: var(--af-papel); }
.af-split { display: grid; gap: var(--af-space-5); align-items: center; }
@media (min-width: 992px) { .af-split { grid-template-columns: 1fr minmax(320px, 400px); gap: var(--af-space-6); } }

/* ---------- Expón ---------- */
.af-expo__grid { display: grid; gap: var(--af-space-5); }
@media (min-width: 992px) { .af-expo__grid { grid-template-columns: 1fr 1fr; gap: var(--af-space-6); } }
.af-modes { list-style: none; padding: 0; margin: 0 0 var(--af-space-5); }
.af-modes li { display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; padding-block: 0.9rem; border-top: 1px solid rgba(255,255,255,0.4); }
.af-modes li:last-child { border-bottom: 1px solid rgba(255,255,255,0.4); }
.af-modes__shape { width: 2.25rem; height: 1.125rem; margin-top: 0.35rem; border-radius: 2.25rem 2.25rem 0 0; }
.af-modes p { margin: 0.15rem 0 0; opacity: 0.88; }
.af-includes { padding-left: 1.1rem; margin: 0; }
.af-includes li { margin-bottom: 0.35rem; }
.af-includes li::marker { color: var(--af-amarillo); }

.af-steps { list-style: none; counter-reset: paso; padding: 0; margin: 0 0 var(--af-space-4); }
.af-steps li { counter-increment: paso; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding-block: 1rem; border-top: 1px solid rgba(255,255,255,0.4); }
.af-steps li::before {
  content: counter(paso);
  font-family: var(--af-sans); font-weight: 700; font-size: var(--af-step-3); line-height: 1;
  color: var(--af-amarillo);
}
.af-steps strong { display: block; font-size: var(--af-step-1); }
.af-steps p { margin: 0.25rem 0 0; opacity: 0.88; }
.af-note { font-size: var(--af-step--1); opacity: 0.9; margin-top: var(--af-space-2); }

/* ---------- Galería (mosaico) ---------- */
.af-gal { --af-accent: var(--af-violeta); border-top: 1px solid var(--af-tinta); }
.af-gal__head { display: grid; gap: var(--af-space-2); margin-bottom: var(--af-space-4); }
@media (min-width: 992px) { .af-gal__head { grid-template-columns: 1fr 1fr; gap: var(--af-space-6); align-items: end; } }
.af-gal__head .af-lead { margin-bottom: var(--af-space-4); }

.af-gal__grid {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: clamp(110px, 32vw, 200px);
}
@media (min-width: 992px) {
  .af-gal__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; grid-auto-rows: clamp(140px, 11.5vw, 170px); }
}
.af-gal__item { min-width: 0; grid-row: span 2; }
.af-gal__item--feat { grid-column: span 2; grid-row: span 4; }
.af-gal__item--h { grid-column: span 2; grid-row: span 2; }

.af-gal__btn {
  position: relative; display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: var(--af-crema); cursor: zoom-in; overflow: hidden;
}
.af-gal__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
/* Acento de color al pasar: franja inferior con los colores de la obra */
.af-gal__btn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: linear-gradient(90deg, var(--af-rojo) 0 25%, var(--af-amarillo) 25% 50%, var(--af-cielo) 50% 75%, var(--af-rosa) 75%);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.25s ease;
}
.af-gal__btn:hover img, .af-gal__btn:focus-visible img { transform: scale(1.04); }
.af-gal__btn:hover::after, .af-gal__btn:focus-visible::after { transform: scaleY(1); }
.af-gal__btn:focus-visible { outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .af-gal__btn img, .af-gal__btn::after { transition: none; }
  .af-gal__btn:hover img, .af-gal__btn:focus-visible img { transform: none; }
}

/* ---------- Lightbox ---------- */
.af-lb {
  --af-focus: var(--af-amarillo);
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: var(--af-tinta); color: var(--af-papel);
  overflow: hidden;
}
.af-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.af-lb::backdrop { background: rgba(0, 0, 0, 0.92); }
.af-lb__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(0.75rem, env(safe-area-inset-top)) 1rem 0.75rem;
}
.af-lb__count { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.af-lb__stage {
  margin: 0; min-height: 0;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center;
  padding: 0 1rem max(1rem, env(safe-area-inset-bottom));
}
.af-lb__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; align-self: center;
  opacity: 1; transition: opacity 0.2s ease; touch-action: pan-y;
  user-select: none; -webkit-user-drag: none;
}
.af-lb__img.is-loading { opacity: 0.25; }
.af-lb__cap { max-width: 60ch; text-align: center; padding-top: 0.75rem; font-size: var(--af-step--1); opacity: 0.85; }

.af-lb__btn {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.55); color: var(--af-papel);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.af-lb__btn:hover { background: var(--af-papel); border-color: var(--af-papel); color: var(--af-tinta); }
.af-lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.af-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.af-lb__nav--prev { left: max(1rem, env(safe-area-inset-left)); }
.af-lb__nav--next { right: max(1rem, env(safe-area-inset-right)); }
@media (max-width: 767.98px) {
  /* En móvil las flechas bajan para no tapar la foto; también se puede deslizar */
  .af-lb__nav { top: auto; bottom: max(1rem, env(safe-area-inset-bottom)); transform: none; }
  .af-lb__stage { padding-bottom: calc(52px + 2rem); }
}
body.af-lb-open { overflow: hidden; }

/* ---------- Totalplay ---------- */
.af-presenter { padding-block: var(--af-space-6); border-bottom: 1px solid var(--af-tinta); }
.af-presenter__banner { display: block; width: 100%; height: auto; aspect-ratio: 3320 / 582; object-fit: cover; }
.af-presenter__text { display: grid; gap: var(--af-space-2); margin-top: var(--af-space-4); align-items: end; }
@media (min-width: 992px) { .af-presenter__text { grid-template-columns: 1fr 1fr; gap: var(--af-space-6); } }
.af-presenter__text h2 { font-size: var(--af-step-4); margin: 0; }
.af-presenter__text p { margin: 0; }

/* ---------- Patrocina ---------- */
.af-benefits { list-style: none; padding: 0; margin: var(--af-space-4) 0; }
.af-benefits li {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: center;
  padding-block: 0.85rem; border-top: 1px solid rgba(255,255,255,0.4);
}
.af-benefits li:last-child { border-bottom: 1px solid rgba(255,255,255,0.4); }
.af-benefits__icon {
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--af-rosa); color: var(--af-tinta);
}
.af-benefits__icon svg { width: 1.3rem; height: 1.3rem; }
.af-benefits li:nth-child(2) .af-benefits__icon { background: var(--af-amarillo); }
.af-benefits li:nth-child(3) .af-benefits__icon { background: var(--af-cielo); }
.af-benefits li:nth-child(4) .af-benefits__icon { background: var(--af-naranja); }

.af-allies { padding-block: var(--af-space-6); border-bottom: 1px solid var(--af-tinta); }
.af-allies h2 { font-size: var(--af-step-3); margin-bottom: var(--af-space-4); }
.af-logos {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--af-tinta); border-left: 1px solid var(--af-tinta);
}
@media (min-width: 576px) { .af-logos { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .af-logos { grid-template-columns: repeat(6, 1fr); } }
.af-logos li {
  display: grid; place-items: center; min-height: 110px; padding: 1.25rem;
  border-right: 1px solid var(--af-tinta); border-bottom: 1px solid var(--af-tinta);
}
.af-logos img { max-width: 100%; max-height: 40px; width: auto; height: auto; }
.af-logos .af-logos__join { box-shadow: inset 0 6px 0 var(--af-rosa); }
.af-logos .af-logos__join a { font-weight: 700; color: var(--af-tinta); text-align: center; text-decoration-color: var(--af-rosa); text-decoration-thickness: 3px; }

/* ---------- FAQ (accordion de Bootstrap) ---------- */
.af-faq .accordion {
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: var(--af-tinta);
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-btn-padding-x: 0;
  --bs-accordion-btn-padding-y: 1.25rem;
  --bs-accordion-body-padding-x: 0;
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-active-bg: transparent;
  --bs-accordion-active-color: var(--af-tinta);
  --bs-accordion-btn-focus-box-shadow: none;
  border-top: 1px solid var(--af-tinta);
}
.af-faq .accordion-item { border-width: 0 0 1px; }
.af-faq .accordion-button { font-weight: 700; font-size: var(--af-step-1); line-height: 1.3; gap: 1rem; }
.af-faq .accordion-button:focus-visible { outline: 3px solid var(--af-cobalto); outline-offset: 2px; }
.af-faq .accordion-body p { padding-bottom: 1.5rem; margin: 0; }
.af-faq__grid { display: grid; gap: var(--af-space-4); }
@media (min-width: 992px) { .af-faq__grid { grid-template-columns: 4fr 7fr; gap: var(--af-space-6); } }

/* ---------- Footer ---------- */
.af-footer { padding-block: var(--af-space-6) var(--af-space-4); }
.af-footer__grid { display: grid; gap: var(--af-space-5); }
@media (min-width: 768px) { .af-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.af-footer__logo { width: 220px; height: auto; }
.af-footer h2 { font-family: var(--af-sans); font-size: var(--af-step-0); font-weight: 700; margin-bottom: 0.75rem; }
.af-footer ul { list-style: none; padding: 0; margin: 0; }
.af-footer li { margin-bottom: 0.4rem; }
.af-footer__legal { margin-top: var(--af-space-5); padding-top: var(--af-space-2); border-top: 1px solid rgba(255,255,255,0.3); font-size: var(--af-step--1); display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between; }
.af-footer__legal p { margin: 0; max-width: none; }

/* ---------- WhatsApp flotante ---------- */
.af-wa {
  position: fixed; z-index: 1040;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px var(--af-papel);
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.af-wa svg { width: 32px; height: 32px; }
.af-wa:hover { transform: scale(1.06); color: #fff; }
.af-wa:focus-visible { outline-color: var(--af-tinta); }
.af-wa.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
/* Espacio para que el botón no tape el último contenido */
.af-footer { padding-bottom: calc(var(--af-space-4) + 72px); }

/* ---------- Página interior (aviso de privacidad) ---------- */
.af-doc { padding-block: var(--af-space-6); }
.af-doc h1 { font-size: var(--af-step-5); margin-bottom: var(--af-space-2); }
.af-doc h2 { font-size: var(--af-step-2); margin-top: var(--af-space-5); margin-bottom: var(--af-space-2); }
.af-doc__meta { color: #4a4a4a; margin-bottom: var(--af-space-4); }
