/* LANT FIT — mobile first */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}

:root {
  --bg: #0b0b0c;
  --bg-2: #131316;
  --bg-3: #1b1b1f;
  --ink: #f4f4f2;
  --muted: #a2a2ab;
  --line: #26262c;
  --accent: #e6332a;
  --accent-press: #c72a25;
  --cyan: #35d0ca;
  --chrome: linear-gradient(180deg, #ffffff 0%, #c9ccd4 55%, #878b96 100%);
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 64px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(11, 11, 12, .82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}

.site-header { gap: clamp(12px, 2vw, 26px); }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand svg { height: 34px; width: auto; }

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #25d366;
  color: #06301b;
  font-weight: 600;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s, background .2s;
}

.btn-contact:hover { background: #3ce27b; }
.btn-contact:active { transform: scale(.96); }
.btn-contact svg { width: 19px; height: 19px; }

@media (max-width: 640px) {
  .btn-contact { padding: 10px 16px; font-size: 14px; }
  .btn-contact svg { width: 17px; height: 17px; }
}

.nav {
  position: fixed;
  inset: 0;
  background: rgba(11, 11, 12, .96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.nav.open { opacity: 1; pointer-events: auto; }

.nav a {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 44px);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 18px;
}

.nav a.active, .nav a:hover { color: var(--accent); }

.nav-toggle {
  z-index: 60;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: "";
  display: block;
  width: 26px; height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform .3s, opacity .3s;
}

.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav {
    position: static;
    inset: auto;
    background: none;
    flex-direction: row;
    gap: 34px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav a { font-size: 15px; letter-spacing: .14em; padding: 4px 0; }
  .nav-toggle { display: none; }
}

/* ---------- story: canvas sticky de fondo + páginas de contenido encima ---------- */

.story { position: relative; }

.story__bg {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.story__pages {
  position: relative;
  z-index: 1;
  margin-top: -100vh;
  margin-top: -100svh;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--header-h) + 20px) var(--pad) 56px;
}

.page--hero {
  position: relative;
  align-content: end;
  justify-items: center;
  padding-bottom: 118px;
}

.page--hero .eyebrow {
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  width: min(100%, 1320px);
  background: rgba(11, 11, 12, .94);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  padding: clamp(30px, 5vw, 64px);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}

.panel .section-head { margin-bottom: clamp(20px, 3vw, 34px); }

.panel h2 { font-size: clamp(30px, 5.5vw, 52px); }

.panel-sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 34px);
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: clamp(30px, 5vw, 48px) 0 18px;
}

.schedule-fig {
  margin: 0 auto;
  max-width: 980px;
  cursor: zoom-in;
  border-radius: 16px;
  overflow: hidden;
}

.schedule-fig img {
  width: 100%;
  display: block;
}

.panel .map iframe { min-height: 260px; }

/* ---------- hero scrub ---------- */

.hero {
  /* altura total de scroll del relato; el JS no la necesita exacta */
  height: 560svh;
  position: relative;
}

.hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}

.hero-milestone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding: 0 var(--pad) clamp(76px, 14svh, 150px);
  opacity: 0;
  pointer-events: none;
}

.hero-milestone .eyebrow {
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-milestone .display {
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 110px);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: .015em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .6));
}

.hero-milestone .display .accent {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--accent);
}

.hero-milestone .cta-row { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.hero__cue {
  position: absolute;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  transition: opacity .4s;
  pointer-events: none;
}

.hero__cue::after {
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--muted), transparent);
  animation: cue 1.6s ease-in-out infinite;
}

