/* =========================================================================
   ARTES MARCIALES BILBAO — hoja de estilos
   Identidad: athletic / combat. Rojo sambo, near-black cálido, tatami grid.
   Display: Anton · Texto: Archivo
   ========================================================================= */

/* ---------- tipografías auto-alojadas (sin depender de Google Fonts) ---------- */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/anton-400.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/archivo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/archivo-500.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/archivo-600.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/archivo-700.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 900; font-display: swap;
  src: url("/fonts/archivo-900.woff2") format("woff2");
}

:root {
  --ink:        #16130F;   /* near-black cálido (el tatami de noche) */
  --ink-2:      #1E1913;   /* superficies elevadas */
  --ink-3:      #2A241C;   /* bordes / hover */
  --sambo:      #D8382B;   /* rojo sambo — el acento */
  --sambo-deep: #A62A20;
  --paper:      #E9E5DD;   /* claro neutro (no crema) */
  --bone:       #FBFAF7;   /* casi blanco para tarjetas */
  --muted-d:    #A99F92;   /* texto atenuado sobre oscuro */
  --muted-l:    #6C6359;   /* texto atenuado sobre claro */
  --line-d:     rgba(255,255,255,.12);
  --line-l:     rgba(22,19,15,.14);

  --font-display: "Anton", "Archivo", system-ui, sans-serif;
  --font-body:    "Archivo", system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- tipografía base ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: .96;
  letter-spacing: .01em; text-transform: uppercase; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sambo);
  display: inline-flex; align-items: center; gap: .7em;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--sambo);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .eyebrow { color: var(--sambo-deep); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }

/* tatami grid — textura de firma */
.matgrid {
  background-image:
    linear-gradient(var(--line-d) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 44px 44px;
}
.section--paper.matgrid {
  background-image:
    linear-gradient(var(--line-l) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-l) 1px, transparent 1px);
  background-color: var(--paper);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-body); font-weight: 700; font-size: .95rem;
  letter-spacing: .02em;
  padding: 15px 26px; border-radius: var(--radius);
  border: 2px solid transparent; transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s;
  text-transform: uppercase;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sambo); color: #fff; }
.btn--primary:hover { background: var(--sambo-deep); }
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.section--paper .btn--ghost:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--light { background: var(--ink); color: var(--bone); }
.btn--light:hover { background: #000; }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-d);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display);
  font-size: 1.12rem; line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; color: var(--bone); }
.brand__mark { flex: 0 0 auto; }
.brand small { display: block; font-family: var(--font-body); font-weight: 700;
  font-size: .55rem; letter-spacing: .14em; color: var(--sambo); line-height: 1; margin-top: 3px;
  white-space: nowrap; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: var(--radius);
  color: var(--muted-d); transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--bone); }
.nav__links a.is-active { color: var(--bone); }
.nav__links a.is-active::after {
  content: ""; display: block; height: 2px; background: var(--sambo);
  margin-top: 5px; border-radius: 2px;
}
.nav__cta { margin-left: 8px; padding: 10px 18px !important; background: var(--sambo);
  color: #fff !important; }
.nav__cta:hover { background: var(--sambo-deep); }

.nav__toggle { display: none; background: none; border: 0; color: var(--bone); padding: 8px; }
.nav__toggle svg { display: block; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ink-2); border-bottom: 1px solid var(--line-d);
    padding: 12px var(--gutter) 24px; gap: 2px;
    transform: translateY(-120%); transition: transform .3s var(--ease); visibility: hidden;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; }
  .nav__links a { padding: 14px 8px; font-size: 1.05rem; }
  .nav__links a.is-active::after { display: none; }
  .nav__cta { margin: 8px 0 0; text-align: center; }
  .nav__toggle { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(72px, 13vw, 150px); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; max-width: 860px; }
.hero__title {
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  letter-spacing: -.01em; margin: 18px 0 0;
}
.hero__title .accent { color: var(--sambo); display: block; }
.hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted-d);
  max-width: 56ch; margin-top: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* círculo del tatami — motivo de firma */
