/* ==========================================================
   Reservas online · v3 "Noche de partido"
   Cancha azul · líneas blancas · naranja balón · marcador LED
   ========================================================== */

:root {
    --ink: #07140e;
    --blue: #0f8a5f;
    --blue-deep: #0a5c41;
    --hot: #ff6a1a;
    --hot-soft: #ff8a4c;
    --ice: #eef6f1;
    --line: #d3e3d9;
    --muted: #4a6357;
    --led: #ffb020;
}

html { scroll-padding-top: 6.5rem; }

body {
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background-color: var(--ice);
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
    -webkit-font-smoothing: antialiased;
}
body::before {
    /* difumina la cuadrícula para que solo se insinúe */
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background: radial-gradient(ellipse at 50% 30%, rgba(238, 246, 241, .55), var(--ice) 85%);
}

.font-display, .h-display {
    font-family: 'Big Shoulders Display', 'Figtree', sans-serif;
}
.h-display {
    text-transform: uppercase; font-weight: 800; line-height: .95; letter-spacing: -.005em;
}

/* ---------- Compatibilidad con clases del HTML anterior ---------- */
.clean-card {
    background: #fff; border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgba(7, 20, 14, .05), 0 14px 30px -18px rgba(7, 20, 14, .25);
}
.booking-modal-open { opacity: 1 !important; pointer-events: auto !important; }
.payment-option.is-selected { border-color: var(--blue); background: var(--ice); }

/* ---------- Accesibilidad ---------- */
:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; border-radius: 6px; }
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: #fff;
    padding: .6rem 1rem; border-radius: .6rem; font-weight: 700; font-size: .875rem; transition: top .2s;
}
.skip-link:focus { top: 1rem; }
.sr-only-x { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header flotante ---------- */
.clean-nav {
    position: fixed; top: .75rem; left: .75rem; right: .75rem; z-index: 40;
    max-width: 80rem; margin: 0 auto; border-radius: 1.25rem;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 14px 34px -18px rgba(7, 20, 14, .55);
    transition: background .25s ease, box-shadow .25s ease;
}
.clean-nav.is-scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -18px rgba(7, 20, 14, .6); }
.nav-link { position: relative; padding: .35rem 0; }
.nav-link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--hot);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Botones ---------- */
.btn-hot {
    background: var(--hot); color: var(--ink); font-weight: 800;
    box-shadow: 0 14px 28px -14px rgba(255, 106, 26, .9);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-hot:hover { background: var(--hot-soft); transform: translateY(-2px); }
.btn-ink {
    background: var(--ink); color: #fff; font-weight: 800;
    transition: transform .15s ease, background .15s ease;
}
.btn-ink:hover { background: #14382a; transform: translateY(-2px); }
.btn-line {
    border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; font-weight: 700;
    transition: background .15s ease, border-color .15s ease;
}
.btn-line:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.live-dot {
    display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--hot);
    box-shadow: 0 0 0 0 rgba(255, 106, 26, .7); animation: ping 1.8s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 106, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 106, 26, 0); } }

/* ==========================================================
   HERO: la página empieza dentro de una cancha
   ========================================================== */
.hero {
    position: relative; isolation: isolate; overflow: hidden; color: #fff;
    padding: 9.5rem 0 10rem;
    background: linear-gradient(180deg, #0e6a3f 0%, #0a4a2c 100%);
}
.hero::before {
    /* césped segado + luz de estadio + viñeta */
    content: ""; position: absolute; inset: 0; z-index: -2;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 110px, transparent 110px 220px),
        radial-gradient(1100px 520px at 50% -10%, rgba(255, 255, 255, .2), transparent 62%),
        radial-gradient(ellipse at 50% 125%, rgba(0, 0, 0, .5), transparent 60%);
}
.hero-court {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
}
.hero-court * { fill: none; stroke: rgba(255, 255, 255, .34); stroke-width: 3; }
.hero-court .spot { fill: rgba(255, 255, 255, .6); stroke: none; }
.hero-court .goal { stroke: rgba(255, 255, 255, .55); stroke-width: 4; }

