/* =========================================================
   Kamehouse — Academia de Artes Marciales
   Shared stylesheet
   ========================================================= */

/* Sustituta gratuita de Lust (Faptype) mientras no tengamos el archivo con licencia.
   Solo se usa en el "KAMEHOUSE" del bloque rojo; el resto de la web no cambia. */
@font-face {
  font-family: "Kamehouse Brush";
  src: url("../fonts/rubik-wet-paint-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #0e0f12;
  --ink-2: #16181d;
  --ink-3: #20232a;
  --paper: #f4f0e7;
  --paper-2: #e7e0d2;
  --text: #f4f0e7;
  --text-muted: #a09b92;
  --text-dark: #16181d;
  --text-dark-muted: #5f5b54;
  --red: #d7352b;
  --red-bright: #ff5448;
  --gold: #d8a441;
  --line: rgba(244, 240, 231, 0.12);
  --line-dark: rgba(22, 24, 29, 0.14);
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: calc(74px + env(safe-area-inset-top, 0px));

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-brush: "Kamehouse Brush", "Permanent Marker", cursive;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.7rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 160ms var(--ease-out);
}

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

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
a,
[role="button"] {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea,
select {
  font-size: 16px; /* evita el zoom automático en iOS */
}

::selection {
  background: var(--red);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 4px;
}

/* ---------- utilidades ---------- */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 10vw, 9rem);
  position: relative;
}

.section--paper {
  background: var(--paper);
  color: var(--text-dark);
}

.section--ink-2 {
  background: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0 0 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.section--paper .eyebrow {
  color: var(--red);
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
}

.display--xl {
  font-size: clamp(3.6rem, 9vw, 8.5rem);
}

.display--lg {
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.display--md {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
}

.accent {
  color: var(--red-bright);
}

.section--paper .accent {
  color: var(--red);
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 56ch;
  margin: 1.5rem 0 0;
}

.section--paper .lead {
  color: var(--text-dark-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-block: 0.35rem;
  border-bottom: 1px solid currentColor;
  transition: gap 200ms var(--ease-out), color 200ms ease;
}

.text-link svg {
  width: 16px;
  height: 16px;
}

/* ---------- botones ---------- */

.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease,
    border-color 200ms ease, color 200ms ease;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}

.btn--dark {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}

.btn--light {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
}

.btn--block {
  width: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    --btn-bg: var(--red-bright);
  }

  .btn--outline:hover {
    --btn-bg: rgba(244, 240, 231, 0.08);
    --btn-fg: #fff;
    border-color: rgba(244, 240, 231, 0.4);
  }

  .btn--dark:hover {
    --btn-bg: #24272e;
  }

  .btn--light:hover {
    --btn-bg: #fff;
  }

  .text-link:hover {
    gap: 1rem;
    color: var(--red-bright);
  }

  .section--paper .text-link:hover {
    color: var(--red);
  }
}

/* ---------- cabecera ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease,
    backdrop-filter 200ms ease;
}

.site-header[data-scrolled="true"],
.site-header.menu-open {
  background: rgba(14, 15, 18, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: contain;
  background: var(--paper);
  padding: 3px;
  border-radius: 2px;
}

/* Emblema 3D blanco de la cabecera: solo capas del modelo, sin fondo ni sombra. */
.brand__mark--3d {
  width: 42px;
  height: 42px;
  background: none;
  padding: 0;
  border-radius: 0;
}

.brand__text {
  display: grid;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__sub {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.25rem);
  margin-left: auto;
}

.nav__link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-block: 0.5rem;
  transition: color 160ms ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}

.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

@media (hover: hover) and (pointer: fine) {
  .nav__link:hover {
    color: var(--text);
  }

  .nav__link:hover::after {
    transform: scaleX(1);
  }
}

.header-cta {
  display: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 200ms var(--ease-out), opacity 150ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(2rem, 8vh, 4rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out),
    visibility 200ms;
}

.mobile-menu[data-open="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu[data-instant="true"] {
  transition-duration: 0ms;
}

.mobile-menu__nav {
  display: grid;
  gap: 0.5rem;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 12vw, 4.5rem);
  line-height: 1;
  text-transform: uppercase;
  color: var(--text);
  padding-block: 0.2rem;
}

.mobile-menu__link[aria-current="page"] {
  color: var(--red-bright);
}

