/* Padel del Lago — estilos extra de la web pública de clientes (portada, reserva, mis reservas, pagos).
   Archivo propio de la web de clientes: el panel usa app.css. Se carga desde _aihead.ejs y _pubhead.ejs. */

/* ── Accesibilidad ── */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Las radios ocultas se posicionan dentro de su chip (si no, ensanchan la página al estar en el carrusel con scroll). */
.day-chip,
.dur-chip { position: relative; }
.day-chip:focus-within,
.dur-chip:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.time-chip:focus-visible,
.court-row:focus-visible,
.btn:focus-visible,
.wa-float:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Botón flotante de WhatsApp ── */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #25d366, #12a150);
  color: #05281a;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42); color: #05281a; }
.wa-float-ic { font-size: 1.25rem; line-height: 1; }
body.bar-on .wa-float { bottom: 96px; }
@media (max-width: 720px) {
  .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; }
  .wa-float-tx { display: none; }
  .wa-float-ic { font-size: 1.6rem; }
}

/* ── Botones en las páginas del cliente ── */
.btn.btn-wa { color: #05281a; }
.btn-wa-big {
  display: flex;
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 1.15rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  margin: 0.4rem 0 1rem;
}
.btn-copy { margin-top: 0.4rem; }

/* ── Barra de navegación del cliente en celular ── */
@media (max-width: 720px) {
  .pub-nav { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 1rem; }
  .pub-brand img { width: 40px; height: 40px; }
  .pub-links { gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
  .pub-user { display: none; }
  .pub-main { padding: 1rem; }
  .card.wizard { padding: 1.1rem; }
}

/* ── Asistente de reserva ── */
.day-mon { font-size: 0.58rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.day-chip { height: 72px; }
.day-chip.on .day-mon, .dur-chip.on .dur-unit { color: var(--gold-light); }
.step-hint { font-size: 0.78rem; margin: -0.2rem 0 0.7rem; }
.time-chip { position: relative; }
.tc-pp { font-size: 0.66rem; color: var(--text-muted); }
.time-chip[aria-pressed="true"],
.court-row[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(200, 155, 60, 0.22), rgba(200, 155, 60, 0.08));
  box-shadow: 0 0 0 2px var(--gold-soft);
}
.time-chip[aria-pressed="true"]::after,
.court-row[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
}
.court-row { position: relative; gap: 1rem; text-align: left; }
.cr-main { display: flex; flex-direction: column; gap: 0.2rem; }
.cr-kind { font-size: 0.74rem; color: var(--text-muted); }
.cr-kind.indoor { color: var(--primary-light); }
.cr-money { display: flex; flex-direction: column; align-items: flex-end; margin-right: 1.2rem; }
.cr-pp { font-size: 0.7rem; color: var(--text-muted); }
.court-continue-wrap { margin-top: 1rem; display: flex; justify-content: flex-end; }
.court-continue[disabled], .bb-go[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Barra de resumen fija (solo celular) */
.book-bar { display: none; }
@media (max-width: 720px) {
  .book-bar:not([hidden]) {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg-surface);
    border-top: 1px solid var(--gold-soft);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
  }
  .bb-info { display: flex; flex-direction: column; min-width: 0; font-size: 0.84rem; }
  .bb-line { color: var(--text-cream); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bb-money small { color: var(--text-muted); }
  .bb-go { flex: 0 0 auto; }
  body.bar-on { padding-bottom: 84px; }
  .court-continue-wrap { display: none; }
}

/* Confirmación */
.pp-row { font-size: 0.9rem; color: var(--text-muted); }
.policy-box {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--primary-light);
  border-radius: var(--radius-sm);
  background: var(--bg-surface-2);
}
.policy-box.late { border-left-color: var(--danger); }
.policy-box p { margin: 0.3rem 0 0.7rem; font-size: 0.9rem; line-height: 1.45; }
.ack-row { display: flex; align-items: flex-start; gap: 0.6rem; cursor: pointer; font-weight: 600; font-size: 0.92rem; }
.ack-row input { width: 1.2rem; height: 1.2rem; margin-top: 0.1rem; flex: 0 0 auto; }
.wa-note { font-size: 0.85rem; margin: 0.6rem 0; }
.policy-note { font-size: 0.82rem; color: var(--text-muted); margin: 0.6rem 0; }
.res-code { margin: 0.3rem 0; }
.res-code strong { font-family: var(--font-mono, ui-monospace, monospace); letter-spacing: 0.18em; font-size: 1.1rem; color: var(--gold-light); }
.elig-actions { flex-wrap: wrap; justify-content: center; }

/* Mis reservas: tarjetas apiladas */
.res-notice { padding: 0.75rem 1rem; border-radius: 10px; margin: 0 0 1rem; border: 1px solid var(--gold); font-size: 0.92rem; line-height: 1.45; }
.res-notice.ok { border-color: var(--green-pine); background: var(--green-soft); }
.res-notice.warn { background: rgba(201, 150, 47, 0.12); }
.res-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.res-card { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1rem; background: var(--bg-surface-2); display: flex; flex-direction: column; gap: 0.4rem; }
.rc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.6rem; }
.rc-date { font-size: 1.05rem; font-weight: 700; color: var(--text-cream); }
.rc-date::first-letter { text-transform: uppercase; }
.rc-time { font-size: 0.88rem; color: var(--text-muted); margin-top: 0.15rem; }
.rc-money { font-size: 0.95rem; }
.rc-code { font-size: 0.82rem; }
.rc-policy { font-size: 0.82rem; line-height: 1.4; }
.rc-policy.late { color: var(--danger-light, #c0392b); font-weight: 600; }
.rc-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.rc-actions .btn { flex: 1 1 auto; min-height: 40px; }
.res-badge { white-space: normal; text-align: right; }

/* Transferencia */
.hold-line { margin: 0.6rem 0; font-size: 0.92rem; line-height: 1.45; }
.countdown { font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.15rem; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.countdown.urgent { color: var(--danger-light, #c0392b); }
.proof-input { padding: 0.6rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); width: 100%; }

/* Confirmar por WhatsApp */
.wa-code-box { text-align: center; margin: 1rem 0; padding: 1rem; border: 1px dashed var(--gold-soft); border-radius: var(--radius); background: var(--bg-surface-2); }
.wa-code-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.wa-code { font-family: var(--font-mono, ui-monospace, monospace); font-size: 2.2rem; font-weight: 700; letter-spacing: 0.3em; padding-left: 0.3em; color: var(--text-cream); user-select: all; }
.wa-code-sub { font-size: 0.85rem; margin-top: 0.2rem; }
.steps-mini { margin: 0 0 1rem; padding-left: 1.2rem; font-size: 0.9rem; line-height: 1.6; color: var(--text-muted); }
.no-wa { margin-top: 1.2rem; border-top: 1px solid var(--border); padding-top: 0.8rem; }
.no-wa summary { cursor: pointer; color: var(--text-muted); font-size: 0.9rem; text-decoration: underline; }
.no-wa > div { margin-top: 0.7rem; }
.code-input { max-width: 12rem; font-size: 1.4rem; letter-spacing: 0.35em; text-align: center; font-family: var(--font-mono, ui-monospace, monospace); margin-bottom: 0.6rem; }
.email-verify .alert { margin-bottom: 0.7rem; }
.spinner { display: inline-block; width: 0.8em; height: 0.8em; border: 2px solid var(--border-strong); border-top-color: var(--gold); border-radius: 50%; animation: web-spin 0.9s linear infinite; vertical-align: -0.1em; margin-right: 0.3em; }
@keyframes web-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ═══════════ Portada y páginas "ai" (login, registro, torneos…) ═══════════ */
.auth-error-help { display: block; margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.5; }
.auth-error-help a { text-decoration: underline; font-weight: 700; }

/* Menú desplegable de la portada (celular) */
.ai-nav { flex-wrap: wrap; }
.nav-menu-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-drawer { display: none; }
@media (max-width: 820px) {
  .nav-drawer:not([hidden]) {
    display: flex;
    flex-direction: column;
    flex: 1 0 100%;
    gap: 0;
    margin: 12px calc(var(--pad) * -1) -16px;
    padding: 6px var(--pad) 14px;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .nav-drawer a { padding: 13px 4px; font-family: var(--mono); font-size: 0.95rem; color: var(--cream); border-bottom: 1px solid var(--line); }
  .nav-drawer a:first-child { color: var(--gold-hi); font-weight: 700; }
  .nav-drawer a:last-child { border-bottom: none; }
}

/* Botón fijo "Reservar" (celular) */
.reserve-bar { display: none; }
@media (max-width: 820px) {
  .reserve-bar {
    display: block;
    position: fixed;
    left: 14px;
    right: 80px;
    bottom: 14px;
    z-index: 94;
  }
  .reserve-bar .btn-neo { width: 100%; justify-content: center; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45); }
  .ai-footer { padding-bottom: 96px; }
}

.footer-links { flex-wrap: wrap; gap: 10px 22px; }
.svc-hours { font-size: 0.8rem; color: var(--cream); margin: -4px 0 12px; white-space: pre-line; }
.flow-note { font-size: 0.82rem; margin: -8px 0 18px; }

/* Academia */
.academy-ai .section-head { max-width: 720px; }
.coach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.coach-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.coach-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: var(--glass); }
.coach-ph { display: flex; align-items: center; justify-content: center; font-size: 4rem; font-weight: 700; color: var(--gold); }
.coach-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.coach-body h3 { margin: 0; font-size: 1.25rem; color: var(--cream); }
.coach-head { font-size: 0.78rem; color: var(--gold-hi); margin: 0; letter-spacing: 0.04em; }
.coach-body p.muted { font-size: 0.9rem; line-height: 1.55; margin: 4px 0 8px; flex: 1; }
.coach-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Sponsors */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.sponsor-card { background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; text-align: center; align-items: center; }
.sponsor-logo { max-width: 100%; max-height: 90px; object-fit: contain; margin-bottom: 4px; }
.sponsor-card h3 { margin: 0; font-size: 1.05rem; color: var(--cream); }
.sponsor-card p { font-size: 0.86rem; line-height: 1.5; margin: 0; }
.sponsor-links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