.hero__circle {
  position: absolute; z-index: 1; top: 50%; right: -12%; translate: 0 -50%;
  width: min(70vw, 720px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid var(--line-d);
  background:
    radial-gradient(circle at center, transparent 0 61%, rgba(216,56,43,.10) 61% 62%, transparent 62%),
    radial-gradient(circle at center, transparent 0 40%, var(--line-d) 40% 40.4%, transparent 41%);
  pointer-events: none;
  animation: floaty 14s ease-in-out infinite;
}
.hero__ru {
  position: absolute; z-index: 1; right: clamp(-10px, 2vw, 40px); bottom: clamp(20px, 5vw, 60px);
  font-family: var(--font-display); text-transform: none;
  font-size: clamp(1rem, 3.4vw, 2rem); color: rgba(255,255,255,.08); letter-spacing: .05em;
  writing-mode: vertical-rl; pointer-events: none; user-select: none;
}
@keyframes floaty { 0%,100% { translate: 0 -50%; } 50% { translate: 0 -54%; } }

/* ---------- bloque de sección genérico ---------- */
.lede { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.45; max-width: 46ch; }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-top: 16px; }
.section-head p { color: var(--muted-d); margin-top: 18px; font-size: 1.08rem; }
.section--paper .section-head p { color: var(--muted-l); }

/* ---------- pilares (3 cards) ---------- */
.pillars { display: grid; gap: 2px; grid-template-columns: repeat(3, 1fr);
  background: var(--line-l); border: 1px solid var(--line-l); }
.pillar { background: var(--paper); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column;
  transition: background .2s; }
.pillar:hover { background: var(--bone); }
.pillar__tag { font-family: var(--font-display); font-size: 1.1rem; color: var(--sambo-deep); }
.pillar h3 { font-size: 1.9rem; margin: 12px 0 14px; color: var(--ink); }
.pillar p { color: var(--muted-l); flex: 1; }
.pillar a { margin-top: 22px; font-weight: 700; color: var(--ink); display: inline-flex; gap: .5em;
  border-bottom: 2px solid var(--sambo); padding-bottom: 3px; width: fit-content;
  transition: gap .2s var(--ease); }
.pillar a:hover { gap: .9em; }
@media (max-width: 780px) { .pillars { grid-template-columns: 1fr; } }
.pillars--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) { .pillars--2 { grid-template-columns: 1fr; } }

/* ---------- lista "por qué" ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--line-d); border: 1px solid var(--line-d); }
.feature { background: var(--ink); padding: clamp(26px, 3vw, 40px); }
.feature h3 { font-size: 1.35rem; color: var(--bone); margin-bottom: 12px;
  display: flex; align-items: baseline; gap: 12px; }
.feature h3::before { content: ""; width: 10px; height: 10px; background: var(--sambo);
  flex: 0 0 auto; transform: rotate(45deg); }
.feature p { color: var(--muted-d); }
@media (max-width: 680px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- secciones de texto largo (sambo) ---------- */
.prose-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(24px, 5vw, 72px); align-items: start;
  padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line-d); }
.section--paper .prose-block { border-top-color: var(--line-l); }
.prose-block:first-of-type { border-top: 0; }
.prose-block h3 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.prose-block .body { font-size: 1.12rem; color: var(--muted-d); }
.section--paper .prose-block .body { color: var(--muted-l); }
@media (max-width: 760px) { .prose-block { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sambo); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; padding-block: clamp(44px, 6vw, 72px); }
.cta-band h2 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); max-width: 18ch; }
.cta-band p { margin-top: 12px; max-width: 44ch; color: rgba(255,255,255,.9); }
.cta-band .btn--light { background: #fff; color: var(--sambo-deep); }
.cta-band .btn--light:hover { background: var(--ink); color: #fff; }

/* ---------- MANUAL (lead magnet) ---------- */
.manual-hero { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px);
  align-items: center; }
.manual-cover { position: relative; }
.manual-cover img { width: 100%; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6), 0 0 0 1px var(--line-d);
  transform: perspective(1200px) rotateY(-9deg); transition: transform .5s var(--ease); }
