/* ==========================================================
   Futillo — estilos
   Regla de marca: nada de gradientes (las franjas del footer
   usan cortes duros, se ven como color plano).
   ========================================================== */

:root {
  --verde-lima: #7DB928;
  --verde: #538334;
  --verde-franja: #47732C;
  --azul: #326C98;
  --azul-hover: #24557A;
  --tinta: #14263A;
  --tinta-suave: #45556A;
  --fondo: #F5F4EE;
  --cal: #F4F7EF;
  --noche: #0F1F17;
  --texto-lima: #10241A;
  --verde-claro-texto: #DCEFC4;
  --verde-claro-texto-2: #C9E99A;

  --font: "Nunito", system-ui, sans-serif;  /* Cambiar por Mirt cuando estén los archivos */
  --font-script: "Rancho", cursive;

  --nav-h: 88px;
  --radius: 16px;
  --section-pad: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--azul); }
a:hover { color: var(--azul-hover); }
p { margin: 0; }
section[id], footer[id] { scroll-margin-top: var(--nav-h); }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--tinta); color: #fff; padding: 12px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; color: #fff; }

:focus-visible { outline: 3px solid var(--verde-lima); outline-offset: 3px; }

/* SVG de íconos de línea */
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-weight: 800; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--verde);
}
.eyebrow--light { color: var(--verde-claro-texto); }

.title {
  margin: 0; font-weight: 900; text-transform: uppercase; line-height: 1;
  font-size: clamp(40px, 6vw, 68px);
}
.title--lg { font-size: clamp(36px, 5vw, 60px); }
.title--md { font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.01em; }
.title--sm { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.05; }
.title--blue { color: var(--azul); }
.title--green { color: var(--verde); }
.title .accent { display: block; color: var(--verde); }

.script {
  font-family: var(--font-script);
  font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: var(--verde);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  font-family: var(--font); font-weight: 900; font-size: 15px;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border-radius: 999px; border: 2px solid transparent;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, translate .3s var(--ease);
}
.btn:hover { translate: 0 -2px; }
.btn svg { width: 22px; height: 22px; }
.btn--lg { min-height: 56px; padding: 0 40px; font-size: 17px; }

