/* Panel lateral «Mi cuenta» (entrar o crear cuenta). Prefijo adl-.
   Mismo lenguaje que la cita V7: lienzo gris #F4F4F5, tinta #0B0C0E, botón principal en tinta (píldora), campos de 56 px
   con borde fino y radio 16, una pregunta grande por pantalla. El color solo aparece en estados (error). Tokens locales
   iguales a los de .cita (citas.css) porque el panel vive fuera de ese contenedor. */
.adl-sin-scroll { overflow: hidden; }
.adl-velo { position: fixed; inset: 0; z-index: 1190; background: rgba(11, 12, 14, .5); opacity: 0; transition: opacity .22s var(--ease, ease); }
.adl-velo[hidden], .adl[hidden] { display: none; }
.adl-velo.is-open { opacity: 1; }

.adl {
	--a-ink: #0B0C0E; --a-ink2: #3F454C; --a-mute: #5F646C; --a-line: #E4E5E8; --a-bord: #8A8F98; --a-bg: #F4F4F5; --a-bad: #B42318;
	position: fixed; z-index: 1200; top: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column;
	width: min(440px, 100vw); max-width: 100%;
	background: var(--a-bg); color: var(--a-ink);
	border-radius: 24px 0 0 24px;
	font-family: var(--font, "Archivo", "Helvetica Neue", Arial, sans-serif); font-size: 14px; line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	box-shadow: -24px 0 60px -30px rgba(11, 12, 14, .45);
	transform: translateX(100%);
	transition: transform .26s var(--ease, ease);
}
.adl.is-open { transform: none; }
.adl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- cabecera: atrás, marca, cerrar ---------- */
.adl-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; padding: 16px 20px 8px; }
.adl-wm { font-stretch: 125%; font-weight: 800; font-size: 12px; letter-spacing: .1em; white-space: nowrap; }
.adl-wm b { color: #CF4208; font-weight: 800; }
.adl-x, .adl-atras {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; background: #fff; color: var(--a-ink); cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--a-line);
}
.adl-atras[hidden] { display: inline-flex; visibility: hidden; }
.adl-x:hover, .adl-atras:hover { box-shadow: inset 0 0 0 1px #B9BCC2; }

.adl-cuerpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.adl-pie { flex: none; padding: 14px 28px calc(16px + env(safe-area-inset-bottom)); }
.adl-pie p { margin: 0; font-size: 12px; line-height: 18px; color: var(--a-mute); text-align: center; }
.adl-pie a, .adl-alt a, .adl-fila a, .adl-der a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.adl a:focus-visible, .adl button:focus-visible, .adl-i:focus-visible, .adl-code input:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 2px; }

/* ---------- formulario ---------- */
.adl-f { padding: 20px 28px 12px; }
.adl-f[hidden], .adl-f [data-s][hidden] { display: none; }
.adl-h { margin: 0; font-size: 30px; line-height: 1.08; font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; text-wrap: balance; }
.adl-p { margin: 8px 0 24px; font-size: 15px; line-height: 22px; color: var(--a-mute); }
.adl-p b { color: var(--a-ink); font-weight: 600; overflow-wrap: anywhere; }
.adl-l { display: block; margin: 18px 0 8px; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--a-ink); }
.adl-i {
	display: block; width: 100%; height: 56px; padding: 0 18px; box-sizing: border-box;
	border: 0; border-radius: 16px; background: #fff; color: var(--a-ink);
	box-shadow: inset 0 0 0 1px var(--a-bord);
	font: 500 16px/24px var(--font, "Archivo", Arial, sans-serif);
}
.adl-i::placeholder { color: #8A8F98; font-weight: 400; }
.adl-i:focus { outline: none; box-shadow: inset 0 0 0 2px var(--a-ink); }
.adl-i:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--a-ink); }
.adl-f.has-err .adl-i, .adl-f.has-err .adl-code input { box-shadow: inset 0 0 0 2px var(--a-bad); }
.adl-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adl-dos .adl-l { margin-top: 0; }
.adl-f .adl-l:first-of-type { margin-top: 0; }
.adl-f .adl-dos .adl-l:first-of-type { margin-top: 0; }