@keyframes cue {
  0% { transform: scaleY(.2); transform-origin: top; opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .2s, background .2s, border-color .2s;
  cursor: pointer;
}

.btn:active { transform: scale(.97); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #f04338; }

.btn-ghost { border-color: rgba(244, 244, 242, .35); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.btn svg { width: 18px; height: 18px; }

/* ---------- secciones ---------- */

.section {
  padding: clamp(72px, 12vw, 130px) var(--pad);
  max-width: 1180px;
  margin: 0 auto;
  scroll-margin-top: var(--header-h);
}

.section-head { margin-bottom: clamp(30px, 6vw, 56px); max-width: 720px; }

.section-head .eyebrow {
  font-size: 12px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 7.5vw, 64px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .01em;
  font-weight: 400;
}

.lead { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin-top: 18px; }
.lead strong { color: var(--ink); }

/* chips servicios */

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.chip {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.chip.hot { border-color: rgba(230, 51, 42, .5); color: #ff6b61; }
.chip.cool { border-color: rgba(53, 208, 202, .45); color: var(--cyan); }

.badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}

/* galerías */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.grid figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  border-radius: 16px;
  background: #131316;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .35);
}

.grid figure.wide { aspect-ratio: 16 / 10; grid-column: span 2; }

.grid img,
.grid video,
.carousel img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .6, .2, 1);
}

.grid figure:hover img,
.carousel figure:hover img { transform: scale(1.045); }

.grid img.cutout {
  object-fit: contain;
  object-position: bottom center;
  transform-origin: bottom center;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .55));
}

/* el recorte flota sobre el fondo de la propia página, sin tarjeta */
.grid figure:has(img.cutout) {
  background: none;
  border: none;
  box-shadow: none;
}

.grid figure:has(img.cutout) figcaption { background: none; }

/* carrusel */

.carousel-wrap { position: relative; }

.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 2px 16px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar { display: none; }

.carousel figure {
  flex: 0 0 auto;
  width: min(80vw, 520px);
  aspect-ratio: 3 / 4;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 16px;
  background: #131316;
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .35);
}

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(11, 11, 12, .7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.car-btn:hover { border-color: var(--ink); }

.car-prev { left: -8px; }
.car-next { right: -8px; }

@media (max-width: 640px) {
  .car-btn { display: none; }
}

.grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  text-align: center;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78));
}

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .grid figure.wide { grid-column: span 2; }
}

.section-cta { margin-top: 34px; }

/* equipo teaser */

.team-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }

.team-grid figure { aspect-ratio: 3 / 4.4; }

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .team-grid figure:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}

/* horario */

.schedule {
  width: 100%;
  border-collapse: collapse;
  max-width: 640px;
}

.schedule th, .schedule td {
  padding: 16px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.schedule th {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.schedule td { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.schedule tr.closed td { color: var(--accent); }

.note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* contacto */

.contact-wrap {
  display: grid;
  gap: 34px;
}

.contact-list { display: grid; gap: 14px; margin-top: 26px; }

.contact-list .btn { justify-content: flex-start; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 320px;
  background: var(--bg-2);
}

.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

.map-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.map-placeholder small { color: var(--muted); opacity: .8; }

.map-col { display: grid; gap: 14px; align-content: start; }

.map-col .btn { justify-self: start; }

.address {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.address strong { color: var(--ink); font-size: 17px; }

@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr 1.2fr; align-items: start; }
}

/* subpáginas: banda hero */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(70px, 14vw, 150px)) var(--pad) clamp(50px, 9vw, 110px);
  overflow: hidden;
  background: #000;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-img, url("../assets/img/kf_05.webp"));
  background-size: cover;
  background-position: center;
  opacity: .38;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, var(--bg));
}

.page-hero .inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }

.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 11vw, 110px);
  line-height: .98;
  text-transform: uppercase;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* equipo página */

.person {
  display: grid;
  gap: 22px;
  padding: clamp(40px, 7vw, 70px) 0;
  border-top: 1px solid var(--line);
}

.person:first-of-type { border-top: 0; }

.person h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 6vw, 48px);
  text-transform: uppercase;
}

.person .role { color: var(--accent); letter-spacing: .2em; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; }

.person p { color: var(--muted); max-width: 560px; }

.person .grid { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 900px) {
  .person { grid-template-columns: minmax(280px, 1fr) 2.1fr; align-items: start; }
  .person .grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* lightbox */

.lightbox {
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, .92);
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox[open] { display: flex; }

.lightbox img {
  max-width: 94vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox button {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

/* footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 46px var(--pad) calc(46px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer svg { height: 30px; width: auto; }

.site-footer .social { display: flex; gap: 22px; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }

.site-footer .social a:hover { color: var(--ink); }

/* reveals */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2, .6, .2, 1), transform .8s cubic-bezier(.2, .6, .2, 1);
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero { height: auto; }
  .hero__sticky { position: relative; height: 100svh; }
  .hero__cue { display: none; }
}