.mobile-menu__foot {
  display: grid;
  gap: 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ---------- hero ---------- */

.hero-stage {
  position: relative;
  isolation: isolate;
  background-image: linear-gradient(to bottom, transparent 76%, rgba(9, 10, 13, 0.88)),
    linear-gradient(90deg, rgba(9, 10, 13, 0.9), rgba(9, 10, 13, 0.55) 60%, rgba(9, 10, 13, 0.32)),
    url("../img/hero-background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vh, 6rem));
  padding-bottom: clamp(4rem, 8vh, 7rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(244, 240, 231, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 240, 231, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  opacity: 0.6;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero__title .line > span {
  display: block;
  opacity: 0;
  transform: translateY(105%);
  animation: heroLineIn 900ms var(--ease-out) forwards;
}

.hero__title .line:nth-child(1) > span { animation-delay: 120ms; }
.hero__title .line:nth-child(2) > span { animation-delay: 190ms; }
.hero__title .line:nth-child(3) > span { animation-delay: 260ms; }

@keyframes heroLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__lead,
.hero__actions,
.hero__stats,
.hero__visual {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeIn 700ms var(--ease-out) forwards;
}

.hero__lead { animation-delay: 420ms; }
.hero__actions { animation-delay: 490ms; }
.hero__stats { animation-delay: 560ms; }
.hero__visual { animation-delay: 300ms; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
  max-width: 50ch;
  margin: 1.75rem 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
  align-self: stretch;
  min-height: 440px;
  display: flex;
  align-items: center;
}

.parallax {
  will-change: transform;
}

/* Emblema 3D: seis copias del mismo símbolo separadas en Z forman el grosor. */
.hero__emblem {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  pointer-events: none;
  perspective: 900px;
}

.hero__emblem-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero__emblem-stage {
  width: clamp(220px, 34vw, 380px);
  aspect-ratio: 1;
  animation: emblemIn 900ms var(--ease-out) 460ms both;
}

.hero__emblem-float {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: emblemFloat 7s var(--ease-in-out) infinite alternate;
}

.hero__emblem-stack {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero__emblem-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(calc(var(--z) * -6px));
  backface-visibility: hidden;
}

.hero__emblem-layer--front {
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.5));
}

@keyframes emblemIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes emblemFloat {
  from { transform: translateY(4px) rotateY(-9deg); }
  to { transform: translateY(-7px) rotateY(9deg); }
}

/* Insignia FEKB: el logo se muestra intacto; el grosor se crea con copias detrás. */
.fekb-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding: 0.5rem 1rem 0.5rem 0.6rem;
  border: 1px solid rgba(244, 240, 231, 0.22);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(244, 240, 231, 0.1), rgba(244, 240, 231, 0.03));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  transform: perspective(600px) rotateY(-8deg);
  transform-style: preserve-3d;
}

.fekb-badge__logo {
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  aspect-ratio: 329 / 324;
  transform-style: preserve-3d;
}

.fekb-badge__logo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fekb-badge__layer {
  transform: translate(calc(var(--d) * 1.2px), calc(var(--d) * 1px));
  filter: brightness(0.5) saturate(0.8);
  opacity: 0.9;
}

.fekb-badge__front {
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5));
}

.fekb-badge__text span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fekb-badge__text strong {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--paper);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .fekb-badge {
    transition: transform 300ms var(--ease-out);
  }

  .fekb-badge:hover {
    transform: perspective(600px) rotateY(0deg) translateY(-2px);
  }
}

.hero__caption {
  position: absolute;
  left: -14px;
  bottom: 14%;
  z-index: 3;
  padding: 0.9rem 1.15rem;
  background: var(--paper);
  color: var(--text-dark);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

.hero__caption small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 0;
    max-width: 480px;
    width: 100%;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .hero__caption {
    position: static;
    order: -1;
    align-self: flex-start;
  }

  .hero__emblem {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
  }

  .hero__emblem-stage {
    width: clamp(170px, 46vw, 260px);
  }
}

/* ---------- marquesina ---------- */

.marquee {
  border-block: 1px solid var(--line);
  background: transparent;
  overflow: hidden;
  padding-block: 1.1rem;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee__dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  transform: rotate(45deg);
  flex: none;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- cabeceras de páginas interiores ---------- */

.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(5rem, 12vw, 9rem));
  padding-bottom: clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: attr(data-index);
  position: absolute;
  right: var(--gutter);
  top: 45%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(9rem, 26vw, 24rem);
  font-weight: 700;
  line-height: 0.8;
  color: rgba(244, 240, 231, 0.028);
  pointer-events: none;
}

.page-hero .lead {
  max-width: 62ch;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover {
    color: var(--text);
  }
}

/* ---------- tarjetas / rejillas ---------- */

.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .grid--3,
  .grid--2,
  .grid--4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.card__body {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.card__index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--red-bright);
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0.75rem 0 0;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0.85rem 0 0;
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section--paper .tag {
  border-color: var(--line-dark);
  color: var(--text-dark-muted);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card__media img {
    transform: scale(1.05);
  }

  .card:hover {
    border-color: rgba(255, 84, 72, 0.45);
  }
}

