.rp-wrap { --rp-accent: #0b5cad; --rp-avail: #2563eb; --rp-rec: #16a34a; --rp-off: #94a3b8; --rp-intro: #0b5cad; --rp-warn: #ea580c; --rp-accent-soft: color-mix(in srgb, var(--rp-intro) 10%, #fff); --rp-text: #1f2937; --rp-border: #cfd6de; --rp-muted: color-mix(in srgb, var(--rp-text) 78%, #fff); --rp-err: #b42318; --rp-ok: #13703a; max-width: 760px; margin: 0 auto; font-size: 16px; line-height: 1.5; }
.rp-wrap *, .rp-wrap *::before, .rp-wrap *::after { box-sizing: border-box; }
.rp-intro { background: var(--rp-accent-soft); border-left: 4px solid var(--rp-intro); padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; }
.rp-intro p { margin: 0 0 8px; }
.rp-intro p:last-child { margin: 0; }
.rp-step { border: 1px solid var(--rp-border); border-radius: 10px; padding: 16px; margin: 0 0 16px; min-width: 0; }
.rp-step legend { font-weight: 700; font-size: 1.1em; padding: 0 6px; }
.rp-step.rp-off, .rp-step[disabled] { opacity: .55; }
.rp-help, .rp-muted { color: var(--rp-muted); margin: 0 0 8px; }
.rp-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid var(--rp-border); background: #fff; color: inherit; border-radius: 8px; padding: 10px 14px; cursor: pointer; font: inherit; text-align: left; min-height: 44px; }
.rp-chip:hover:not([disabled]) { border-color: var(--rp-accent); }
.rp-chip input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.rp-durations .rp-chip { flex-direction: row; align-items: center; font-weight: 600; }
.rp-chip.rp-sel { border-color: var(--rp-accent); background: var(--rp-accent); color: #fff; }
.rp-chip:focus-within, .rp-chip:focus-visible { outline: 3px solid rgba(11, 92, 173, .35); outline-offset: 1px; }
.rp-date span { font-size: .85em; opacity: .85; }
.rp-date.rp-closed, .rp-date.rp-full { cursor: not-allowed; background: #f3f4f6; }
.rp-date.rp-closed strong, .rp-date.rp-full strong { text-decoration: line-through; }
.rp-full { flex-basis: 100%; }
.rp-field { margin-bottom: 12px; flex: 1 1 240px; min-width: 0; }
.rp-field label { display: block; font-weight: 600; margin-bottom: 4px; }
.rp-field small { display: block; color: var(--rp-muted); margin-top: 3px; font-size: .85em; }
.rp-field input[type=text], .rp-field input[type=email], .rp-field input[type=tel], .rp-field input[type=date], .rp-field select, .rp-field textarea, .rp-field input[type=file] { width: 100%; padding: 10px; border: 1px solid var(--rp-border); border-radius: 6px; font: inherit; background: #fff; }
.rp-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.rp-check label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.rp-check input { margin-top: 4px; }
.rp-invalid { border-color: var(--rp-err) !important; box-shadow: 0 0 0 2px rgba(180, 35, 24, .15); }
.rp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rp-summary { background: #f6f8fa; border-radius: 6px; padding: 10px 12px; margin: 8px 0 12px; font-weight: 600; }
.rp-submit { background: var(--rp-accent); color: #fff; border: 0; border-radius: 8px; padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.rp-submit[disabled] { opacity: .6; cursor: wait; }
.rp-msg:empty { display: none; }
.rp-msg { padding: 10px 12px; border-radius: 6px; margin-top: 8px; }
.rp-msg.rp-err, p.rp-err { background: #fdecea; color: var(--rp-err); }
.rp-msg.rp-ok { background: #e7f6ec; color: var(--rp-ok); }
.rp-done { background: #e7f6ec; color: var(--rp-ok); border-radius: 10px; padding: 18px; font-weight: 600; }
@media (max-width: 520px) { .rp-step { padding: 12px; } .rp-chip { flex: 1 1 calc(50% - 8px); } .rp-durations .rp-chip { flex: 1 1 0; justify-content: center; } }
.rp-fields { display: flex; flex-wrap: wrap; gap: 0 16px; }
.rp-fields .rp-w-full { flex: 1 1 100%; }
.rp-fields .rp-w-half { flex: 1 1 calc(50% - 16px); min-width: 220px; }
.rp-field .rp-check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.rp-field .rp-check input { margin-top: 4px; }
.rp-inline-pair { display: flex; gap: 8px; }
.rp-inline-pair select { flex: 0 0 auto; width: auto; padding: 10px; border: 1px solid var(--rp-border); border-radius: 6px; font: inherit; background: #fff; }
.rp-inline-pair input { flex: 1 1 auto; }
.rp-rec-help { flex-basis: 100%; margin: 0 0 4px; }
.rp-radios { border: 0; padding: 0; margin: 0; min-width: 0; }
.rp-radios legend { font-weight: 600; margin-bottom: 4px; padding: 0; }
.rp-radio-chip { flex-direction: row; align-items: center; }
.rp-radio-chip:has(input:checked) { border-color: var(--rp-accent); background: var(--rp-accent); color: #fff; }
.rp-field.rp-invalid { outline: 2px solid var(--rp-err); outline-offset: 4px; border-radius: 6px; }
.rp-label { font-weight: 600; margin: 4px 0 6px; }
.rp-people { margin-bottom: 8px; }
.rp-people .rp-chip { flex-direction: row; align-items: center; font-weight: 600; }
.rp-people-help { margin-top: 0; }
.rp-date.rp-partial { border-style: dashed; }
.rp-date.rp-partial span { color: #92400e; }
.rp-gaps { background: color-mix(in srgb, var(--rp-warn) 8%, #fff); border: 1px solid color-mix(in srgb, var(--rp-warn) 40%, #fff); border-radius: 8px; padding: 10px 14px; }
.rp-gaps-title { font-weight: 600; margin: 0 0 6px; }
.rp-gaps ul { margin: 0 0 6px 18px; padding: 0; }

/* Estados de las horas (colores editables en Reservas vuelo › Colores) */
.rp-slot { border-color: var(--rp-avail); background: color-mix(in srgb, var(--rp-avail) 9%, #fff); color: color-mix(in srgb, var(--rp-avail) 70%, #000); }
.rp-slot.rp-rec { border-color: var(--rp-rec); background: color-mix(in srgb, var(--rp-rec) 10%, #fff); color: color-mix(in srgb, var(--rp-rec) 65%, #000); }
.rp-slot.rp-follow, .rp-slot.rp-follow:disabled { border: 1px dashed var(--rp-off); background: color-mix(in srgb, var(--rp-off) 14%, #fff); color: color-mix(in srgb, var(--rp-off) 85%, #000); opacity: .7; cursor: not-allowed; }
.rp-slot.rp-sel, .rp-slot.rp-seq, .rp-slot.rp-follow.rp-seq { background: var(--rp-accent); border: 1px solid var(--rp-accent); color: #fff; opacity: 1; }
.rp-slot.rp-seq, .rp-slot.rp-follow.rp-seq { background: color-mix(in srgb, var(--rp-accent) 80%, #fff); }
.rp-rec-tag { font-size: .75em; font-weight: 600; }
.rp-rec-tag:empty { display: none; }
.rp-legend-front { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 6px; font-size: .85em; color: var(--rp-muted); }
.rp-legend-front span { display: inline-flex; align-items: center; gap: 6px; }
.rp-legend-front i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid; }
.rp-legend-front .lg-avail i { border-color: var(--rp-avail); background: color-mix(in srgb, var(--rp-avail) 9%, #fff); }
.rp-legend-front .lg-rec i { border-color: var(--rp-rec); background: color-mix(in srgb, var(--rp-rec) 10%, #fff); }
.rp-legend-front .lg-off i { border: 1px dashed var(--rp-off); background: color-mix(in srgb, var(--rp-off) 14%, #fff); }
.rp-legend-front .lg-sel i { border-color: var(--rp-accent); background: var(--rp-accent); }

/* Color de texto propio: el formulario no hereda el gris claro del tema. */
#rp-reservas.rp-wrap, #rp-reservas .rp-step legend, #rp-reservas .rp-field label, #rp-reservas .rp-label, #rp-reservas .rp-intro, #rp-reservas .rp-intro p, #rp-reservas .rp-summary, #rp-reservas .rp-radios legend, #rp-reservas .rp-gaps, #rp-reservas .rp-gaps li { color: var(--rp-text); }
#rp-reservas .rp-help, #rp-reservas .rp-muted, #rp-reservas .rp-field small, #rp-reservas .rp-legend-front { color: var(--rp-muted); }
#rp-reservas .rp-chip:not(.rp-sel):not(.rp-slot) { color: var(--rp-text); }
#rp-reservas .rp-field input, #rp-reservas .rp-field select, #rp-reservas .rp-field textarea, #rp-reservas .rp-inline-pair select { color: var(--rp-text); }
/* Pasos aún no disponibles: el título se lee bien y el contenido queda algo atenuado. */
#rp-reservas .rp-step.rp-off, #rp-reservas .rp-step[disabled] { opacity: 1; }
#rp-reservas .rp-step[disabled] > *:not(legend) { opacity: .7; }
/* Lo que está oculto (aviso de validez, acompañantes, resumen…) no lo puede volver a mostrar ningún estilo. */
#rp-reservas [hidden] { display: none !important; }

/* Atrápalo: comprobación del localizador */
#rp-reservas .rp-atr-msg { display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; background: #f1f5f9; color: var(--rp-text); font-size: .9em; }
#rp-reservas .rp-atr-msg.rp-atr-ok { background: #e7f6ec; color: var(--rp-ok); }
#rp-reservas .rp-atr-msg.rp-atr-bad { background: #fdecea; color: var(--rp-err); }
#rp-reservas .rp-locked { background: #f1f5f9; color: var(--rp-muted); pointer-events: none; }