.manual-cover:hover img { transform: perspective(1200px) rotateY(0deg); }
.manual-cover__ph { aspect-ratio: 148/210; border: 1px solid var(--line-d); border-radius: 6px;
  background: var(--ink-2); display: grid; place-content: center; text-align: center;
  color: var(--muted-d); padding: 24px; font-weight: 600; }
.manual-badge { position: absolute; top: -14px; left: -14px; z-index: 3;
  background: var(--sambo); color: #fff; font-family: var(--font-display); font-size: 1.05rem;
  padding: 10px 16px; border-radius: 4px; transform: rotate(-4deg);
  box-shadow: 0 10px 24px -8px rgba(216,56,43,.6); }
.manual-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px;
  font-size: .85rem; color: var(--muted-d); }
.manual-meta b { color: var(--bone); font-weight: 700; }

/* dos opciones: gratis vs físico */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--line-d); border: 1px solid var(--line-d); margin-top: 8px; }
.offer { background: var(--ink-2); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.offer--free { background: var(--ink-2); }
.offer--buy { background: var(--ink); }
.offer__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sambo); }
.offer h3 { font-size: 1.7rem; margin: 12px 0 6px; color: var(--bone); }
.offer .price { font-family: var(--font-display); font-size: 2.6rem; color: var(--bone); line-height: 1; }
.offer p { color: var(--muted-d); margin: 10px 0 22px; flex: 1; }
@media (max-width: 720px) { .offer-grid { grid-template-columns: 1fr; }
  .manual-hero { grid-template-columns: 1fr; } .manual-cover { max-width: 300px; } }

/* highlights del manual */
.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted-d); }
.checklist li::before { content: ""; flex: 0 0 auto; margin-top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--sambo);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/70% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/70% no-repeat; }
.section--paper .checklist li { color: var(--muted-l); }

/* ---------- formulario lead ---------- */
.lead-form { display: grid; gap: 14px; }
.lead-form .row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .lead-form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted-d); }
.section--paper .field label { color: var(--muted-l); }
.field input[type=text], .field input[type=email], .field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--line-d); background: rgba(255,255,255,.04); color: var(--bone);
  transition: border-color .15s, background .15s; }
.section--paper .field input, .section--paper .field textarea {
  background: #fff; color: var(--ink); border-color: var(--line-l); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sambo);
  background: rgba(255,255,255,.07); }
.section--paper .field input:focus { background: #fff; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted-d); }
.section--paper .consent { color: var(--muted-l); }
.consent input { margin-top: 3px; accent-color: var(--sambo); width: 16px; height: 16px; }
.consent a { text-decoration: underline; }
.form-note { font-size: .8rem; color: var(--muted-d); }

/* ---------- info / contacto ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; display: grid; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.info-list .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-content: center;
  background: rgba(216,56,43,.12); color: var(--sambo); }
.info-list .k { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem;
  color: var(--muted-d); }
.info-list .v { font-size: 1.08rem; color: var(--bone); }
.info-list .v a:hover { color: var(--sambo); }
.section--paper .info-list .v { color: var(--ink); }
.section--paper .info-list .k { color: var(--muted-l); }
.map-embed { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 6px; filter: grayscale(.2) contrast(1.05);
  box-shadow: 0 0 0 1px var(--line-d); }

/* horarios pill */
.hours { display: grid; gap: 10px; margin-top: 8px; }
.hours .h-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px;
  background: var(--ink-2); border-radius: var(--radius); border-left: 3px solid var(--sambo); }
.section--paper .hours .h-row { background: var(--bone); }
.hours .h-row b { font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .02em; font-size: 1.05rem; }

/* ---------- novedades / social ---------- */
.social-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin-bottom: 36px; }
.social-actions { display: flex; gap: 12px; }
.embed-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
@media (max-width: 820px) { .embed-grid { grid-template-columns: 1fr; } }
.embed-card { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 6px;
  overflow: hidden; min-height: 420px; display: flex; flex-direction: column; }
