/* TactiCourt — web pública v2
   Paleta tomada del logo: turquesa (#2bc8de), ámbar (#f6b93b) y verde-azulado
   profundo. Nada de negro puro: el fondo es un teal muy oscuro con blooms
   difuminados, y las secciones alternan con papel cálido. */

/* Tipografías propias (Manrope e Instrument Serif, licencia OFL): se sirven desde
   este dominio. NO se cargan de Google Fonts: eso envía la IP de cada visitante a
   Google sin consentimiento (RGPD; ver docs/33-cumplimiento-legal.md). */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-latin-500-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-500-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-latin-600-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-600-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-latin-700-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-700-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/manrope-latin-800-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/manrope-latin-ext-800-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #06171c;
  --ink-2: #0a222a;
  --deep: #0b2831;
  --mid: #12414d;
  --line: rgba(126, 214, 226, 0.18);
  --line-strong: rgba(126, 214, 226, 0.35);
  --cy: #2bc8de;
  --cy-2: #7ff0ff;
  --cy-deep: #0e7d90;
  --am: #f6b93b;
  --am-2: #ffdf9b;
  --paper: #f4f1ea;
  --paper-2: #fffdf8;
  --on-dark: #eaf6f6;
  --on-dark-soft: #a9c6c9;
  --on-light: #0b2129;
  --on-light-soft: #4c6a71;
  --radius: 26px;
  --radius-s: 16px;
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.65);
  --shadow-soft: 0 24px 60px -28px rgba(4, 30, 36, 0.5);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1220px;
  --pad: 26px;
  --font: "Manrope", "SF Pro Text", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h1 {
  font-size: clamp(42px, 5.6vw, 78px);
}

h2 {
  font-size: clamp(32px, 4.1vw, 56px);
}

h3 {
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -0.025em;
}

p {
  margin: 0;
}

em,
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--am);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--am), transparent);
}

section {
  position: relative;
  /* clip (no hidden) para que los blooms no ensanchen la página sin romper
     el position: sticky de la sección «Una semana». */
  overflow-x: clip;
}

.pad {
  padding: clamp(72px, 9vw, 132px) 0;
}

/* ---------- blooms difuminados ---------- */
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.bloom-cy {
  background: radial-gradient(circle, rgba(43, 200, 222, 0.85), transparent 68%);
}

.bloom-am {
  background: radial-gradient(circle, rgba(246, 185, 59, 0.6), transparent 68%);
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.42 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    background 0.25s ease,
    color 0.25s ease;
}

.btn svg {
  flex: none;
}

.btn-main {
  background: linear-gradient(135deg, var(--cy-2), var(--cy) 45%, #16a8c4);
  color: #05202a;
  box-shadow:
    0 16px 40px -14px rgba(43, 200, 222, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-main:hover {
  transform: translateY(-3px);
  box-shadow:
    0 26px 60px -16px rgba(43, 200, 222, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-dark);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  transform: translateY(-3px);
  background: rgba(43, 200, 222, 0.12);
  border-color: var(--cy);
}

.btn-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.btn-dark:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.btn-sm {
  padding: 11px 18px;
  font-size: 14px;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    backdrop-filter 0.4s ease;
}

.nav-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav.is-stuck {
  background: rgba(6, 23, 28, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.brand span {
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--on-dark-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cy), var(--am));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-burger {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--on-dark);
  padding: 9px 11px;
  cursor: pointer;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 70px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 34%;
  filter: saturate(0.8) contrast(1.04) brightness(1.16);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      105deg,
      rgba(6, 23, 28, 0.96) 6%,
      rgba(6, 23, 28, 0.66) 44%,
      rgba(6, 23, 28, 0.3) 100%
    ),
    linear-gradient(0deg, var(--ink) 2%, rgba(6, 23, 28, 0) 46%),
    radial-gradient(70% 60% at 18% 30%, rgba(43, 200, 222, 0.28), transparent 70%),
    radial-gradient(50% 50% at 88% 78%, rgba(246, 185, 59, 0.22), transparent 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 46px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  margin: 20px 0 22px;
}

.hero-copy h1 .grad {
  background: linear-gradient(100deg, var(--cy-2), var(--cy) 40%, var(--am));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(17px, 1.35vw, 19.5px);
  color: var(--on-dark-soft);
  max-width: 52ch;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin: 32px 0 22px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--on-dark-soft);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cy);
  box-shadow: 0 0 0 0 rgba(43, 200, 222, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(43, 200, 222, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(43, 200, 222, 0);
  }
}

/* dispositivo flotante del hero */
.device-stack {
  position: relative;
  perspective: 1500px;
}

.device {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(18, 65, 77, 0.9), rgba(6, 23, 28, 0.95));
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease);
}