.hero-kicker {
    display: inline-flex; align-items: center; gap: .6rem; padding: .45rem 1rem;
    border-radius: 999px; background: rgba(7, 20, 14, .35); border: 1px solid rgba(255, 255, 255, .25);
    font-size: .875rem; font-weight: 600;
}
.hero-title {
    font-size: clamp(3.4rem, 10vw, 8rem); margin-top: 1.4rem;
    text-transform: uppercase; font-weight: 900; line-height: .86; letter-spacing: -.01em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: block; animation: slide-up .9s cubic-bezier(.2, .8, .2, 1) both; }
.hero-title .line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .outline { -webkit-text-stroke: 2.5px #fff; color: transparent; }
@keyframes slide-up { from { transform: translateY(105%); } to { transform: none; } }

.hero-fade { animation: fade-in .8s .35s ease both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.steps {
    display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; margin-top: 2.5rem; padding-top: 1.4rem;
    border-top: 1.5px dashed rgba(255, 255, 255, .35); list-style: none;
}
.steps li { display: flex; align-items: center; gap: .65rem; font-size: .9rem; font-weight: 600; }
.steps li span:first-child {
    width: 1.9rem; height: 1.9rem; border-radius: 50%; background: #fff; color: var(--blue-deep);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .85rem; flex-shrink: 0;
}

/* ---------- Marcador de estadio ---------- */
.scoreboard {
    position: relative; max-width: 27rem; margin: 0 auto; padding-top: 2.5rem;
    transform-origin: 50% 0; animation: swing 1.6s .3s cubic-bezier(.3, .6, .3, 1) both;
}
@keyframes swing { 0% { transform: rotate(-4deg); } 35% { transform: rotate(2.2deg); } 65% { transform: rotate(-1deg); } 100% { transform: rotate(0); } }
.sb-cables i {
    position: absolute; top: -14rem; height: 16.5rem; width: 3px; border-radius: 3px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .75));
}
.sb-cables i:first-child { left: 16%; }
.sb-cables i:last-child { right: 16%; }
.sb-body {
    position: relative; background: #06120c; border: 5px solid #14382a; border-radius: 1.5rem; padding: 1.25rem;
    box-shadow: 0 40px 70px -30px rgba(2, 10, 6, .9), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.sb-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .7); }
.sb-clock { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--led); letter-spacing: .06em; text-shadow: 0 0 12px rgba(255, 176, 32, .6); font-variant-numeric: tabular-nums; }
.sb-digits { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1rem 0; }
.sb-cell { background: #0b1f16; border: 1px solid rgba(255, 255, 255, .08); border-radius: .9rem; padding: .7rem .4rem .55rem; text-align: center; }
.sb-num {
    position: relative; font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; font-size: 3.1rem; line-height: 1;
    color: var(--led); text-shadow: 0 0 18px rgba(255, 176, 32, .65); font-variant-numeric: tabular-nums;
}
.sb-num::after {
    /* trama de focos LED */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(rgba(11, 31, 22, .9) 1px, transparent 1.4px); background-size: 4px 4px;
}
.sb-label { font-size: .7rem; font-weight: 700; color: rgba(255, 255, 255, .6); margin-top: .35rem; }
.sb-featured { background: linear-gradient(135deg, rgba(15, 138, 95, .35), rgba(15, 138, 95, .1)); border: 1px solid rgba(255, 255, 255, .12); border-radius: 1rem; padding: 1rem; }
.sb-featured h2 { font-family: 'Big Shoulders Display', sans-serif; text-transform: uppercase; font-weight: 800; font-size: 1.9rem; line-height: 1; margin-top: .35rem; color: #fff; }
.sb-featured p { font-size: .85rem; color: rgba(255, 255, 255, .72); margin-top: .35rem; }
.sb-price { display: inline-block; margin-top: .75rem; background: var(--hot); color: var(--ink); font-weight: 800; font-size: .85rem; padding: .3rem .8rem; border-radius: 999px; }
.sb-note { margin-top: .9rem; font-size: .72rem; line-height: 1.5; color: rgba(255, 255, 255, .55); }

/* ==========================================================
   Buscador flotante tipo píldora
   ========================================================== */
.dock-wrap { position: relative; z-index: 10; margin-top: -4.4rem; padding: 0 1rem; }
.dock {
    max-width: 74rem; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: .25rem;
    background: #fff; border: 1px solid var(--line); border-radius: 1.75rem; padding: .6rem;
    box-shadow: 0 34px 60px -32px rgba(7, 20, 14, .6);
}
.dock-field {
    display: flex; flex-direction: column; gap: .2rem; padding: .75rem 1.25rem; border-radius: 1.1rem;
    cursor: pointer; transition: background .15s ease; min-width: 0;
}
.dock-field:hover, .dock-field:focus-within { background: var(--ice); }
.dock-label { display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 800; color: var(--blue); }
.dock-field select, .dock-field input {
    background: transparent; border: 0; outline: 0; padding: 0; width: 100%;
    font: 600 1rem 'Figtree', sans-serif; color: var(--ink);
}
.dock-btn {
    display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 2rem; border-radius: 1.1rem;
    font-size: 1rem; cursor: pointer; border: 0;
}
.dock-btn:disabled { opacity: .6; cursor: wait; }
@media (min-width: 1024px) {
    .dock { grid-template-columns: 1fr 1fr 1fr auto; border-radius: 999px; padding: .55rem; gap: 0; align-items: center; }
    .dock-field { border-radius: 999px; padding: .8rem 1.6rem; }
    .dock-field + .dock-field { position: relative; }
    .dock-field + .dock-field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
    .dock-btn { border-radius: 999px; padding: 1.1rem 2.2rem; }
}

/* ==========================================================
   Fichas de cancha (tarjetas generadas por site.js)
   ========================================================== */
.court-card {
    display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line);
    border-radius: 1.75rem; overflow: hidden;
    box-shadow: 0 1px 2px rgba(7, 20, 14, .05), 0 20px 40px -26px rgba(7, 20, 14, .35);
    transition: transform .25s ease, box-shadow .25s ease;
}
.court-card:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -28px rgba(15, 138, 95, .45); }
@media (min-width: 1024px) { .court-card { grid-template-columns: 20rem 1fr; } }

