/* Control de reserva de Ataraxia. Pensado para la franja oscura de «#reunion»;
   toma los colores de la landing si existen y, si no, usa los mismos valores. */
.rsv {
  --rsv-fg: var(--band-fg, #f4f0e8);
  --rsv-bg: var(--band-bg, #1a2337);
  --rsv-acc: var(--band-accent, #a38669);
  --rsv-linea: color-mix(in srgb, var(--rsv-fg) 28%, transparent);
  --rsv-suave: color-mix(in srgb, var(--rsv-fg) 72%, transparent);
  --rsv-r: var(--radius-md, 6px);
  color: var(--rsv-fg);
  font-family: var(--font-sans, Geist, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 16px;
  line-height: 1.5;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.rsv *, .rsv *::before, .rsv *::after { box-sizing: border-box; }
.rsv p { margin: 0; }
.rsv-intro, .rsv-estado, .rsv-nota { color: var(--rsv-suave); font-size: 14px; }
.rsv-paso { font-weight: 600; margin-top: 8px !important; }

.rsv-zona { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--rsv-suave); }
.rsv-zona select {
  font: inherit; color: var(--rsv-fg); background: color-mix(in srgb, var(--rsv-fg) 6%, transparent);
  border: 1px solid var(--rsv-linea); border-radius: var(--rsv-r); padding: 6px 10px; min-height: 40px;
  max-width: 100%; min-width: 0; cursor: pointer;
}
.rsv-zona select:focus { border-color: var(--rsv-fg); }
.rsv-zona option, .rsv-zona optgroup { color: #1a2337; }
.rsv-equiv { display: block; font-size: 14px; }

/* Verificación del correo */
.rsv-aviso-hueco {
  padding: 10px 12px; border-radius: var(--rsv-r); font-size: 14px;
  background: color-mix(in srgb, var(--rsv-acc) 22%, transparent); border: 1px solid var(--rsv-acc);
}
.rsv-nota { color: var(--rsv-suave); font-size: 14px; }
.rsv-nota:empty, .rsv-sugerencia:empty { display: none; }
.rsv-sugerencia { font-size: 14px; color: var(--rsv-suave); }
.rsv-enlace {
  font: inherit; font-size: 14px; color: var(--rsv-fg); background: none; border: 0; padding: 4px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.rsv-enlace[disabled] { color: var(--rsv-suave); text-decoration: none; cursor: default; }
.rsv-enlaces { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--rsv-suave); }
#rsv-codigo { max-width: 200px; font-size: 22px; letter-spacing: 6px; font-variant-numeric: tabular-nums; text-align: center; }
.rsv-etiqueta { font-size: 14px; }
.rsv-verificado {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-height: 44px; padding: 8px 12px;
  border: 1px dashed var(--rsv-linea); border-radius: var(--rsv-r);
}
.rsv-verificado-correo { font-weight: 600; overflow-wrap: anywhere; }
.rsv-ok { font-size: 12px; padding: 2px 8px; border-radius: 9999px; background: color-mix(in srgb, var(--rsv-acc) 30%, transparent); }
.rsv-ok::before { content: "✓ "; }
.rsv-verificado .rsv-enlace { margin-left: auto; }

.rsv-dias {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.rsv-dia, .rsv-hora {
  font: inherit; color: var(--rsv-fg); background: transparent; cursor: pointer;
  border: 1px solid var(--rsv-linea); border-radius: var(--rsv-r);
  transition: background-color .15s, border-color .15s, color .15s;
}
.rsv-dia {
  flex: 0 0 auto; scroll-snap-align: start; min-width: 64px; padding: 8px 6px;
  display: grid; justify-items: center; line-height: 1.2;
}
.rsv-dia-sem, .rsv-dia-mes { font-size: 12px; text-transform: lowercase; color: inherit; opacity: .8; }
.rsv-dia-num { font-size: 20px; font-weight: 600; }
.rsv-horas { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.rsv-hora { min-height: 44px; padding: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rsv-dia:hover, .rsv-hora:hover { border-color: var(--rsv-fg); }
.rsv-dia[aria-pressed="true"], .rsv-hora[aria-pressed="true"] {
  background: var(--rsv-fg); color: var(--rsv-bg); border-color: var(--rsv-fg);
}
.rsv :focus-visible { outline: 2px solid var(--rsv-acc); outline-offset: 2px; }

.rsv-form { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rsv-linea); margin-top: 4px; }
.rsv-resumen { color: var(--rsv-suave); }
.rsv-resumen strong { color: var(--rsv-fg); }
.rsv-campo { display: grid; gap: 4px; }
.rsv-campo label { font-size: 14px; }
.rsv-campo input, .rsv-campo select, .rsv-campo textarea {
  font: inherit; color: var(--rsv-fg); background: color-mix(in srgb, var(--rsv-fg) 6%, transparent);
  border: 1px solid var(--rsv-linea); border-radius: var(--rsv-r); padding: 10px 12px; min-height: 44px; width: 100%;
}
.rsv-campo select option { color: #1a2337; }
.rsv-campo textarea { resize: vertical; }
.rsv-campo input:focus, .rsv-campo select:focus, .rsv-campo textarea:focus { border-color: var(--rsv-fg); }
.rsv-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 14px; }
.rsv-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rsv-acc); }
.rsv-check a, .rsv a:not(.rsv-boton) { color: inherit; text-underline-offset: 3px; }
.rsv-oculto { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rsv-error { color: #ffb4a6; font-size: 14px; min-height: 0; }
.rsv-error:empty { display: none; }

.rsv-boton {
  display: inline-block; justify-self: start; min-height: 52px; padding: 12px 32px; border: 0; cursor: pointer;
  background: var(--cream, #f4f0e8); color: var(--navy, #1a2337); border-radius: var(--rsv-r);
  font: inherit; font-size: 18px; font-weight: 600; text-align: center; text-decoration: none;
  transition: background-color .15s;
}
.rsv-boton:hover { background: var(--tint, #e8e1d4); }
.rsv-boton:active { transform: translateY(1px) scale(.99); }
.rsv-boton[disabled] { opacity: .7; cursor: progress; }
.rsv-acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rsv-boton-sec { background: transparent; color: var(--rsv-fg); box-shadow: inset 0 0 0 1px var(--rsv-linea); }
.rsv-boton-sec:hover { background: color-mix(in srgb, var(--rsv-fg) 8%, transparent); }
.rsv-boton-sec[disabled] { cursor: not-allowed; }

.rsv-aviso, .rsv-hecho { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--rsv-linea); border-radius: var(--radius-xl, 12px); }
.rsv-hecho-titulo { font-size: 20px; font-weight: 600; }
.rsv-hecho:focus { outline: none; }

@media (max-width: 899px) {
  .rsv-boton { justify-self: stretch; }
  .rsv-acciones .rsv-boton { flex: 1 1 auto; padding-inline: 16px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .rsv * { transition: none !important; } }