.device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.device-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.device-bar i:first-child {
  background: var(--cy);
}

.device-bar span {
  margin-left: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--on-dark-soft);
}

.device video,
.device > img {
  width: 100%;
  display: block;
}

.float-card {
  position: absolute;
  border-radius: 18px;
  padding: 14px 18px;
  background: rgba(9, 34, 41, 0.82);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  animation: floaty 7s ease-in-out infinite;
}

.float-card b {
  display: block;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.float-card small {
  color: var(--on-dark-soft);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fc-1 {
  left: -42px;
  bottom: 9%;
}

.fc-2 {
  right: -22px;
  top: 12%;
  animation-delay: -3.5s;
}

.ico-round {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, var(--cy), var(--cy-deep));
  color: #06222a;
}

.ico-round.am {
  background: linear-gradient(140deg, var(--am-2), var(--am));
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-13px);
  }
}

/* ---------- barra de cifras ---------- */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(43, 200, 222, 0.07), rgba(246, 185, 59, 0.06));
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0;
}

.stat b {
  display: block;
  font-size: clamp(30px, 3.4vw, 44px);
  letter-spacing: -0.045em;
  font-weight: 800;
  background: linear-gradient(120deg, var(--cy-2), var(--am));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 13px;
  color: var(--on-dark-soft);
  font-weight: 600;
}

/* ---------- secciones claras ---------- */
.light {
  background: var(--paper);
  color: var(--on-light);
}

.light .lead,
.light .muted {
  color: var(--on-light-soft);
}

.light .kicker {
  color: #b4791a;
}

/* ---------- storytelling con sticky ---------- */
.week {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.week-steps {
  display: grid;
  gap: 10px;
}

.step {
  padding: 22px 24px;
  border-radius: var(--radius-s);
  border: 1px solid rgba(11, 33, 41, 0.1);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    background 0.4s var(--ease),
    border-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.step:hover {
  transform: translateX(4px);
}

.step.is-on {
  background: #fff;
  border-color: rgba(43, 200, 222, 0.55);
  box-shadow: 0 20px 45px -30px rgba(6, 40, 49, 0.7);
}

.step-h {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.step-n {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  background: rgba(11, 33, 41, 0.08);
  color: var(--on-light-soft);
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

.step.is-on .step-n {
  background: linear-gradient(140deg, var(--cy), var(--cy-deep));
  color: #06222a;
}

.step p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--on-light-soft);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.5s var(--ease),
    opacity 0.4s ease,
    margin 0.4s ease;
}

.step.is-on p {
  max-height: 160px;
  opacity: 1;
}

.week-stage {
  position: sticky;
  top: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--deep), var(--ink));
  border: 1px solid rgba(11, 33, 41, 0.12);
  box-shadow: 0 50px 90px -50px rgba(6, 40, 49, 0.85);
  aspect-ratio: 16 / 10;
}

.week-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.7s var(--ease),
    transform 1.2s var(--ease);
}

.week-stage img.is-on {
  opacity: 1;
  transform: scale(1);
}

/* ---------- bento de módulos ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 65, 77, 0.55), rgba(9, 34, 41, 0.75));
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    border-color 0.4s ease,
    box-shadow 0.45s var(--ease);
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.card-wide {
  grid-column: span 3;
}

/* Tarjeta a todo lo ancho: la imagen a un lado y el texto al otro. */
.card-full {
  grid-column: span 6;
  flex-direction: row;
  align-items: stretch;
}
.card-full .card-shot {
  flex: 1.7;
  aspect-ratio: auto;
}
.card-full .card-shot img {
  height: auto;
  display: block;
}
.card-full .card-body {
  flex: 1;
  align-content: center;
  padding: 32px 34px;
}

.card-shot {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink-2);
}

.card-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  filter: saturate(0.85);
  transform: scale(1.01);
  transition:
    transform 1s var(--ease),
    filter 0.6s ease;
}

.card:hover .card-shot img {
  transform: scale(1.07);
  filter: saturate(1.05);
}

.card-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(6, 23, 28, 0.85));
}

.card-body {
  padding: 22px 24px 26px;
  display: grid;
  gap: 9px;
}

