/* ==========================================================================
   Kiwi Academy · Landing
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

/* Fallback con métricas de Inter para que no salte el layout al cargar la fuente */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

:root {
  --bg: #08090b;
  --surface: #0f1215;
  --surface-2: #151a1e;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);

  --text: #f2f4f5;
  --text-2: #a3aab2;
  --text-3: #80878f;

  --brand: #00909e;
  --accent: #22bdc9;
  --accent-hover: #4ccdd7;
  --accent-ink: #021b1d;
  --ok: #3ddc84;


  --radius-lg: 24px;
  --radius: 16px;
  --header-h: 64px;
  --pad: 20px;
  --max: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --pad: 32px; --header-h: 72px; }
}

/* Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html:has(dialog[open]) { overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgb(34 189 201 / 0.32); }

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

.i {
  width: 1.125em;
  height: 1.125em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* Botones ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 46px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: translateY(1px); }

.btn--sm { height: 40px; padding: 0 1rem; font-size: 0.875rem; }
.btn--lg { height: 54px; padding: 0 1.5rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--lg .i { transition: transform 0.25s var(--ease); }
.btn--lg:hover .i { transform: translateY(2px); }

/* Header -------------------------------------------------------------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}

.header.is-scrolled {
  background: rgb(8 9 11 / 0.8);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: block; flex: none; }
.logo img { width: auto; height: 34px; }
.logo--footer img { height: 52px; }

.nav {
  display: flex;
  margin-left: auto;
  gap: 18px;
}
.nav a {
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

/* En el celular "Agenda abierta" y el botón viven en la barra de abajo */
.header__actions {
  display: none;
  align-items: center;
  gap: 16px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
}

.status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgb(61 220 132 / 0.14);
}

@media (max-width: 359px) {
  .nav { gap: 14px; }
  .nav a { font-size: 0.8125rem; }
}

@media (min-width: 768px) {
  .logo img { height: 38px; }
  .nav { gap: 28px; }
  .nav a { font-size: 0.9375rem; }
  .header__actions { display: flex; }
}

/* Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + 36px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 820px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(55% 60% at 88% 0%, rgb(0 144 158 / 0.22), transparent 72%),
    radial-gradient(35% 40% at 0% 8%, rgb(0 144 158 / 0.07), transparent 70%);
}

/* Sello de pasaporte: el público vive afuera */
.stamp {
  display: block;
  width: min(292px, 100%);
  height: auto;
  overflow: visible;
  color: var(--accent);
  opacity: 0.9;
  transform: rotate(-2.5deg);
  transform-origin: 0 50%;
}
.stamp text { fill: currentColor; font-weight: 700; }
.stamp__lg { font-size: 13.6px; letter-spacing: 0.08em; text-anchor: middle; }
.stamp__sm { font-size: 9px; font-weight: 600; letter-spacing: 0.18em; }
.stamp__sm--start { text-anchor: start; }
.stamp__sm--end { text-anchor: end; }

@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: stamp 0.45s cubic-bezier(0.25, 0.9, 0.3, 1.2) 0.25s both; }
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-2.5deg) scale(1.35); }
  to { opacity: 0.9; transform: rotate(-2.5deg) scale(1); }
}

.hero__title {
  margin-top: 26px;
  max-width: 17ch;
  font-size: clamp(2.25rem, 1.3rem + 4.3vw, 4.75rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.hero__title-muted { color: var(--text-3); }

.hero__aside { margin-top: 22px; }

.lede {
  max-width: 34rem;
  color: var(--text-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
}
.lede strong { color: var(--text); font-weight: 600; }
.lede__link {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}
.lede__link:hover strong { color: var(--accent-hover); }

.hero__aside .btn { margin-top: 28px; }

@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--header-h) + 64px); }
  .stamp { width: 320px; }
  .hero__title { max-width: 21ch; font-size: clamp(3.5rem, 1rem + 4.4vw, 4.5rem); }
  .hero__aside {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 32px;
  }
  .hero__aside .btn { margin-top: 0; }
}

/* Bloque de agenda ---------------------------------------------------- */

