/* DAE Reservas — formulario público.
   Plano: los paneles se separan por fondo y espacio, sin bordes ni sombras.
   Los cupos usan un semáforo de colores sólidos (verde, ámbar, rojo, gris). */
.dres {
	--dr-navy: var(--brand, #0b3a7a);
	--dr-navy-700: var(--brand-700, #082c5e);
	--dr-navy-900: var(--brand-900, #061d40);
	--dr-cyan: var(--accent, #35c6f4);
	--dr-ink: var(--ink, #0f1a2e);
	--dr-text: var(--text, #3d4759);
	--dr-muted: #5f687c;
	--dr-faint: #a9b0bf;
	--dr-input: #cfd6e2;
	--dr-page: var(--bg, #f5f7fb);
	--dr-surface: #fff;
	--dr-soft: var(--brand-soft, #eaf0fa);
	--dr-soft-2: #f3f6fb;
	--dr-warm: #b4500d;
	--dr-warm-bg: #fdf0e6;
	/* semáforo */
	--ok: #1d7a4b; --ok-bg: #e4f4eb; --ok-bg-h: #d2ecdd; --ok-bar: #2a9a62;
	--few: #8a5000; --few-bg: #fcf0d6; --few-bg-h: #f8e4b8; --few-bar: #dc9409;
	--full: #b42318; --full-bg: #fbe7e6;
	--off: #5f687c; --off-bg: #eceef2;
	--dr-r: 20px;
	font-family: inherit;
	color: var(--dr-text);
	margin: 1.4em 0 2em;
	scroll-margin-top: 110px;
}
.dres *, .dres *::before, .dres *::after { box-sizing: border-box; }
.dres button, .dres input, .dres textarea { font-family: inherit; }
.dres [hidden] { display: none !important; }
.dres .dres-ico { flex-shrink: 0; display: block; }
.dres :focus-visible { outline: 3px solid var(--dr-navy); outline-offset: 2px; }
.entry-content .dres h3, .entry-content .dres h4, .entry-content .dres h5 { margin-top: 0; }
.entry-content .dres ul, .entry-content .dres ol { padding-left: 0; margin: 0; max-width: none; }
.entry-content .dres li { margin: 0; }
.entry-content .dres a.dres-btn, .dres a.dres-btn { text-decoration: none !important; }

.dres-h { margin: 0 0 16px; font-size: 1.3rem; color: var(--dr-ink); letter-spacing: -.015em; }
.dres-h:focus { outline: 0; }
.dres-panel { background: var(--dr-surface); border-radius: var(--dr-r); padding: clamp(18px, 2.4vw, 26px); }

/* ---------------------------------------------------------------- Pasos
   El tema numera cualquier <ol><li> del contenido (counter dae-n): acá sobra. */
.entry-content .dres-steps > li { padding-left: 0; counter-increment: none; }
.entry-content .dres-steps > li::before { content: none; }
.dres-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 28px !important; padding: 0; }
.dres-steps li { display: flex; align-items: center; gap: 8px; padding-top: 12px !important; position: relative; font-size: 14.5px; font-weight: 600; color: var(--dr-muted); line-height: 1.25; }
.dres-steps li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: #dfe4ec; transition: background .3s; }
.dres-steps__n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #e4e8f0; color: var(--dr-muted); font-size: 12.5px; font-weight: 700; transition: background .3s, color .3s; }
.dres-steps li.is-active, .dres-steps li.is-done { color: var(--dr-ink); }
.dres-steps li.is-active::after, .dres-steps li.is-done::after { background: var(--dr-navy); }
.dres-steps li.is-active .dres-steps__n { background: var(--dr-navy); color: #fff; }
.dres-steps li.is-done .dres-steps__n { background: var(--dr-soft); color: transparent; position: relative; }
.dres-steps li.is-done .dres-steps__n::after { content: ""; position: absolute; left: 8px; top: 6px; width: 5px; height: 9px; border: solid var(--dr-navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------------------------------------------------------------- Distribución
   Pasos 2 y 3: contenido + resumen fijo a la derecha. */
.dres-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.dres-main { min-width: 0; container-type: inline-size; }
@media (min-width: 1000px) {
	.dres[data-step="2"] .dres-layout, .dres[data-step="3"] .dres-layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.dres-aside { position: sticky; top: 110px; margin-top: calc(1.3rem * 1.2 + 16px); }
}

/* Resumen */
.dres-aside { background: var(--dr-surface); border-radius: var(--dr-r); padding: 22px; display: grid; gap: 4px; }
.dres-aside__t { margin: 0 0 8px; font-size: 1.05rem; color: var(--dr-ink); }
.dres-aside__row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; }
.dres-aside__row + .dres-aside__row { border-top: 1px solid #eef1f6; }
.dres-aside__row > .dres-ico { color: var(--dr-navy); margin-top: 2px; }
.dres-aside__row > div { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dres-aside__row span { font-size: 13px; color: var(--dr-muted); }
.dres-aside__row strong { font-size: 15px; color: var(--dr-ink); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.dres-aside__row.is-empty strong { color: var(--dr-faint); font-weight: 500; }
.dres-aside__lugar strong { font-size: 14px; font-weight: 500; color: var(--dr-text); }
.dres-aside__next { margin-top: 12px; }
.dres-link { border: 0; background: none; padding: 2px 0; color: var(--dr-navy); font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(11, 58, 122, .3); text-underline-offset: 3px; }
.dres-link:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- Paso 1: servicios */
.dres-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.dres-srv { display: flex; flex-direction: column; gap: 14px; text-align: left; padding: 24px; border: 0; border-radius: var(--dr-r); background: var(--dr-surface); color: inherit; cursor: pointer; font-size: 15px; transition: background .2s; overflow: hidden; }
.dres-srv:hover { background: #fbfcfe; }
.dres-srv:hover .dres-srv__cta .dres-ico { transform: translateX(4px); }
.dres-srv__img { display: block; margin: -24px -24px 0; aspect-ratio: 16 / 7; background: var(--dr-soft) center / cover no-repeat; }
.dres-srv__top { display: flex; align-items: center; gap: 14px; }
.dres-srv__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; background: var(--dr-soft); color: var(--dr-navy); }
.dres-srv.is-exclusivo .dres-srv__ico { background: var(--dr-warm-bg); color: var(--dr-warm); }
.dres-srv__name { font-size: 18px; line-height: 1.3; color: var(--dr-ink); }
.dres-srv__desc { color: var(--dr-muted); line-height: 1.55; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dres-srv__facts { display: grid; gap: 8px; padding: 14px 0 0; border-top: 1px solid #eef1f6; }
.dres-srv__facts span, .dres-srv__aprob { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; line-height: 1.4; color: var(--dr-text); }
.dres-srv__facts .dres-ico { color: var(--dr-muted); margin-top: 1px; }
.dres-srv__aprob { color: var(--few); font-weight: 600; }
.dres-srv__cta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 10px 18px; border-radius: 999px; background: var(--dr-navy); color: #fff; font-weight: 700; font-size: 14.5px; }
.dres-srv__cta .dres-ico { transition: transform .2s; }

/* ---------------------------------------------------------------- Paso 2: calendario */
.dres-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container (min-width: 720px) {
	.dres-pick { grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); }
}
.dres-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.dres-cal__title { font-size: 17px; color: var(--dr-ink); }
.dres-cal__nav { display: flex; gap: 6px; }
.dres-nav { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--dr-soft-2); color: var(--dr-ink); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .2s; }
.dres-nav:hover:not(:disabled) { background: var(--dr-soft); color: var(--dr-navy); }
.dres-nav:disabled { color: #c3c9d4; cursor: default; background: transparent; }
.dres-cal__dow, .dres-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.dres-cal__dow { margin-bottom: 6px; }
.dres-cal__dow span { font-size: 12.5px; font-weight: 700; color: var(--dr-muted); padding: 2px 0; }
.dres-cal__grid { min-height: 230px; align-content: start; }
.dres-day { position: relative; aspect-ratio: 1; min-height: 40px; width: 100%; padding: 0; border: 0; border-radius: 11px; font-size: 15px; font-weight: 650; cursor: pointer; background: transparent; color: var(--dr-faint); transition: background .15s, color .15s; }
.dres-day.is-ok { background: var(--ok-bg); color: var(--ok); }
.dres-day.is-ok:hover { background: var(--ok-bg-h); }
.dres-day.is-few { background: var(--few-bg); color: var(--few); }
.dres-day.is-few:hover { background: var(--few-bg-h); }
.dres-day.is-full { background: var(--full-bg); color: var(--full); text-decoration: line-through; text-decoration-thickness: 1.5px; cursor: default; }
.dres-day.is-closed { background: var(--off-bg); color: var(--off); cursor: default; }
.dres-day.is-off { cursor: default; font-weight: 500; }
.dres-day.is-today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.dres-day.is-sel, .dres-day.is-sel:hover { background: var(--dr-navy); color: #fff; }
.dres-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0 !important; padding: 0; font-size: 13px; color: var(--dr-muted); }
.dres-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.entry-content .dres-legend li::marker { content: none; }
.dres-legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.dres-legend .is-ok { background: var(--ok-bar); }
.dres-legend .is-few { background: var(--few-bar); }
.dres-legend .is-full { background: var(--full); }
.dres-legend .is-closed { background: #b9bfcb; }

/* Horarios */
.dres-slots { min-height: 200px; }
.dres-slots__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 16px; }
.dres-slots__head h4 { margin: 0; font-size: 17px; color: var(--dr-ink); }
.dres-slots__head p { margin: 0; font-size: 14px; color: var(--dr-muted); }
.dres-slots__grupo + .dres-slots__grupo { margin-top: 18px; }
.dres-slots__grupo h5 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--dr-muted); }
.dres-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.dres-time { display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-height: 84px; padding: 12px 14px; border: 0; border-radius: 14px; text-align: left; cursor: pointer; background: var(--dr-soft-2); color: var(--dr-ink); transition: background .15s, color .15s; }
.dres-time__h { font-size: 17px; font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.dres-time__h small { font-size: 13px; font-weight: 500; color: var(--dr-muted); letter-spacing: 0; }
.dres-time__meter { display: block; height: 4px; border-radius: 4px; background: rgba(15, 26, 46, .09); overflow: hidden; }
.dres-time__meter i { display: block; height: 100%; border-radius: 4px; background: currentColor; }
.dres-time__s { font-size: 13px; font-weight: 650; line-height: 1.3; margin-top: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dres-time.is-ok { background: var(--ok-bg); }
.dres-time.is-ok .dres-time__s, .dres-time.is-ok .dres-time__meter i { color: var(--ok); }
.dres-time.is-ok .dres-time__meter i { background: var(--ok-bar); }
.dres-time.is-ok:hover { background: var(--ok-bg-h); }
.dres-time.is-few { background: var(--few-bg); }
.dres-time.is-few .dres-time__s { color: var(--few); }
.dres-time.is-few .dres-time__meter i { background: var(--few-bar); }
.dres-time.is-few:hover { background: var(--few-bg-h); }
.dres-time.is-full { background: var(--full-bg); cursor: default; }
.dres-time.is-full .dres-time__h { color: #7d4a49; }
.dres-time.is-full .dres-time__s { color: var(--full); }
.dres-time.is-blocked { background: var(--off-bg); cursor: default; }
.dres-time.is-blocked .dres-time__h { color: var(--off); }
.dres-time.is-blocked .dres-time__s { color: var(--off); font-weight: 600; }
.dres-time.is-sel, .dres-time.is-sel:hover { background: var(--dr-navy); color: #fff; }
.dres-time.is-sel .dres-time__h small, .dres-time.is-sel .dres-time__s { color: #fff; }
.dres-time.is-sel .dres-time__meter { background: rgba(255, 255, 255, .25); }
.dres-time.is-sel .dres-time__meter i { background: #fff; }
.dres-hint, .dres-loading { color: var(--dr-muted); font-size: 14.5px; margin: 0; padding: 6px 0; }
.dres-loading { grid-column: 1 / -1; text-align: left; }

/* Barra para seguir (solo celular / tablet: en escritorio el resumen ya tiene el botón) */
.dres-bar { position: sticky; bottom: 12px; z-index: 5; margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 18px; background: var(--dr-navy-900); color: #fff; }
.dres-bar__txt { display: grid; line-height: 1.25; min-width: 0; }
.dres-bar__txt strong { font-size: 16px; }
.dres-bar__txt span { font-size: 13px; color: #c9d5ea; }
.dres-bar .dres-btn { background: #fff; color: var(--dr-navy); flex-shrink: 0; }
.dres-bar .dres-btn:hover { background: var(--dr-soft); color: var(--dr-navy); }
.dres-bar .dres-btn:focus-visible { outline-color: var(--dr-cyan); }
@media (min-width: 1000px) { .dres-bar { display: none !important; } }

/* ---------------------------------------------------------------- Paso 3: formulario */
.dres-form__intro { margin: 0 0 20px; font-size: 14.5px; color: var(--dr-muted); }
.dres-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
@container (max-width: 620px) { .dres-grid { grid-template-columns: minmax(0, 1fr); } }
.dres-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.dres-field--full { margin-top: 18px; }
.dres-field > label { font-size: 14.5px; font-weight: 650; color: var(--dr-ink); }
.dres-field > label em { font-style: normal; font-weight: 500; color: var(--dr-muted); }
.dres-field input, .dres-field textarea { font-size: 16px; font-weight: 400; line-height: 1.4; padding: 12px 14px; border: 1px solid var(--dr-input); border-radius: 12px; background: #fff; color: var(--dr-ink); width: 100%; min-height: 48px; transition: border-color .15s; }
.dres-field textarea { resize: vertical; min-height: 96px; }
.dres-field input::placeholder, .dres-field textarea::placeholder { color: #8d95a6; }
.dres-field input:hover, .dres-field textarea:hover { border-color: #aab4c5; }
.dres-field input:focus, .dres-field textarea:focus { border-color: var(--dr-navy); outline: 3px solid rgba(11, 58, 122, .18); outline-offset: 0; }
.dres-field small { font-size: 13px; color: var(--dr-muted); line-height: 1.4; }
.dres-field__err:empty { display: none; }
.dres .dres-field__err { color: var(--full); font-weight: 600; }
.dres-field.is-mal input, .dres-field.is-mal textarea { border-color: var(--full); background: #fffafa; }
.dres-field.is-mal .dres-combo__ayuda { color: var(--full); }

.dres-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: start; margin: 22px 0 0; padding: 16px 18px; border-radius: 14px; background: var(--dr-soft-2); }
.dres-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--dr-navy); cursor: pointer; }
.dres-check label { font-size: 14.5px; line-height: 1.5; color: var(--dr-text); cursor: pointer; }
.dres-check .dres-field__err { grid-column: 2; font-size: 13px; }
.dres-check.is-mal { background: var(--full-bg); }

/* Carrera: selector con buscador */
.dres-combo__caja { position: relative; display: block; }
.dres-combo__panel { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin-top: 6px; max-height: 280px; overflow: auto; background: #fff; border: 1px solid var(--dr-input); border-radius: 12px; padding: 6px; }
.dres-combo__grupo { margin: 10px 8px 4px; font-size: 12.5px; font-weight: 700; color: var(--dr-muted); }
.dres-combo__grupo:first-child { margin-top: 4px; }
.dres-combo__op { display: block; width: 100%; text-align: left; font-size: 15px; font-weight: 400; padding: 9px 10px; border: 0; border-radius: 9px; background: none; color: var(--dr-ink); cursor: pointer; line-height: 1.35; }
.dres-combo__op:hover, .dres-combo__op.is-on { background: var(--dr-soft); color: var(--dr-navy); }
.dres-combo__vacio { margin: 0; padding: 14px 10px; color: var(--dr-muted); font-size: 14px; }
.dres-combo.is-mal .dres-combo__q { border-color: var(--full); background: #fffafa; }

.dres-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dres-err { color: var(--full); background: var(--full-bg); border-radius: 12px; padding: 12px 16px; font-size: 14.5px; font-weight: 500; margin: 16px 0 0; }

/* ---------------------------------------------------------------- Botones */
.dres-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.dres-actions--form { justify-content: space-between; }
.dres-actions--center { justify-content: center; }
.dres-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0; background: var(--dr-navy); color: #fff; font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s; }
.dres-btn:hover { background: var(--dr-navy-700); color: #fff; }
.dres-btn:disabled { background: #c9d0dc; color: #fff; cursor: not-allowed; }
.dres-btn--block { width: 100%; }
.dres-btn--soft { background: var(--dr-soft); color: var(--dr-navy); }
.dres-btn--soft:hover { background: #dbe5f4; color: var(--dr-navy-700); }
.dres-btn--danger { background: var(--full-bg); color: var(--full); }
.dres-btn--danger:hover { background: #f6d5d3; color: #8f1b12; }
.dres-btn--red { background: var(--full); color: #fff; }
.dres-btn--red:hover { background: #8f1b12; }

/* ---------------------------------------------------------------- Confirmación / gestión */
.dres-done, .dres-gestion__card, .dres-gestion__vacio { max-width: 640px; margin: 0 auto; }
.dres-done { max-width: 680px; }
.dres-done .dres-actions .dres-btn { padding-inline: 20px; }
.dres-done { text-align: center; padding: clamp(24px, 4vw, 40px); }
.dres-done__icon { width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.dres-done__icon.is-pend { background: var(--few-bg); color: var(--few); }
.dres-done h3 { margin: 0 0 8px; font-size: 1.5rem; color: var(--dr-ink); }
.dres-done h3:focus { outline: 0; }
.dres-done__lead { margin: 0 auto 22px; max-width: 46ch; color: var(--dr-muted); font-size: 15.5px; overflow-wrap: anywhere; }
.dres-done__lead strong { color: var(--dr-ink); font-weight: 600; }
.dres-done__tip { margin: 18px 0 0; font-size: 14px; color: var(--dr-muted); line-height: 1.5; }
.dres-done .dres-dl { text-align: left; }

.dres-code { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding: 16px 20px; border-radius: 14px; background: var(--dr-soft); }
.dres-code span { font-size: 14px; color: var(--dr-navy); font-weight: 600; }
.dres-code strong { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 22px; font-weight: 700; letter-spacing: .04em; color: var(--dr-navy); }

.dres-dl { margin: 18px 0 0; display: grid; gap: 0; }
.dres-dl > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 12px 2px; }
.dres-dl > div + div { border-top: 1px solid #eef1f6; }
.dres-dl dt { display: flex; align-items: center; gap: 9px; color: var(--dr-muted); font-size: 14.5px; }
.dres-dl dt .dres-ico { color: var(--dr-navy); }
.dres-dl dd { margin: 0; color: var(--dr-ink); font-weight: 600; font-size: 15px; line-height: 1.45; }

.dres-gestion__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dres-gestion__pre { margin: 0 0 2px !important; font-size: 14px; color: var(--dr-muted); }
.dres-gestion__title { margin: 0 !important; font-size: 1.35rem; color: var(--dr-ink); }
.dres-gestion__aviso { margin: 18px 0 0 !important; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; background: var(--dr-soft-2); color: var(--dr-text); }
.dres-gestion__aviso:focus { outline: 0; }
.dres-gestion__aviso.is-pendiente { background: var(--few-bg); color: var(--few); }
.dres-gestion__aviso.is-cancelada, .dres-gestion__aviso.is-rechazada { background: var(--off-bg); color: #3f4757; }
.dres-gestion__vacio { padding: clamp(24px, 4vw, 36px); }
.dres-gestion__vacio h3 { margin: 0 0 6px; }
.dres-gestion__vacio p { margin: 0 0 18px; color: var(--dr-muted); }
.dres-confirma { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--full-bg); color: #5c1a14; font-size: 14.5px; line-height: 1.5; }
.dres-confirma p { margin: 0; }
.dres-confirma .dres-actions { margin-top: 14px; }
.dres-confirma .dres-btn--soft { background: #fff; }
.dres-gestion__otra { max-width: 640px; margin: 18px auto 0 !important; }
.dres-gestion__otra a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; color: var(--dr-navy); }
.dres-badge { flex-shrink: 0; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.dres-note { padding: 16px 18px; border-radius: 14px; background: var(--dr-soft, #eaf0fa); color: #0b3a7a; }

/* ---------------------------------------------------------------- Tablet y celular */
@media (max-width: 999px) {
	/* El resumen pasa arriba, compacto: servicio a lo ancho, día y hora lado a lado. */
	.dres-aside { order: -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding: 14px 16px; }
	.dres-aside__t, .dres-aside__lugar, .dres-aside__next { display: none; }
	.dres-aside__row { padding: 8px 0; gap: 10px; }
	.dres-aside__row:first-of-type { grid-column: 1 / -1; }
	.dres-aside__row + .dres-aside__row { border-top: 0; }
	.dres-aside__row:first-of-type { border-bottom: 1px solid #eef1f6; }
	.dres-aside__row strong { font-size: 14.5px; }
	.dres-aside__row:not(:first-of-type) .dres-link { display: none; }
}

@media (max-width: 640px) {
	.dres { margin: 1em 0 1.5em; scroll-margin-top: 80px; }
	.dres-steps { gap: 6px; margin-bottom: 20px !important; }
	.dres-steps li { font-size: 13px; padding-top: 10px !important; }
	.dres-steps__n { display: none; }
	.dres-layout { gap: 14px; }
	.dres-h { font-size: 1.15rem; margin-bottom: 12px; }

	.dres-services { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.dres-srv { padding: 18px; gap: 12px; }
	.dres-srv__img { margin: -18px -18px 0; }
	.dres-srv__ico { width: 46px; height: 46px; }
	.dres-srv__name { font-size: 17px; }
	.dres-srv__desc { -webkit-line-clamp: 2; }

	.dres-panel { padding: 16px 14px; border-radius: 18px; }
	.dres-cal__dow, .dres-cal__grid { gap: 4px; }
	.dres-cal__grid { min-height: 0; }
	.dres-day { border-radius: 10px; font-size: 15px; min-height: 42px; }
	.dres-times { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dres-time { min-height: 80px; padding: 12px; }

	.dres-check { padding: 14px; }
	.dres-actions { flex-direction: column-reverse; gap: 8px; }
	.dres-actions .dres-btn { width: 100%; }
	.dres-actions--center { flex-direction: column; }
	.dres-confirma .dres-actions { flex-direction: column-reverse; }

	.dres-code { padding: 14px 16px; }
	.dres-code strong { font-size: 20px; }
	.dres-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
	.dres-dl dd { padding-left: 27px; }
	.dres-gestion__top { flex-direction: column-reverse; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.dres *, .dres *::before, .dres *::after { transition: none !important; }
}

/* Hasta cuándo se puede reservar y tope semanal. */
.dres-ventana { margin: 12px 0 0 !important; padding: 10px 12px; border-radius: 12px; background: var(--dr-soft, #eef3fa); color: var(--dr-ink, #0f1a2e); font-size: 13px; line-height: 1.5; }

/* RUT como primer campo: ocupa la fila completa. En escritorio el campo queda
   del ancho de una columna y la casilla de extranjero a su lado. */
.dres-rut { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 18px; }
.dres-rut > * { grid-column: 1; }
.dres-rut > .dres-rut__ext { grid-column: 2; grid-row: 2; }
.dres-rut input[name=rut] { letter-spacing: .02em; }
.dres-rut > .dres-rut__ext { display: flex; align-items: center; gap: 10px; min-height: 48px; font-size: 14.5px; font-weight: 500; color: var(--dr-text); cursor: pointer; }
.dres-rut__ext input { width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; flex-shrink: 0; accent-color: var(--dr-navy); cursor: pointer; }
@container (max-width: 620px) {
	.dres-rut { grid-template-columns: minmax(0, 1fr); }
	.dres-rut > .dres-rut__ext { grid-column: 1; grid-row: auto; min-height: 40px; }
}

/* QR de la reserva (confirmación y "ver o cancelar"): se muestra al llegar para registrar la entrada */
.dres-qr-caja { display: flex; align-items: center; gap: 18px; margin: 16px 0; padding: 16px; border-radius: 18px; background: #f3f6fb; }
.dres-qr-caja .dres-qr { flex: none; width: 168px; height: 168px; border-radius: 12px; background: #fff; }
.dres-qr-caja p { margin: 0; font-size: 14px; line-height: 1.5; color: #4a5568; }
.dres-qr-caja__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dres-btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.dres-qr-caja p strong { display: block; font-size: 16px; color: #0f1a2e; margin-bottom: 2px; }
@media (max-width: 520px) {
	.dres-qr-caja { flex-direction: column; text-align: center; }
	.dres-qr-caja .dres-qr { width: min(240px, 70vw); height: auto; aspect-ratio: 1; }
	.dres-qr-caja__txt { align-items: center; }
}
.dres-gestion__aviso.is-asistio { background: #e8f7ef; color: #1f7a4d; }