.card-body p {
  font-size: 14.5px;
  color: var(--on-dark-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cy-2);
  background: rgba(43, 200, 222, 0.12);
  border: 1px solid rgba(43, 200, 222, 0.28);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ---------- cita a pantalla completa ---------- */
.quote {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 74svh;
  display: flex;
  align-items: flex-end;
}

.quote img.bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}

.quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      0deg,
      var(--ink) 4%,
      rgba(6, 23, 28, 0.35) 55%,
      rgba(6, 23, 28, 0.75)
    ),
    radial-gradient(60% 60% at 20% 80%, rgba(43, 200, 222, 0.25), transparent 70%);
}

.quote-in {
  padding-bottom: clamp(50px, 7vw, 92px);
  max-width: 900px;
}

.quote-in blockquote {
  margin: 18px 0 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.by {
  font-size: 13.5px;
  color: var(--on-dark-soft);
  font-weight: 600;
}

/* ---------- pizarra ---------- */
.board-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.board-list {
  display: grid;
  gap: 2px;
  margin-top: 26px;
}

.board-list div {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  font-size: 15.5px;
}

.board-list b {
  color: var(--am);
  font-size: 13px;
  padding-top: 2px;
}

.board-panel {
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(150deg, rgba(43, 200, 222, 0.18), rgba(246, 185, 59, 0.12));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.board-panel svg,
.board-panel video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #f7f3e6;
}

/* ---------- salud y post-entreno ---------- */
.salud-figura {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(150deg, rgba(43, 200, 222, 0.18), rgba(246, 185, 59, 0.12));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.salud-figura > img:first-child {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
/* El móvil, encima y algo salido: se ve que son dos pantallas del mismo sitio. */
.salud-movil {
  position: absolute;
  /* Sale por la esquina en vez de sentarse encima: al crecer tapaba los títulos
     de las lesiones, que es lo que la captura tiene que enseñar. */
  right: -4%;
  bottom: -48px;
  /* A 190 px el cuestionario salía con letra de 6,7 px: ilegible. Con 220 y la
     captura tomada a 360 de ancho (un móvil de verdad) se lee. */
  width: 36%;
  max-width: 220px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
@media (max-width: 760px) {
  .salud-movil {
    position: static;
    width: 56%;
    margin: 14px auto 0;
    display: block;
  }
}

/* La pantalla del equipo con todos sus módulos: sustituye a la foto de archivo
   del banquillo (dueño, 2026-09-21). */
.app-entera {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(6, 40, 49, 0.85);
}

/* La carga de la temporada, debajo de salud y el post-entreno. */
.carga {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}
.carga h3 {
  margin: 14px 0 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.carga p {
  margin: 0 0 12px;
  max-width: 46ch;
}
.carga img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 34px 60px -30px rgba(6, 40, 49, 0.9);
}

/* ---------- planes ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.plan {
  border-radius: var(--radius);
  border: 1px solid rgba(11, 33, 41, 0.12);
  background: var(--paper-2);
  padding: 26px 24px 28px;
  display: grid;
  gap: 14px;
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.3s ease;
}

.plan:hover {
  transform: translateY(-7px);
  box-shadow: 0 40px 70px -45px rgba(6, 40, 49, 0.75);
}

.plan-best {
  background: linear-gradient(165deg, var(--ink-2), var(--deep));
  color: var(--on-dark);
  border-color: transparent;
  box-shadow: 0 40px 80px -40px rgba(6, 40, 49, 0.9);
}

.plan-best .price small,
.plan-best li {
  color: var(--on-dark-soft);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 9px;
}

.badge {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--cy), var(--am));
  color: #06222a;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.price small {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--on-light-soft);
}

.plan ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 14.5px;
  color: var(--on-light-soft);
}

.plan li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.plan li svg {
  flex: none;
  margin-top: 3px;
  color: var(--cy-deep);
}

.plan-best li svg {
  color: var(--cy);
}

.switch {
  display: inline-flex;
  padding: 5px;
  border-radius: 999px;
  background: rgba(11, 33, 41, 0.07);
  gap: 4px;
}

.switch button {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-weight: 800;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--on-light-soft);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.switch button.is-on {
  background: var(--ink);
  color: var(--on-dark);
}

/* ---------- descargas ---------- */
.dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dl-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 65, 77, 0.5), rgba(9, 34, 41, 0.7));
  padding: 28px 26px;
  display: grid;
  gap: 13px;
  align-content: start;
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s ease;
}

.dl-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
}

.dl-card p {
  font-size: 14.5px;
  color: var(--on-dark-soft);
}

/* ---------- faq ---------- */
.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq details {
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 20px;
  transition: border-color 0.3s ease;
}