.embed-card__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px;
  border-bottom: 1px solid var(--line-d); font-weight: 700; }
.embed-card__head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sambo); }
.embed-card__body { flex: 1; display: grid; place-content: center; text-align: center; padding: 32px;
  color: var(--muted-d); gap: 12px; }
.embed-card__body .big { font-family: var(--font-display); font-size: 1.6rem; color: var(--bone); text-transform: none; }
.embed-slot { flex: 1; }
.embed-slot iframe { width: 100%; border: 0; }

/* ---------- author card ---------- */
.author-card { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 8px; padding: clamp(24px,3vw,40px); }
.author-card .avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--ink-3);
  display: grid; place-content: center; font-family: var(--font-display); font-size: 2rem; color: var(--sambo);
  border: 2px solid var(--sambo); }
.author-card h3 { color: var(--bone); font-size: 1.5rem; }
.author-card .role { color: var(--sambo); font-weight: 700; font-size: .82rem; letter-spacing: .1em;
  text-transform: uppercase; margin: 6px 0 12px; }
.author-card p { color: var(--muted-d); }
@media (max-width: 560px) { .author-card { grid-template-columns: 1fr; text-align: center; }
  .author-card .avatar { margin-inline: auto; } }

/* ---------- footer ---------- */
.site-footer { background: #100D0A; border-top: 1px solid var(--line-d);
  padding-block: clamp(48px, 7vw, 84px) 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; font-size: .72rem; color: var(--muted-d); margin-bottom: 16px; }
.footer-grid a { color: var(--muted-d); display: block; padding: 5px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--bone); }
.footer-brand p { color: var(--muted-d); max-width: 34ch; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 40px; height: 40px; border: 1px solid var(--line-d); border-radius: 50%;
  display: grid; place-content: center; color: var(--muted-d); }
.footer-social a:hover { background: var(--sambo); color: #fff; border-color: var(--sambo); }
.footer-bottom { border-top: 1px solid var(--line-d); margin-top: 44px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--muted-d); }

/* ---------- floating whatsapp ---------- */
.wa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-content: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5);
  transition: transform .2s var(--ease); }
.wa-fab:hover { transform: scale(1.08); }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal ---------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: 1.6rem; margin: 36px 0 12px; color: var(--bone); }
.legal p, .legal li { color: var(--muted-d); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }

/* ---------- logo (imagen) ---------- */
.brand__mark { width: 44px; height: 44px; object-fit: contain; }
.site-footer .brand__mark { width: 40px; height: 40px; }
@media (max-width: 520px) { .brand__mark { width: 38px; height: 38px; } }