.btn--lima { background: var(--verde-lima); color: var(--texto-lima); }
.btn--lima:hover { background: #8CCB33; color: var(--texto-lima); }

.btn--cal { background: var(--cal); color: #2F5A1C; }
.btn--cal:hover { background: #fff; color: #2F5A1C; }

.btn--white {
  align-self: flex-start; background: #fff; color: var(--azul);
  text-transform: none; letter-spacing: 0; font-size: 16px; min-height: 52px;
}
.btn--white:hover { background: var(--cal); color: var(--azul-hover); }

/* ==========================================================
   NAV — un solo nav:
   - arriba (sobre el hero): transparente, logo blanco, texto cal, botón con borde
   - con scroll (.is-scrolled): fondo blanco, logo a color, texto tinta, botón azul
   ========================================================== */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background-color: transparent;
  border-bottom: 2px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-nav__inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-nav__logo { display: block; position: relative; }
.site-nav__logo img { height: 38px; width: auto; transition: opacity .25s ease; }
.site-nav__logo .logo--color { position: absolute; inset: 0; opacity: 0; }

.site-nav__menu { display: flex; flex-wrap: wrap; gap: 4px 28px; font-weight: 700; font-size: 15px; }
.site-nav__menu a {
  color: var(--cal); text-decoration: none; padding: 12px 0;
  transition: color .25s ease;
}
.site-nav__menu a:hover { color: #fff; }

.site-nav__actions { display: flex; align-items: center; gap: 12px; }

.btn--nav {
  min-height: 44px; font-size: 14px; letter-spacing: .08em;
  background: transparent; color: var(--cal); border-color: var(--cal);
}
.btn--nav:hover { background: var(--cal); color: var(--tinta); }

/* Estado con scroll (o menú móvil abierto) */
.site-nav.is-scrolled,
.site-nav.is-open {
  background-color: #fff;
  border-bottom-color: var(--tinta);
}
.site-nav.is-scrolled .logo--white,
.site-nav.is-open .logo--white { opacity: 0; }
.site-nav.is-scrolled .logo--color,
.site-nav.is-open .logo--color { opacity: 1; }
.site-nav.is-scrolled .site-nav__menu a,
.site-nav.is-open .site-nav__menu a { color: var(--tinta); }
.site-nav.is-scrolled .site-nav__menu a:hover,
.site-nav.is-open .site-nav__menu a:hover { color: var(--azul); }
.site-nav.is-scrolled .btn--nav,
.site-nav.is-open .btn--nav {
  background: var(--azul); border-color: var(--azul); color: #fff;
  font-weight: 900;
}
.site-nav.is-scrolled .btn--nav:hover,
.site-nav.is-open .btn--nav:hover { background: var(--azul-hover); border-color: var(--azul-hover); }

/* Hamburguesa */
.site-nav__toggle {
  display: none;
  width: 48px; height: 48px; padding: 12px;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.site-nav__toggle span {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: var(--cal); transition: transform .25s, opacity .25s, background-color .25s;
}
.site-nav.is-scrolled .site-nav__toggle span,
.site-nav.is-open .site-nav__toggle span { background: var(--tinta); }
.site-nav.is-open .site-nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.site-nav.is-open .site-nav__toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .site-nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 919px) {
  :root { --nav-h: 72px; }
  .site-nav__logo img { height: 32px; }
  .site-nav__toggle { display: flex; }
  .site-nav__menu {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 2px solid var(--tinta);
    padding: 8px clamp(20px, 4vw, 48px) 20px;
    font-size: 18px;
  }
  .site-nav__menu a { padding: 14px 0; border-bottom: 1px solid #E4E6E0; }
  .site-nav__menu a:last-child { border-bottom: 0; }
  .site-nav.is-open .site-nav__menu { display: flex; animation: rise .35s var(--ease); --rise: -8px; }
}
/* Línea bajo los links del menú (solo escritorio) */
@media (min-width: 920px) {
  .site-nav__menu a { position: relative; }
  .site-nav__menu a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px;
    background: currentColor; scale: 0 1; transition: scale .3s var(--ease);
  }
  .site-nav__menu a:hover::after { scale: 1 1; }
}
@media (max-width: 400px) {
  .btn--nav { padding: 0 16px; }
}

/* ---------- Hero ---------- */
.hero {
  color: var(--cal);
  background: #1E3A22 url(assets/futillo-hero-cancha.jpg) center 60% / cover no-repeat;
}
.hero__overlay { background-color: rgba(8, 22, 12, .58); }
.hero__inner {
  min-height: max(640px, min(820px, 100svh));
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 56px;
  display: flex; flex-direction: column;
}
.hero__row {
  position: relative; flex-grow: 1;
  display: flex; align-items: flex-end; gap: clamp(24px, 4vw, 56px);
}
.hero__title {
  margin: 0; display: flex; align-items: flex-end; gap: 4px;
  font-weight: 900; text-transform: uppercase; line-height: .82;
}
.hero__solid,
.hero__outline {
  writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
}
.hero__solid { font-size: clamp(72px, 11vw, 156px); letter-spacing: -.01em; color: var(--cal); }
.hero__outline {
  font-size: clamp(48px, 6.6vw, 96px); letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 2px var(--cal);
  padding-inline-start: 1.1em; /* lo sube respecto a la base de "Juegue" */
}
.hero__cta { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); }

.social { display: flex; gap: 8px; }
.social a {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: var(--cal);
}
.social a:hover { color: #fff; }
.social svg { width: 20px; height: 20px; }

/* Redes flotantes, fijas a la derecha */
.social-float {
  position: fixed; z-index: 40;
  right: clamp(10px, 1.5vw, 24px); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px;
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.social-float a {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--tinta); color: #fff;
  border: 2px solid rgba(244, 247, 239, .7);
  transition: background-color .2s ease;
}
.social-float a:hover { background: var(--azul); color: #fff; }
.social-float svg { width: 20px; height: 20px; }
.social-float.is-hidden {
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(16px, -50%);
}
@media (max-width: 600px) {
  .social-float { top: auto; bottom: 16px; transform: none; }
  .social-float.is-hidden { transform: translateX(16px); }
  .social-float a { width: 44px; height: 44px; }
}

@media (max-width: 760px) {
  .hero__inner { min-height: 0; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 40px; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__title { flex-direction: column; align-items: flex-start; gap: 0; }
  .hero__solid, .hero__outline { writing-mode: horizontal-tb; transform: none; }
  .hero__solid { font-size: clamp(64px, 20vw, 96px); }
  .hero__outline { font-size: clamp(40px, 12vw, 60px); padding-inline-start: 0; }
  .hero__cta { position: static; transform: none; }
}

/* ---------- Secciones ---------- */
.section { padding: var(--section-pad) 0; }
.section--white { background: #fff; }
.section--green { background: var(--verde); color: var(--cal); }
.section--blue { background: var(--azul); color: #fff; }
.section--ruled { border-top: 2px solid var(--tinta); }

.section-head { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 40px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 104px); }
.stack-xl { display: flex; flex-direction: column; gap: clamp(72px, 8vw, 96px); }

/* ---------- Jugada 01 · Intro ---------- */
.intro {
  padding-top: clamp(64px, 8vw, 112px);
  padding-bottom: clamp(48px, 6vw, 80px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(32px, 5vw, 72px);
}
.intro__logo { width: clamp(200px, 22vw, 280px); height: auto; flex: 0 0 auto; }
.intro__text { flex: 1 1 420px; max-width: 620px; display: flex; flex-direction: column; gap: 16px; }
.intro .title { color: var(--azul); }

/* ---------- Jugada 02 · Precios (card "media cancha") ---------- */
.section--green .title { color: var(--cal); }
.price-grid {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.price-card {
  --line: 3px solid var(--cal);
  position: relative; border: var(--line);
  padding: 0 28px 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
/* área (medio óvalo) */
.price-card::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 64px;
  border: var(--line); border-top: none;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
/* punto de penal */
.price-card::after {
  content: ""; position: absolute; top: 86px; left: 50%; transform: translateX(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--cal);
}
.price-card__value {
  height: 96px; margin-top: 112px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.price-card__amount { font-weight: 900; font-size: clamp(44px, 4.6vw, 56px); line-height: 1; }
.price-card__unit { font-size: 17px; font-weight: 700; }
.price-card__icon { width: 64px; height: 64px; stroke-width: 1.3; color: var(--cal); }

/* línea de medio campo + círculo central */
.price-card__midline {
  position: relative; align-self: stretch;
  height: 3px; margin: 56px -28px; background: var(--cal);
}
.price-card__midline::before,
.price-card__midline::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%;
}
.price-card__midline::before { width: 76px; height: 76px; border: var(--line); }
.price-card__midline::after { width: 9px; height: 9px; background: var(--cal); }

.price-card__name {
  margin: 0; font-weight: 900; font-size: 22px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--verde-claro-texto);
}
.price-card__note { margin-top: 6px; font-size: 15px; }
.price-card__note--bold { font-size: 17px; font-weight: 700; }

.price-footer {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center; font-size: 15px; line-height: 1.5;
}

/* ---------- Jugada 03 · Bloque imagen + texto ---------- */
.feature {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.feature__img {
  flex: 1 1 460px; min-width: 0; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
}
.feature__text {
  flex: 1 1 360px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
}
.feature__text p { font-size: 18px; line-height: 1.6; max-width: 480px; }
.feature__icon { height: auto; align-self: center; }
/* En escritorio el texto va a la izquierda; en móvil la foto queda arriba */
.feature--reverse { flex-direction: row-reverse; }
@media (max-width: 860px) {
  .feature--reverse { flex-direction: row; }
}

/* ---------- Jugada 04 · En vivo ---------- */
.live { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.live__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 20px; }
.live__text > p { font-size: 18px; line-height: 1.55; max-width: 460px; }
.live__text .eyebrow--light { color: #DCEBC7; }

.live__screen {
  position: relative; flex: 1 1 420px; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--tinta); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
}
.live__pitch { position: absolute; inset: 0; width: 100%; height: 100%; stroke: rgba(255,255,255,.1); stroke-width: 1.5; }
.live__badge {
  position: absolute; top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #C9D3DE;
}
.live__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #8A97A8; }
.live__icon { position: relative; width: 72px; height: 72px; }
.btn .ico-yt { width: 26px; height: 26px; }
.live__title { position: relative; font-weight: 900; font-size: clamp(18px, 2vw, 22px); text-transform: uppercase; letter-spacing: .02em; }
.live__sub { position: relative; font-size: 15px; line-height: 1.5; color: #C9D3DE; max-width: 340px; }
@media (max-width: 480px) {
  .live__screen { aspect-ratio: auto; min-height: 260px; padding-top: 56px; }
}

/* ---------- Jugada 05 · Servicios ---------- */
.service-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.service-card {
  background: #fff; border: 2px solid var(--tinta); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  transition: translate .35s var(--ease), box-shadow .35s var(--ease);
}
.service-card:hover { translate: 0 -4px; box-shadow: 0 14px 28px -16px rgba(20, 38, 58, .45); }
.service-card__icon {
  width: 56px; height: 56px; border-radius: 50%; border: 2.5px solid var(--tinta);
  display: flex; align-items: center; justify-content: center; color: var(--azul);
}
.service-card__icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.service-card h3 { margin: 0; font-weight: 800; font-size: 22px; }
.service-card p { font-size: 15px; line-height: 1.5; color: var(--tinta-suave); }
.services-cta { align-self: center; }

/* ---------- Jugada 06 · Reglamento ---------- */
.rules {
  display: grid; gap: 48px 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}
.rules__block { display: flex; flex-direction: column; gap: 14px; }
.rules__block h3 {
  margin: 0; padding-bottom: 12px; border-bottom: 2px dashed var(--azul);
  font-weight: 900; font-size: 20px; text-transform: uppercase;
}
.rules__sub { font-size: 15px; color: var(--tinta-suave); }
.rules__block ol {
  margin: 0; padding-left: 22px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 16px; line-height: 1.55;
}

/* ---------- Footer ---------- */
.footer { color: var(--cal); }
.footer a { color: var(--cal); }
.footer a:hover { color: #fff; }

/* Franjas verticales de césped (cortes duros = color plano) */
.footer__stripes {
  background-color: var(--verde);
  background-image: repeating-linear-gradient(90deg,
    var(--verde) 0 140px, var(--verde-franja) 140px 280px);
}
.footer__inner {
  padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 48px;
}
.footer__logo img { width: 167px; height: auto; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 48px clamp(48px, 7vw, 96px); margin-left: auto; }
.footer__col { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.footer__col--contact { max-width: 300px; }
.footer__col h2 {
  margin: 0 0 10px; font-weight: 900; font-size: 15px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--verde-claro-texto-2);
}
.footer__col > a { text-decoration: none; font-size: 16px; font-weight: 700; padding: 8px 0; }
.icon-row { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.5; padding: 8px 0; }
.icon-row svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; }
.footer__waze { margin-top: 6px; font-size: 15px; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }

.footer__bar { background: var(--noche); }
.footer__bar-inner {
  padding-top: 14px; padding-bottom: 14px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
}
.footer__bar-inner > span { font-size: 14px; color: #C9D3C4; }

@media (max-width: 600px) {
  .footer__cols { margin-left: 0; }
  .footer__logo { margin-inline: auto; }
}

/* ---------- Animaciones de entrada ----------
   rise: aparece subiendo levemente. "backwards" mantiene el estado inicial
   durante el delay y al terminar no deja estilos pegados (el hover sigue libre). */
@keyframes rise {
  from { opacity: 0; translate: 0 var(--rise, 24px); }
}
.hero__solid   { animation: rise 1s var(--ease) .15s backwards; }
.hero__outline { animation: rise 1s var(--ease) .35s backwards; }
.hero__cta     { animation: rise 1s var(--ease) .6s backwards; }

/* Al hacer scroll: el JS agrega .reveal y luego .is-in al entrar en pantalla.
   Sin JS no se oculta nada. */
.reveal:not(.is-in) { opacity: 0; }
.reveal.is-in { animation: rise .9s var(--ease) var(--d, 0s) backwards; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  .reveal:not(.is-in) { opacity: 1; }
}