.faq details[open] {
  border-color: var(--line-strong);
  background: rgba(43, 200, 222, 0.06);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 16.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 21px;
  font-weight: 400;
  color: var(--cy);
  transition: transform 0.3s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  padding: 0 0 18px;
  color: var(--on-dark-soft);
  font-size: 15px;
  max-width: 72ch;
}

/* ---------- cierre + footer ---------- */
.final {
  text-align: center;
  border-radius: 36px;
  padding: clamp(46px, 6vw, 80px) 28px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(43, 200, 222, 0.25), transparent 65%),
    linear-gradient(160deg, var(--ink-2), var(--deep));
  border: 1px solid var(--line-strong);
  position: relative;
  overflow: hidden;
}

.final h2 {
  max-width: 20ch;
  margin: 16px auto 18px;
}

.final .lead {
  margin: 0 auto;
}

.final .hero-cta {
  justify-content: center;
}

footer {
  border-top: 1px solid var(--line);
  padding: 52px 0 34px;
  font-size: 14.5px;
  color: var(--on-dark-soft);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.85fr);
  gap: 28px;
}

.foot-grid h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark);
  margin-bottom: 14px;
}

.foot-grid a {
  display: block;
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.25s ease;
}

.foot-grid a:hover {
  color: var(--cy);
}

.redes {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.red {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--on-dark-soft);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--ease);
}
a.red:hover {
  color: var(--cy-2);
  border-color: var(--cy-2);
  transform: translateY(-2px);
}
.red-pendiente {
  opacity: 0.55;
  cursor: default;
}

.foot-legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}

/* ---------- chat IA ---------- */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 13px 15px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 14.5px;
  color: #05202a;
  background: linear-gradient(135deg, var(--cy-2), var(--cy) 48%, var(--am));
  box-shadow: 0 20px 45px -14px rgba(43, 200, 222, 0.7);
  transition:
    transform 0.35s var(--ease),
    opacity 0.3s ease;
}

.chat-fab:hover {
  transform: translateY(-3px) scale(1.02);
}

.chat-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 121;
  width: min(400px, calc(100vw - 32px));
  height: min(620px, calc(100svh - 44px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(170deg, rgba(11, 40, 49, 0.98), rgba(6, 23, 28, 0.99));
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.chat-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 15px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(43, 200, 222, 0.16), rgba(246, 185, 59, 0.1));
}

.chat-head img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.chat-head b {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.chat-head small {
  color: var(--on-dark-soft);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-x {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--on-dark);
  cursor: pointer;
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.msg {
  max-width: 86%;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  animation: msgIn 0.4s var(--ease) both;
}

.msg strong {
  color: #fff;
}

.msg a {
  color: var(--cy-2);
}

.msg-bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}

.msg-me {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--cy), var(--cy-deep));
  color: #05202a;
  font-weight: 600;
  border-bottom-right-radius: 6px;
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.typing {
  display: inline-flex;
  gap: 4px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--on-dark-soft);
  animation: blink 1.2s infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.2s;
}

.typing i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.25;
  }
  30% {
    opacity: 1;
  }
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 16px 12px;
}

.chip {
  border: 1px solid var(--line-strong);
  background: rgba(43, 200, 222, 0.08);
  color: var(--on-dark);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.chip:hover {
  background: rgba(43, 200, 222, 0.2);
  transform: translateY(-2px);
}

.chat-form {
  display: flex;
  gap: 9px;
  padding: 13px 14px 15px;
  border-top: 1px solid var(--line);
  background: rgba(6, 23, 28, 0.7);
}

.chat-form input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--on-dark);
  font-family: inherit;
  font-size: 14.5px;
}

.chat-form input::placeholder {
  color: rgba(169, 198, 201, 0.7);
}

.chat-form input:focus {
  outline: none;
  border-color: var(--cy);
}

.chat-send {
  width: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cy-2), var(--cy));
  color: #05202a;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.chat-foot {
  font-size: 11px;
  color: rgba(169, 198, 201, 0.7);
  text-align: center;
  padding: 0 14px 12px;
  background: rgba(6, 23, 28, 0.7);
}