.court-card__info {
    position: relative; isolation: isolate; display: flex; flex-direction: column; gap: .5rem;
    padding: 1.6rem; background: var(--ink); color: #fff;
}
.court-card__info::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(420px 220px at 100% 0%, rgba(15, 138, 95, .55), transparent 70%);
}
.court-mini { width: 100%; max-width: 12rem; margin-bottom: .6rem; color: rgba(255, 255, 255, .5); }
.court-mini .hot { fill: rgba(255, 255, 255, .1); }
.court-sport { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; color: var(--hot-soft); }
.court-sport svg { width: 1rem; height: 1rem; }
.court-name { font-family: 'Big Shoulders Display', sans-serif; text-transform: uppercase; font-weight: 800; font-size: 2.2rem; line-height: .95; }
.court-type { font-size: .9rem; color: rgba(255, 255, 255, .72); }
.court-desc { font-size: .85rem; color: rgba(255, 255, 255, .55); line-height: 1.5; }
.court-count { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: baseline; gap: .55rem; border-top: 1px dashed rgba(255, 255, 255, .22); font-size: .85rem; color: rgba(255, 255, 255, .7); }
.court-count strong { font-family: 'Big Shoulders Display', sans-serif; font-size: 2.8rem; line-height: 1; font-weight: 900; color: var(--led); text-shadow: 0 0 14px rgba(255, 176, 32, .5); }

.court-card__slots { padding: 1.6rem; min-width: 0; }
.court-day { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .85rem; }
.court-day strong { font-size: 1rem; text-transform: capitalize; }
.court-day span { font-size: .8rem; color: var(--muted); font-weight: 600; }

.day-strip { display: flex; gap: 3px; height: 10px; margin-bottom: 1.25rem; }
.day-strip i { flex: 1; border-radius: 3px; background: #dbe8df; }
.day-strip i.is-free { background: var(--hot); }

.slots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; }
@media (min-width: 640px) { .slots-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .slots-grid { grid-template-columns: repeat(4, 1fr); } }

.slot-button {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem;
    text-align: left; padding: .8rem .95rem; border-radius: 1rem; border: 1.5px solid var(--line); background: #fff;
    font-variant-numeric: tabular-nums; cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.slot-time { font-family: 'Big Shoulders Display', sans-serif; font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--ink); }