.booking {
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.booking__info {
  padding: 24px 20px 26px;
  /* Perforación del pasaje, de muesca a muesca */
  background: linear-gradient(to right, var(--line-2) 55%, transparent 0) bottom left / 9px 1px repeat-x;
}

.booking__title {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.booking__title--lg {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  letter-spacing: -0.04em;
}

.booking__text {
  margin-top: 12px;
  max-width: 26rem;
  color: var(--text-2);
  font-size: 1.0625rem;
}
.booking__text--sm { margin-top: 10px; font-size: 0.9375rem; line-height: 1.55; }

/* Datos de la llamada, como en un pasaje */
.ticket {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0 0;
  border-block: 1px solid var(--line);
}
.ticket > div { padding: 12px 0; }
.ticket > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.ticket dt {
  color: var(--text-3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ticket dd {
  margin-top: 3px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Muescas de ticket en el corte entre los datos y el calendario.
   En el celular el corte es horizontal y su altura la calcula main.js (--cut). */
.booking.has-cut {
  -webkit-mask:
    radial-gradient(circle 11px at 0 var(--cut), #0000 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% var(--cut), #0000 10.5px, #000 11px) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle 11px at 0 var(--cut), #0000 10.5px, #000 11px) left / 51% 100% no-repeat,
    radial-gradient(circle 11px at 100% var(--cut), #0000 10.5px, #000 11px) right / 51% 100% no-repeat;
}

/* Reglas del evento en Calendly (el embed oculta su descripción) */
.rules { margin-top: 20px; }
.rules__title {
  color: var(--text-3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rules ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.rules li {
  position: relative;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.5;
}
.rules li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 1.5px;
  background: var(--accent);
}
.rules strong { color: var(--text); font-weight: 600; }

.booking__frame {
  position: relative;
  height: 610px;
  background: #fff;
  transition: height 0.3s var(--ease);
}

.booking__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.4s;
}
.booking__frame.is-loaded iframe { opacity: 1; }

.booking__loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 140px;
  color: #6b7280;
  font-size: 0.875rem;
  transition: opacity 0.3s;
}
.booking__frame.is-loaded .booking__loader { opacity: 0; pointer-events: none; }

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.booking__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .booking {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    margin-top: 72px;
  }
  .booking__info {
    display: flex;
    flex-direction: column;
    padding: 40px 36px;
    background: linear-gradient(to bottom, var(--line-2) 55%, transparent 0) top right / 1px 9px repeat-y;
  }
  .rules { margin-top: auto; padding-top: 28px; }
  .booking__frame { height: 680px; }

  /* En escritorio el corte es vertical, a la altura de la columna de datos */
  .booking,
  .booking.has-cut {
    -webkit-mask:
      radial-gradient(circle 11px at 341px 0, #0000 10.5px, #000 11px) top / 100% 51% no-repeat,
      radial-gradient(circle 11px at 341px 100%, #0000 10.5px, #000 11px) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle 11px at 341px 0, #0000 10.5px, #000 11px) top / 100% 51% no-repeat,
      radial-gradient(circle 11px at 341px 100%, #0000 10.5px, #000 11px) bottom / 100% 51% no-repeat;
  }
}

/* Secciones ----------------------------------------------------------- */

.section { padding-block: 96px; }
.section--line { border-top: 1px solid var(--line); }
.section--closing { padding-top: 0; }

@media (min-width: 1024px) {
  .section { padding-block: 140px; }
  .section--closing { padding-top: 0; }
}

.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin-top: 14px;
  max-width: 22ch;
  font-size: clamp(1.875rem, 1.2rem + 2.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.038em;
}

@media (min-width: 1024px) {
  .section-title { max-width: 25ch; }
}

.section-sub {
  margin-top: 18px;
  max-width: 34rem;
  color: var(--text-2);
  font-size: 1.0625rem;
}

/* Casos --------------------------------------------------------------- */

.cases {
  display: grid;
  gap: 16px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 64px; }
}

.case {
  --media-w: clamp(104px, 31vw, 136px);
  display: grid;
  grid-template-columns: var(--media-w) minmax(0, 1fr);
  grid-template-areas:
    "media body"
    "story story";
  gap: 20px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

/* Con tarjetas anchas (tablet en una columna, o escritorio en dos) el
   antes/después va al lado del video o gráfico */
@media (min-width: 640px) and (max-width: 899px), (min-width: 1100px) {
  .case {
    --media-w: 156px;
    grid-template-areas:
      "media body"
      "media story";
    grid-template-rows: auto 1fr;
    gap: 22px 24px;
    padding: 20px;
  }
}

.case__media {
  grid-area: media;
  align-self: start;
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
}

.case__body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 2px;
}

.case__place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 500;
}
.case__place .i { width: 15px; height: 15px; color: var(--text-3); }

.case__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 1.25rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.case__ig {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: -4px 0;
  border-radius: 9px;
  color: var(--accent);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.case__ig .i { width: 20px; height: 20px; }
.case__ig:hover { color: var(--accent-hover); background: rgb(34 189 201 / 0.12); }

.case__result { padding-top: 16px; }

.case__figure {
  display: block;
  font-size: clamp(2rem, 1.6rem + 1.4vw, 2.625rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.case__label {
  display: block;
  margin-top: 8px;
  color: var(--text-2);
  font-size: 0.875rem;
  line-height: 1.45;
}

.case__story {
  grid-area: story;
  display: grid;
  gap: 16px;
  align-content: start;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.case__story dl { display: grid; gap: 12px; }

.case__story dl > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
}

.case__story dt {
  padding-top: 3px;
  color: var(--text-3);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case__story dd {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.case__story .is-after dt { color: var(--accent); }
.case__story .is-after dd { color: var(--text); }

.case__quote {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
}
.case__quote blockquote { color: var(--text); font-size: 0.9375rem; line-height: 1.5; }
.case__quote figcaption { margin-top: 8px; color: var(--text-3); font-size: 0.8125rem; }

/* Video del caso */

.case__video { display: block; text-decoration: none; }

.case__video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.case__video:hover img { transform: scale(1.04); }

.case__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.45), transparent 40%);
  pointer-events: none;
}

.case__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.94);
  color: #0b0d0f;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
  transition: transform 0.25s var(--ease);
}
.case__play .i { width: 20px; height: 20px; margin-left: 2px; }
.case__video:hover .case__play { transform: scale(1.08); }

.case__duration {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Capturas de Instagram: antes / después */

.case.case--proof {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "body"
    "story";
  grid-template-rows: auto;
  align-content: start;
}

.case--proof .case__story dl { gap: 22px; }

.case__story .case__shot { grid-column: 1 / -1; }

.case__shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* Preguntas frecuentes ------------------------------------------------ */

.faq-layout { display: grid; gap: 40px; }

@media (min-width: 1024px) {
  .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
}

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.012em;
  -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover .faq__q { color: #fff; }

.faq__num {
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.faq__icon {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--text-2);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq__item[open] .faq__icon {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-ink);
}
.faq__item[open] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq__a {
  padding: 0 40px 24px 44px;
  color: var(--text-2);
}
.faq__a ul { margin: 0; padding-left: 1.1em; }
.faq__a li + li { margin-top: 6px; }
.faq__a li::marker { color: var(--accent); }
.faq__a a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }

@media (min-width: 768px) {
  .faq__item summary { grid-template-columns: 48px minmax(0, 1fr) 30px; gap: 12px; padding: 26px 0; font-size: 1.1875rem; }
  .faq__a { padding-left: 60px; font-size: 1.0625rem; }
}

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition: height 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; }
}

/* Footer -------------------------------------------------------------- */

.footer {
  padding: 64px 0 calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer__grid { display: grid; gap: 36px; }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
}

.footer__tag {
  margin-top: 16px;
  max-width: 24rem;
  color: var(--text-2);
}

.footer__contact { display: grid; gap: 12px; justify-items: start; }

.footer__label {
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__link .i { color: var(--text-3); transition: color 0.2s; }
.footer__link:hover,
.footer__link:hover .i { color: var(--accent); }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 0.8125rem;
}

/* Botón fijo en el celular ------------------------------------------- */

.dock {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px var(--pad) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgb(8 9 11 / 0.96) 60%, rgb(8 9 11 / 0));
  transform: translateY(110%);
  transition: transform 0.35s var(--ease);
}
.dock.is-visible { transform: none; }
.dock .btn { height: 52px; font-size: 1rem; }

@media (max-width: 359px) {
  .dock .status { display: none; }
  .dock .btn { flex: 1; }
}

@media (max-width: 767px) {
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) {
  .dock { display: none; }
}

/* Reproductor --------------------------------------------------------- */

.player {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: transparent;
}
.player[open] { display: grid; place-items: center; }

.player::backdrop {
  background: rgb(4 5 6 / 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.player__frame {
  position: relative;
  height: min(calc(100dvh - 32px), calc((100vw - 32px) * 16 / 9), 860px);
  aspect-ratio: 9 / 16;
}

.player video {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: #000;
  object-fit: cover;
}
.player video:focus { outline: none; }

.player__caption {
  position: absolute;
  top: 14px;
  left: 16px;
  right: 64px;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.5);
  pointer-events: none;
}

.player__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s;
}
.player__close:hover { background: rgb(0 0 0 / 0.75); }
.player__close .i { width: 20px; height: 20px; }

/* Movimiento reducido ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