/* ---------- principios ---------- */

.principle {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.5rem;
}

.principle__number {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.12em;
}

.principle__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1;
  text-transform: uppercase;
  margin: 0.75rem 0 0;
}

.principle__text {
  color: var(--text-dark-muted);
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head__copy {
  max-width: 60ch;
}

@media (max-width: 760px) {
  .section-head {
    flex-direction: column;
    align-items: start;
  }
}

/* ---------- lista de horarios ---------- */

.schedule-list {
  border-top: 1px solid var(--line);
}

.schedule-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1.4fr) minmax(0, 1fr) 90px;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 200ms ease, padding-inline 200ms var(--ease-out);
}

.schedule-row__day {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.schedule-row__name {
  font-weight: 600;
  font-size: 1.05rem;
}

.schedule-row__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.schedule-row__time {
  font-family: var(--font-display);
  font-size: 1.4rem;
  text-align: right;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .schedule-row:hover {
    background: rgba(244, 240, 231, 0.035);
    padding-inline: 0.75rem;
  }
}

@media (max-width: 700px) {
  .schedule-row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
  }

  .schedule-row__day {
    grid-column: 1;
  }

  .schedule-row__time {
    grid-column: 2;
    grid-row: 1;
  }

  .schedule-row__name {
    grid-column: 1 / -1;
  }

  .schedule-row__meta {
    grid-column: 1 / -1;
  }
}

/* filtros con indicador deslizante */

.filters {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  margin-bottom: 2rem;
}

.filters__indicator {
  position: absolute;
  top: 0.3rem;
  bottom: 0.3rem;
  left: 0.3rem;
  width: 0;
  background: var(--paper);
  border-radius: 1px;
  transform: translateX(0);
  transition: transform 250ms var(--ease-in-out), width 250ms var(--ease-in-out);
  z-index: 0;
  pointer-events: none;
}

.filter-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.filter-btn[aria-selected="true"] {
  color: var(--ink);
}

/* ---------- equipo ---------- */

.instructor__media {
  aspect-ratio: 3 / 4;
}

.instructor__role {
  display: block;
  margin-top: 0.35rem;
  color: var(--red-bright);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- galería ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  background: var(--ink-3);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform 160ms var(--ease-out);
}

.gallery-item:active {
  transform: scale(0.98);
}

.gallery-item--wide {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

.gallery-item--tall {
  grid-column: span 4;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item--duo {
  grid-column: span 6;
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out), filter 300ms ease;
}

.gallery-item__label {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(14, 15, 18, 0.85));
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.1);
  }
}

@media (max-width: 760px) {
  .gallery-item,
  .gallery-item--wide,
  .gallery-item--tall,
  .gallery-item--duo {
    grid-column: span 12;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 9, 11, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms var(--ease-out), visibility 250ms;
}

.lightbox[data-open="true"] {
  opacity: 1;
  visibility: visible;
}

.lightbox[data-instant="true"],
.lightbox[data-instant="true"] .lightbox__figure {
  transition-duration: 0ms;
}

.lightbox__figure {
  margin: 0;
  width: min(100%, 1000px);
  transform: scale(0.96);
  transition: transform 250ms var(--ease-out);
}

.lightbox[data-open="true"] .lightbox__figure {
  transform: scale(1);
}

.lightbox__figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: var(--ink-2);
}

.lightbox__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lightbox__close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top, 0px));
  right: 1rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(14, 15, 18, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}

.lightbox__close:active {
  transform: scale(0.94);
}

/* ---------- contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

@media (max-width: 850px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-block {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.contact-block__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.5rem;
}

.contact-block__value {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.contact-block__value--secondary {
  display: block;
  margin-top: 0.2rem;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
}

.contact-block__note {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color 200ms ease, background-color 200ms ease;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--red-bright);
  background: var(--ink-3);
  outline: none;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.4em;
}

.form-note[data-state="ok"] {
  color: var(--gold);
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* mapa */

.map {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--ink-2);
  border: 1px solid var(--line);
}

.map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}

.map__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.map__caption a {
  color: var(--red-bright);
  font-weight: 600;
}

/* ---------- CTA final ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--red);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.cta-band::after {
  content: "KAMEHOUSE";
  position: absolute;
  right: -2vw;
  bottom: -3.5rem;
  font-family: var(--font-brush);
  font-size: clamp(7rem, 15.5vw, 18rem);
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  white-space: nowrap;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band .display {
  color: #fff;
  max-width: 18ch;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (hover: hover) and (pointer: fine) {
  .footer-list a:hover {
    color: var(--text);
  }
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- revelados al scroll ---------- */

/* La visibilidad se anima con transform/opacity: clip-path en el propio
   objetivo hace que IntersectionObserver lo vea con área cero y nunca dispare. */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