.slot-end { font-size: .72rem; font-weight: 600; color: var(--muted); }
.slot-price {
    margin-top: .5rem; font-size: .75rem; font-weight: 800; padding: .2rem .6rem; border-radius: 999px;
    background: #fff1e8; color: #b83f00;
}
.slot-button:not(:disabled):hover {
    background: var(--blue); border-color: var(--blue); transform: translateY(-3px);
    box-shadow: 0 16px 26px -14px rgba(15, 138, 95, .8);
}
.slot-button:not(:disabled):hover .slot-time { color: #fff; }
.slot-button:not(:disabled):hover .slot-end { color: rgba(255, 255, 255, .8); }
.slot-button:not(:disabled):hover .slot-price { background: var(--hot); color: var(--ink); }
.slot-button:not(:disabled):active { transform: translateY(0); }
.slot-button:disabled {
    cursor: not-allowed; border-color: transparent;
    background: repeating-linear-gradient(135deg, rgba(74, 99, 87, .1) 0 6px, transparent 6px 12px), #e8f0eb;
}
.slot-button:disabled .slot-time { color: #86978d; text-decoration: line-through; text-decoration-thickness: 2px; }
.slot-button:disabled .slot-price { background: transparent; color: #7a8f83; padding-left: 0; }

.court-foot { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed var(--line); font-size: .78rem; color: var(--muted); }

/* ==========================================================
   Información (sección oscura con palabra fantasma)
   ========================================================== */
.info { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: #fff; padding: 5.5rem 0 7rem; }
.ghost-word {
    position: absolute; left: 50%; bottom: -.22em; transform: translateX(-50%); z-index: -1; pointer-events: none;
    font-family: 'Big Shoulders Display', sans-serif; font-weight: 900; text-transform: uppercase; white-space: nowrap;
    font-size: clamp(6rem, 26vw, 22rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .09);
}
.contact-row { display: flex; gap: 1.25rem; padding: 1.6rem 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.contact-ico {
    width: 3.2rem; height: 3.2rem; border-radius: 1rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .08); color: var(--hot-soft); border: 1px solid rgba(255, 255, 255, .12);
}
.contact-row h3 { font-weight: 800; font-size: 1.05rem; }
.contact-row p { color: rgba(255, 255, 255, .75); font-size: .95rem; margin-top: .25rem; }

/* ---------- Ayuda ---------- */
.faq-item { border-bottom: 1.5px solid var(--line); }
.faq-item:first-child { border-top: 1.5px solid var(--line); }
.faq-trigger { transition: color .15s; font-size: 1.05rem; }
.faq-trigger:hover { color: var(--blue); }
.faq-trigger svg { transition: transform .25s ease; color: var(--blue); }

/* ---------- Llamado final naranja ---------- */
.cta { background: #dcf1e4; color: var(--ink); position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
    content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 38rem; height: 38rem; margin: -19rem 0 0 -19rem;
    border: 3px solid rgba(15, 138, 95, .16); border-radius: 50%;
}
.cta::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 50%; border-top: 3px solid rgba(15, 138, 95, .16); }

/* ---------- Formularios y modal ---------- */
.field-label { display: block; font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field-control {
    width: 100%; background: var(--ice); border: 1.5px solid var(--line); border-radius: .9rem;
    padding: .8rem 1rem; font-size: .95rem; font-weight: 500; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field-control:hover { border-color: #b2cbbb; }
.field-control:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 138, 95, .16); }

#booking-modal .modal-card { transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
#booking-modal.booking-modal-open .modal-card { transform: none; }
.modal-head { margin: -1.5rem -1.5rem 1.4rem; padding: 1.5rem; background: linear-gradient(160deg, #12a06f, var(--blue-deep)); color: #fff; border-radius: 1.5rem 1.5rem 0 0; }
@media (min-width: 640px) { .modal-head { margin: -2rem -2rem 1.6rem; padding: 1.75rem 2rem; } }
.modal-ticket { border: 2px dashed var(--line); border-radius: 1.1rem; background: var(--ice); }
.modal-ticket .tear { border-top: 2px dashed var(--line); }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}

/* Botón de tarifa del marcador (abre la reserva del próximo horario libre) */
button.sb-price { border: 0; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
button.sb-price:not(:disabled):hover { background: var(--hot-soft); transform: translateY(-2px); }
button.sb-price:disabled { background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .7); cursor: default; }