/* ---------- hero con fotografía ---------- */
.hero--photo { background: var(--ink); isolation: isolate; }
.hero--photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img);
  background-size: cover; background-position: var(--hero-pos, center);
}
.hero--photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(16,13,10,.93) 0%, rgba(16,13,10,.74) 44%, rgba(16,13,10,.30) 100%),
    linear-gradient(0deg, rgba(16,13,10,.9) 2%, rgba(16,13,10,0) 46%);
}
.hero--photo .hero__inner { z-index: 3; }
.hero--photo .hero__circle { display: none; }
.hero--photo .hero__ru { z-index: 2; color: rgba(255,255,255,.16); }
.hero--photo .hero__sub { color: #E7DED2; }
/* filo rojo inferior, como una lona de tatami */
.hero--photo::marker { content: none; }
.hero--photo { border-bottom: 4px solid var(--sambo); }

/* ---------- galería de fotos ---------- */
.gallery {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  grid-auto-flow: dense;
}
.gallery figure {
  position: relative; margin: 0; overflow: hidden; border-radius: 5px;
  aspect-ratio: 4 / 3; background: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line-d);
}
.section--paper .gallery figure { box-shadow: 0 0 0 1px var(--line-l); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .span-2 { grid-column: span 2; }
.gallery .span-all { grid-column: 1 / -1; aspect-ratio: 24 / 7; }
@media (max-width: 680px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .span-2, .gallery .span-all { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
/* pie de foto (para seminarios / créditos) */
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 16px 12px; font-size: .82rem; font-weight: 600; color: #fff;
  background: linear-gradient(0deg, rgba(16,13,10,.82), transparent);
  opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s;
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
/* marco con acento rojo al pasar */
.gallery figure::after {
  content: ""; position: absolute; inset: 0; border: 2px solid transparent;
  border-radius: 5px; transition: border-color .3s; pointer-events: none;
}
.gallery figure:hover::after { border-color: var(--sambo); }

/* ---------- pie: enlaces legales ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.footer-legal a, .footer-legal__btn { color: var(--muted-d); font-size: .8rem; }
.footer-legal a:hover, .footer-legal__btn:hover { color: var(--bone); }
.footer-legal__btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }

/* ---------- banner de cookies ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: var(--ink-2); border-top: 2px solid var(--sambo);
  box-shadow: 0 -20px 40px -20px rgba(0,0,0,.6); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; align-items: center; justify-content: space-between;
  gap: 16px 28px; flex-wrap: wrap; padding-block: 16px; }
.cookie-banner__text { color: var(--muted-d); font-size: .92rem; max-width: 72ch; margin: 0; }
.cookie-banner__text a { color: var(--bone); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 11px 20px; font-size: .85rem; }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}
body:has(#cookieBanner:not([hidden])) .wa-fab { bottom: 104px; }

/* ---------- mapa con consentimiento ---------- */
.map-wrap { position: relative; aspect-ratio: var(--map-ratio, 4 / 3); border-radius: 6px;
  overflow: hidden; box-shadow: 0 0 0 1px var(--line-d); background: var(--ink-2); }
.map-wrap .map-embed { position: absolute; inset: 0; width: 100%; height: 100%;
  aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center;
  gap: 14px; text-align: center; padding: 24px; background: var(--ink-2); color: var(--muted-d); }
.section--paper .map-consent { background: var(--bone); color: var(--muted-l); }
.map-consent svg { color: var(--sambo); }
.map-consent p { max-width: 34ch; margin: 0; }
.map-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.map-consent__actions .btn { padding: 11px 18px; font-size: .85rem; }
.map-wrap.is-consented .map-consent { display: none; }

/* ---------- rejilla de instructores ---------- */
.instructors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .instructors-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.instructor { background: var(--ink-2); border: 1px solid var(--line-d); border-radius: 8px;
  padding: clamp(24px, 3vw, 34px); text-align: center; }
.instructor .avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--ink-3);
  display: grid; place-content: center; font-family: var(--font-display); font-size: 1.8rem;
  color: var(--sambo); border: 2px solid var(--sambo); margin: 0 auto 16px; }
.instructor h3 { color: var(--bone); font-size: 1.25rem; line-height: 1.2; }
.instructor .role { color: var(--sambo); font-weight: 700; font-size: .76rem; letter-spacing: .1em;
  text-transform: uppercase; margin: 6px 0 16px; }
.instructor .disc { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap;
  gap: 8px; justify-content: center; }
.instructor .disc li { font-size: .78rem; font-weight: 600; color: var(--muted-d);
  background: rgba(216,56,43,.10); border: 1px solid var(--line-d); border-radius: 999px; padding: 5px 12px; }

/* ---------- barra de aviso de temporada (julio/agosto) ---------- */
.season-bar { background: var(--sambo); color: #fff; }
.season-bar[hidden] { display: none; }
.season-bar .wrap { margin: 0; padding-block: 9px; text-align: center;
  font-size: .9rem; font-weight: 600; line-height: 1.4; }
@media (max-width: 560px) { .season-bar .wrap { font-size: .82rem; padding-block: 8px; } }

/* ---------- contenedor del formulario embebido de MailerLite ---------- */
.ml-embed-wrap { border-radius: 10px; overflow: hidden; }
.ml-embed-wrap .ml-embedded { width: 100%; }
/* el estilo fino del formulario se ajusta dentro del editor de MailerLite */

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

:focus-visible { outline: 3px solid var(--sambo); outline-offset: 2px; border-radius: 2px; }