/* ---------- reveals ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid,
  .week,
  .board-grid,
  .carga {
    grid-template-columns: 1fr;
  }
  .carga {
    gap: 28px;
  }
  .week-stage {
    position: relative;
    top: 0;
    order: -1;
  }
  .plans,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dl {
    grid-template-columns: 1fr;
  }
  .card,
  .card-wide,
  .card-full {
    grid-column: span 3;
    flex-direction: column;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fc-1 {
    left: 0;
  }
  .fc-2 {
    right: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .nav-in {
    gap: 10px;
    padding: 12px 18px;
  }
  .brand span {
    font-size: 17px;
  }
  .btn-sm {
    padding: 10px 14px;
    font-size: 13px;
  }
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: block;
  }
  .nav.is-open .nav-links {
    display: grid;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(6, 23, 28, 0.97);
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(16px);
  }
  .card,
  .card-wide,
  .card-full,
  .bento {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
    padding-top: 108px;
  }
  .float-card {
    display: none;
  }
  .chat-fab span {
    display: none;
  }
  .chat-fab {
    padding: 15px;
  }
  .chat-panel {
    right: 10px;
    bottom: 10px;
    height: calc(100svh - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-card,
  .dot-live {
    animation: none;
  }
}

/* ---------- jugada animada del bloque «pizarra» ----------
   Los pasos van en el mismo orden en que se dibujaría la jugada:
   1) 4 sube a bloquear · 2) 2 corta · 3) 1 pasa · 4) 2 tira. */
.board-panel .ln {
  fill: none;
  stroke: #0b2129;
  stroke-width: 2.6;
  stroke-linecap: round;
}

.board-panel .ln-1 {
  stroke-dasharray: 330;
  stroke-dashoffset: 330;
  animation: lnDraw 9s ease-in-out infinite;
}

.board-panel .ln-2 {
  stroke: #0e7d90;
  stroke-dasharray: 9 8;
  opacity: 0;
  animation: lnPass 9s ease-in-out infinite;
}

@keyframes lnDraw {
  0%,
  20% {
    stroke-dashoffset: 330;
  }
  46%,
  92% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 330;
  }
}

@keyframes lnPass {
  0%,
  46% {
    opacity: 0;
  }
  54%,
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.board-panel .tk,
.board-panel .ball {
  animation-duration: 9s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.45, 0, 0.25, 1);
}

.board-panel .tk-1 {
  transform: translate(150px, 250px);
}

.board-panel .tk-2 {
  animation-name: tk2;
}

.board-panel .tk-4 {
  animation-name: tk4;
}

.board-panel .tk-5 {
  animation-name: tk5;
}

.board-panel .ball {
  animation-name: ballPath;
}

@keyframes tk2 {
  0%,
  22% {
    transform: translate(300px, 214px);
  }
  48%,
  94% {
    transform: translate(236px, 100px);
  }
  100% {
    transform: translate(300px, 214px);
  }
}

@keyframes tk4 {
  0%,
  4% {
    transform: translate(250px, 192px);
  }
  22%,
  94% {
    transform: translate(258px, 138px);
  }
  100% {
    transform: translate(250px, 192px);
  }
}

@keyframes tk5 {
  0%,
  58% {
    transform: translate(112px, 158px);
  }
  80%,
  94% {
    transform: translate(150px, 120px);
  }
  100% {
    transform: translate(112px, 158px);
  }
}

@keyframes ballPath {
  0%,
  44% {
    transform: translate(164px, 258px);
  }
  60%,
  68% {
    transform: translate(250px, 108px);
  }
  78% {
    transform: translate(234px, 46px);
  }
  86%,
  94% {
    transform: translate(212px, 36px);
  }
  100% {
    transform: translate(164px, 258px);
  }
}

/* FAQ sobre fondo claro: el bloque nació para el fondo oscuro. */
.light .faq details {
  border-color: rgba(11, 33, 41, 0.12);
  background: rgba(255, 255, 255, 0.6);
}

.light .faq details[open] {
  background: #fff;
  border-color: rgba(43, 200, 222, 0.55);
  box-shadow: 0 22px 45px -34px rgba(6, 40, 49, 0.8);
}

.light .faq p {
  color: var(--on-light-soft);
}

.light .faq summary::after {
  color: var(--cy-deep);
}

/* Pie legal (lo rellena scripts/legal.mjs) */
.foot-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}
.foot-legal-links a {
  opacity: 0.9;
}
.btn-cookies-pie {
  font: inherit;
  font-size: 0.9rem;
  color: inherit;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
}
.btn-cookies-pie:hover {
  border-color: #2bc8de;
}
.foot-titular {
  margin: 10px 0 0;
  font-size: 0.85rem;
  opacity: 0.8;
  max-width: none;
}
.foot-titular mark.falta {
  background: #f6b93b;
  color: #06171c;
  padding: 1px 4px;
  border-radius: 4px;
}
