/* BeGoalkeeper — landing. Colores y medidas de begoalkeeper/design/tokens.css */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }

:root {
  --bg: #f5f6f8; --surface: #fff; --surface-2: #eceef2; --line: #d9dde4;
  --ink: #0b0b0c; --on-ink: #fff; --ink-muted: #545a64;
  --brand: #004aad; --on-brand: #fff; --brand-deep: #00337a; --brand-soft: #dce8fb;
  --danger: #b3400e; --danger-soft: #fbe3d7;
  --focus: #0b0b0c;
  --night: #0b0f17;
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.dark :focus-visible, footer :focus-visible { outline-color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }
.num { font-variant-numeric: tabular-nums; }

/* Tipografía */
.eyebrow { font: 600 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.dark .eyebrow { color: #9cc0ff; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(40px, 7.5vw, 64px); line-height: .92; letter-spacing: -.005em; }
h3 { font-size: 28px; line-height: 1; }
p { text-wrap: pretty; }
.lead { font-size: 18px; color: var(--ink-muted); max-width: 44ch; margin: 18px 0 0; }
.dark .lead { color: rgba(255,255,255,.8); }

/* Botones — respuesta al toque: se hunden un poco (scale .97) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: var(--r-md);
  font: 800 19px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; border: 2px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, color 150ms ease; user-select: none; }
.btn:active { transform: scale(.97); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 17px; }
@media (hover: hover) and (pointer: fine) {
  .btn-brand:hover { background: var(--brand-deep); }
  .btn-white:hover { background: var(--brand-soft); }
  .btn-ghost:hover { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
  .plan.pro .btn-ghost:hover { background: #fff; color: var(--ink); }
}

/* Cabecera */
.top { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 8px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand span { font: 800 21px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.lang, .top .login { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; min-height: 44px; min-width: 44px; padding: 0 8px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; transition: background-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .lang:hover, .top .login:hover { background: rgba(255,255,255,.12); } }
@media (max-width: 420px) { .top .btn-sm { display: none; } }

/* Portada */
.hero { position: relative; z-index: 1; color: #fff; background: var(--night); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; filter: saturate(.85); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,15,23,.55) 0%, rgba(11,15,23,.62) 45%, rgba(11,15,23,.97) 100%); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 48px; padding-top: 116px; padding-bottom: 64px; align-items: end; }
.hero h1 { font-size: clamp(68px, 18vw, 136px); line-height: .84; font-style: italic; letter-spacing: -.01em; margin-left: -.03em; }
.hero h1 em { color: #9cc0ff; font-style: inherit; }
.hero .lead { font-size: 19px; color: rgba(255,255,255,.86); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.coach-link { color: rgba(255,255,255,.78); font-size: 15px; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coach-link u { color: #fff; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 4px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) and (pointer: fine) { .coach-link:hover u { text-decoration-color: #fff; } }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.2fr .8fr; padding-top: 148px; padding-bottom: 0; min-height: 780px; }
  .hero-copy { padding-bottom: 104px; }
  .phone { align-self: end; margin-bottom: -56px; }
}

/* Entrada de la portada: una sola vez, escalonada */
.in { animation: rise 640ms var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Teléfono de ejemplo */
.phone { justify-self: center; width: min(290px, 80vw); background: #050608; border-radius: 42px; padding: 9px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1) inset; }
.screen { background: var(--bg); color: var(--ink); border-radius: 34px; padding: 20px 12px 14px; display: grid; gap: 8px; }
.when { font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 0 4px 2px; }
.screen .card { background: var(--surface); border-radius: 14px; box-shadow: 0 1px 2px rgba(11,11,12,.06); padding: 12px; }
.tiny { font: 600 12px/1.1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.row { display: flex; justify-content: space-between; gap: 8px; }
.score { display: flex; align-items: center; gap: 14px; }
.ring { --p: 78; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-2) 0);
  animation: fill 1100ms var(--ease-out) 500ms both; }
@keyframes fill { from { --p: 0; } }
.ring b { width: 66px; height: 66px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 800 38px/1 var(--display); }
.up { color: var(--brand); font-weight: 700; font-size: 14px; margin-top: 6px; }
.mini-goal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 8px; padding: 3px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0; }
.mini-goal i { height: 24px; border-radius: 2px; display: grid; place-items: center; font: 600 12px/1 var(--display); font-style: normal; color: var(--ink); }
.z0 { background: var(--surface-2); color: var(--ink-muted) !important; } .z3 { background: #3f7fe0; } .z4 { background: var(--brand); color: #fff !important; } .zd { background: var(--danger-soft); color: var(--danger) !important; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.quick span { border-radius: 10px; min-height: 46px; display: grid; place-items: center; font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; box-shadow: inset 0 -3px 0 rgba(11,11,12,.2); }
.q-save { background: var(--brand); color: #fff; } .q-goal { background: var(--danger); color: #fff; } .q-n { background: var(--surface); }

/* Secciones */
section { padding: 80px 0; }
@media (min-width: 900px) { section { padding: 120px 0; } }

/* Historia */
.story { background: var(--surface); padding-top: 96px; }
@media (min-width: 900px) { .story { padding-top: 160px; } }
.story .wrap { max-width: 880px; }
.story-big { font: 400 clamp(26px, 4.4vw, 40px)/1.25 var(--sans); letter-spacing: -.01em; margin: 0; }
.story-small { display: flex; gap: 16px; align-items: flex-start; margin: 32px 0 0; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-muted); max-width: 60ch; }
.story-small img { flex: none; margin-top: 2px; }

/* Pasos: filas alternas, no tarjetas iguales */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 64px; }
.step { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) {
  .steps { gap: 96px; }
  .step { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .step:nth-child(even) { grid-template-columns: .8fr 1.2fr; }
  .step:nth-child(even) .vis { order: 2; }
}
.step .vis { background: var(--surface-2); border-radius: var(--r-lg); min-height: 280px; display: grid; place-items: center; padding: 28px; position: relative; overflow: hidden; }
.step .n { display: block; font: 800 80px/.8 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--brand); margin-bottom: 16px; }
.step h3 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }
.step p { margin: 0; color: var(--ink-muted); max-width: 42ch; }
.quick.big { width: 100%; max-width: 360px; gap: 10px; }
.quick.big span { min-height: 76px; font-size: 20px; border-radius: var(--r-md); box-shadow: inset 0 -4px 0 rgba(11,11,12,.2); }
/* La foto se muestra entera (misma proporción que la imagen, 1600×746) y la rejilla ocupa justo el hueco de la portería */
.step .vis.vis-goal { background: var(--night) url(img/porteria.jpg) center / 100% 100% no-repeat; padding: 0; min-height: 0; aspect-ratio: 1600 / 746; align-self: center; }
.vis-goal .grid { position: absolute; left: 16.3%; right: 16.3%; top: 29.6%; bottom: 23.2%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.vis-goal .grid i { display: grid; place-items: center; font: 800 clamp(16px, 2.4vw, 22px)/1 var(--display); font-style: normal; color: #fff; }
.g4 { background: rgba(0,74,173,.82); } .g3 { background: rgba(63,127,224,.78); } .gd { background: rgba(179,64,14,.85); } .g0 { background: rgba(255,255,255,.08); outline: 1px dashed rgba(255,255,255,.5); outline-offset: -4px; }
.report { background: var(--surface); border-radius: var(--r-md); padding: 18px 20px; width: 100%; max-width: 340px; font-size: 15px; line-height: 1.45;
  box-shadow: 0 1px 2px rgba(11,11,12,.06), 0 12px 32px -12px rgba(11,11,12,.18); border-left: 4px solid var(--brand); }
.report-week { font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 12px; }
.report b { font: 800 14px/1 var(--display); text-transform: uppercase; letter-spacing: .06em; display: block; margin: 12px 0 4px; color: var(--brand-deep); }
.report b:nth-of-type(2) { color: var(--danger); }
.report p { margin: 0; }

/* Para quién: lista tipográfica */
.who { background: var(--night); color: #fff; }
.who .eyebrow { color: #9cc0ff; }
.people { margin: 48px 0 0; border-top: 1px solid rgba(255,255,255,.18); }
.people > div { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.people dt { font: 800 clamp(32px, 5vw, 48px)/1 var(--display); text-transform: uppercase; }
.people dd { margin: 0; color: rgba(255,255,255,.75); max-width: 52ch; }
@media (min-width: 760px) { .people > div { grid-template-columns: 1fr 1.6fr; gap: 32px; align-items: baseline; } }

/* Precios */
.plans { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1.15fr 1fr; align-items: center; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.plan.pro { background: var(--ink); color: var(--on-ink); border-color: var(--ink); padding-top: 36px; padding-bottom: 32px; }
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan .tag { font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #9cc0ff; }
.plan h3 { font-size: 24px; }
.price { font: 800 60px/1 var(--display); letter-spacing: -.01em; }
.price small { font: 400 16px/1 var(--sans); letter-spacing: 0; opacity: .65; margin-left: 4px; }
.plan p { margin: 0 0 10px; color: var(--ink-muted); font-size: 16px; }
.plan.pro p { color: rgba(255,255,255,.75); }
.plan .btn { margin-top: auto; }
.plans-note { margin: 24px 0 0; color: var(--ink-muted); font-size: 15px; }

/* Llamada final */
.final { position: relative; color: #fff; text-align: center; background: var(--night) url(img/porteria.jpg) center 40% / cover; }
.final::before { content: ""; position: absolute; inset: 0; background: rgba(11,15,23,.7); }
.final .wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(56px, 13vw, 112px); font-style: italic; line-height: .86; }
.final .lead { margin: 18px auto 30px; }

/* Pie */
footer { background: #05070b; color: rgba(255,255,255,.78); padding: 40px 0 32px; font-size: 15px; }
footer .wrap { display: grid; gap: 20px; }
footer .brand { color: #fff; }
footer .brand small { display: block; font: 400 13px/1.3 var(--sans); text-transform: none; letter-spacing: 0; color: rgba(255,255,255,.6); margin-top: 3px; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
footer nav a { color: #fff; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { footer nav a:hover { text-decoration: underline; } }
footer p { margin: 0; font-size: 13px; color: rgba(255,255,255,.45); }
@media (min-width: 760px) { footer .wrap { grid-template-columns: 1fr auto; align-items: center; } footer p { grid-column: 1 / -1; } }

/* Movimiento reducido: sin desplazamientos, sin animación del anillo */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .in { animation: fade 200ms ease both; animation-delay: 0ms; }
  .ring { animation: none; }
  .btn:active { transform: none; }
}
@keyframes fade { from { opacity: 0; } }