.adl-m { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: #FDECEC; font-size: 14px; line-height: 20px; font-weight: 500; color: #8E1B1B; }
.adl-m[hidden] { display: none; }
.adl-m svg { flex: none; margin-top: 1px; }
.adl-n { margin: 12px 0 0; padding: 0 28px; font-size: 13px; line-height: 18px; color: var(--a-mute); }
.adl-f .adl-n { padding: 0; }

.adl-b {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin-top: 20px; padding: 0 22px; box-sizing: border-box;
	border: 0; border-radius: 999px; background: var(--a-ink); color: #fff;
	font: 700 15px/1 var(--font, "Archivo", Arial, sans-serif); cursor: pointer;
	transition: transform .15s var(--ease, ease), opacity .15s var(--ease, ease);
}
.adl-b svg { flex: none; }
.adl-b:hover { opacity: .88; }
.adl-b:active { transform: scale(.985); }
.adl-b:disabled { background: #DADCE0; color: #5F646C; cursor: not-allowed; opacity: 1; transform: none; }
.adl-f.is-busy .adl-b, .adl-f.is-ver .adl-b { pointer-events: none; opacity: .7; }

.adl-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--a-mute); }
.adl-alt a, .adl-fila a, .adl-der a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--a-ink); }
.adl-alt a:hover, .adl-fila a:hover, .adl-der a:hover, .adl-pie a:hover { opacity: .75; }
.adl-der { margin: 4px 0 0; text-align: right; }
.adl-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.adl-fila a { text-decoration: none; font-weight: 500; color: var(--a-mute); }
.adl-fila [data-reenviar]:not([aria-disabled="true"]) { color: var(--a-ink); text-decoration: underline; font-weight: 600; }
.adl-fila [aria-disabled="true"] { pointer-events: none; color: var(--a-mute); }

/* ---------- código de 6 dígitos ---------- */
.adl-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.adl-code input {
	width: 100%; min-height: 56px; padding: 0; text-align: center; box-sizing: border-box;
	border: 0; border-radius: 14px; background: #fff; color: var(--a-ink);
	box-shadow: inset 0 0 0 1px var(--a-bord);
	font: 700 22px/1 var(--font, "Archivo", Arial, sans-serif); font-variant-numeric: tabular-nums;
}
.adl-code input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--a-ink); }
.adl-code input:focus-visible { outline: 2px solid var(--a-ink); outline-offset: 2px; }

/* ---------- éxito ---------- */
.adl-ok { display: flex; flex-direction: column; align-items: flex-start; padding: 40px 0 0; }
.adl-sello { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--a-ink); color: #fff; }
.adl-ok .adl-h { margin-top: 20px; }
.adl-ok .adl-h:focus { outline: none; }
.adl-ok .adl-p { margin: 8px 0 20px; }
.adl-card { display: flex; align-items: center; gap: 12px; align-self: stretch; margin: 0 0 20px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--a-line); }
.adl-card[hidden] { display: none; }
.adl-av { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--a-ink); color: #fff; font-size: 16px; font-weight: 800; font-stretch: 125%; text-transform: uppercase; }
.adl-card__t { display: flex; flex-direction: column; min-width: 0; }
.adl-card__t b { font-size: 15px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adl-card__t small { font-size: 13px; line-height: 18px; color: var(--a-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adl-prog { display: block; width: 160px; height: 3px; border-radius: 3px; background: #D9DBDF; overflow: hidden; }
.adl-prog i { display: block; width: 100%; height: 100%; background: var(--a-ink); transform-origin: left; animation: adlProg .9s linear forwards; }
@keyframes adlProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 600px) {
	.adl { width: 100vw; border-radius: 0; }
	.adl-cab { padding: 12px 16px 4px; }
	.adl-f { padding: 16px 20px 8px; }
	.adl-h { font-size: 28px; }
	.adl-n { padding: 0 20px; }
	.adl-pie { padding-left: 20px; padding-right: 20px; }
}
@media (max-width: 380px) {
	.adl-code { gap: 6px; }
	.adl-code input { min-height: 52px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
	.adl, .adl-velo, .adl-b { transition: none; }
	.adl-prog i { animation: none; }
}