[data-reveal][data-visible="true"] {
  opacity: 1;
  transform: none;
}

[data-stagger] > [data-reveal] {
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ---------- ajustes dedicados a móvil ---------- */

@media (max-width: 640px) {
  :root {
    --gutter: 1.25rem;
  }

  .site-header__inner {
    gap: 0.75rem;
  }

  .brand__mark--3d {
    width: 36px;
    height: 36px;
  }

  .brand__name {
    font-size: 1.2rem;
  }

  .brand__sub {
    font-size: 0.5rem;
    letter-spacing: 0.22em;
  }

  .nav-toggle {
    flex: none;
  }

  .mobile-menu__link {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .mobile-menu__foot {
    font-size: 0.85rem;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2.25rem);
    padding-bottom: 2.5rem;
    align-items: flex-start;
  }

  .hero__grid {
    gap: 1.25rem;
  }

  .eyebrow {
    font-size: 0.68rem;
    margin-bottom: 0.9rem;
  }

  .hero__title {
    font-size: clamp(2.7rem, 11vw, 3.5rem);
  }

  .hero__lead {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 1.1rem;
  }

  .hero__actions {
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
    min-height: 48px;
    padding-inline: 1rem;
  }

  .hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding-top: 1.1rem;
  }

  .stat__value {
    font-size: 1.65rem;
  }

  .stat__label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .fekb-badge {
    width: 100%;
    margin-top: 1.25rem;
    transform: none;
  }

  .fekb-badge__logo {
    width: 44px;
  }

  .fekb-badge__text strong {
    font-size: 1rem;
  }

  .hero__visual {
    max-width: 360px;
  }

  .hero__emblem-stage {
    width: clamp(150px, 44vw, 200px);
  }

  .hero__caption {
    padding: 0.7rem 0.9rem;
  }

  .hero__caption strong {
    font-size: 1rem;
  }

  .hero__caption small {
    font-size: 0.6rem;
  }

  .marquee {
    padding-block: 0.85rem;
  }

  .marquee__group {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }

  .marquee__item {
    font-size: 1.05rem;
  }

  .section {
    padding-block: 4rem;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 3.5rem);
    padding-bottom: 3.5rem;
  }

  .display--lg {
    font-size: clamp(2.4rem, 11vw, 3.4rem);
  }

  .display--md {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .lead {
    font-size: 0.95rem;
  }

  .section-head {
    margin-bottom: 2rem;
  }

  .card__media {
    aspect-ratio: 16 / 10;
  }

  .card__body {
    padding: 1.25rem;
  }

  .card__title {
    font-size: 1.75rem;
  }

  .instructor__media {
    aspect-ratio: 4 / 5;
  }

  .schedule-row {
    gap: 0.4rem 0.75rem;
    padding-block: 1.1rem;
  }

  .schedule-row__name {
    font-size: 0.98rem;
  }

  .schedule-row__meta {
    font-size: 0.82rem;
  }

  .schedule-row__time {
    font-size: 1.25rem;
  }

  .filters {
    display: flex;
    flex-wrap: nowrap;
    width: calc(100% + var(--gutter));
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding-inline: 0.85rem;
    font-size: 0.72rem;
  }

  .filter-btn:active,
  .nav-toggle:active {
    transform: scale(0.96);
  }

  .text-link:active,
  .breadcrumb a:active,
  .footer-list a:active {
    opacity: 0.65;
  }

  .gallery-item__label {
    padding: 1.75rem 0.9rem 0.75rem;
    font-size: 0.95rem;
  }

  .lightbox__figure img {
    max-height: 78svh;
  }

  .lightbox__caption {
    flex-direction: column;
    gap: 0.25rem;
  }

  .map,
  .map iframe {
    min-height: 280px;
  }

  .cta-band__inner {
    align-items: stretch;
  }

  .cta-band__inner .btn {
    width: 100%;
  }

  .cta-band::after {
    bottom: -2rem;
    font-size: 7rem;
  }

  .footer-grid {
    gap: 2rem;
    padding-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.35rem;
  }
}

/* ---------- accesibilidad / movimiento reducido ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__title .line > span,
  .hero__lead,
  .hero__actions,
  .hero__stats,
  .hero__visual {
    opacity: 1;
    transform: none;
    animation: none;
  }

  [data-reveal],
  [data-reveal][data-visible="true"] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee__track,
  .hero__emblem-stage,
  .hero__emblem-float {
    animation: none;
  }

  .parallax {
    transform: none !important;
    will-change: auto;
  }

  .card__media img,
  .gallery-item img {
    transition: none;
  }

  .mobile-menu,
  .lightbox,
  .lightbox__figure,
  .filters__indicator {
    transition-duration: 120ms;
  }
}
