/* Sanidad de Madrid en una app: azul y rojo medidos en los iconos reales de las dos apps */
:root { --azul: #0b6fb3; --azul-hondo: #0a5286; --azul-claro: #dcecf8; --cielo: #2a9fdc; --rojo: #e3141f; --tinta: #0d2238; --fondo: #eef4f9; }

.nota-servidor { display: none; position: absolute; left: 12px; right: 12px; top: 54px; z-index: 4; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--tinta); color: #fff; font-size: .875rem; line-height: 1.25; box-shadow: 0 12px 24px -10px rgb(13 34 56 / .6); }
.nota-servidor b { display: block; font-weight: 800; }
.sin-servidor .nota-servidor { display: flex; }

/* ---------- la tarjeta sanitaria ---------- */
.tsi { position: relative; overflow: hidden; border-radius: var(--r-l); padding: 14px 16px 30px; color: #fff; background: linear-gradient(150deg, #3db0ea 0%, var(--cielo) 45%, #1481c4 100%); box-shadow: 0 1px 2px rgb(11 80 130 / .3), 0 14px 28px -14px rgb(11 80 130 / .6); }
.t-cab { display: flex; align-items: center; gap: 10px; }
.t-cab b { display: block; font-size: 1rem; font-weight: 800; line-height: 1.1; } .t-cab span { display: block; font-size: .75rem; color: rgb(255 255 255 / .85); }
.tsi .muestra { background: #fff; color: var(--azul-hondo) !important; }
.t-nombre { margin-top: 12px; font-size: 1.375rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.tsi dl { display: grid; grid-template-columns: auto auto auto; gap: 10px; margin-top: 10px; justify-content: space-between; }
.tsi dt { font-size: .6875rem; color: rgb(255 255 255 / .85); line-height: 1.2; } .tsi dd { font-size: .875rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.franja { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; background: var(--rojo); }

/* ---------- citas ---------- */
.cita { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 12px 14px; background: var(--papel); }
.cita.grande { border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--linea); }
.dia { width: 56px; padding: 6px 0 7px; border-radius: 12px; background: var(--azul-claro); color: var(--azul-hondo); text-align: center; line-height: 1; }
.dia small { display: block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .dia b { display: block; font-size: 1.5rem; font-weight: 900; margin: 2px 0; font-variant-numeric: tabular-nums; }
.c-txt b { display: block; font-size: 1rem; font-weight: 800; line-height: 1.2; } .c-txt span { display: block; color: var(--tinta-2); font-size: .8125rem; margin-top: 2px; }
.citas { list-style: none; padding: 0; background: var(--papel); border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--linea); overflow: hidden; }
.citas li + li { border-top: 1px solid var(--linea); }
.citas .cita { background: none; }
.pasadas .dia { background: #e9eef3; color: var(--tinta-2); } .pasadas .c-txt b { color: var(--tinta-2); }

/* ---------- pedir cita: dos toques ---------- */
.capa-pedir { position: absolute; inset: 0; z-index: 5; background: var(--fondo); padding: 54px 16px 24px; display: flex; flex-direction: column; overflow-y: auto; }
.capa-pedir[hidden], .capa-pedir [hidden] { display: none; }
.capa-pedir header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.capa-pedir header h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.015em; }
.capa-pedir h3 { margin-top: 18px; }
.redondo { background: var(--azul-claro); color: var(--azul-hondo); }
.opciones { display: grid; gap: 10px; }
.opciones button { text-align: left; padding: 13px 16px; border-radius: var(--r-m); background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.opciones b { font-size: 1rem; font-weight: 800; } .opciones small { grid-column: 1; color: var(--tinta-2); font-size: .8125rem; }
.opciones i { grid-row: 1 / span 2; grid-column: 2; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--linea); }
.opciones button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--azul); background: var(--azul-claro); }
.opciones button[aria-pressed="true"] i { background: var(--azul); box-shadow: inset 0 0 0 5px var(--azul-claro), 0 0 0 2px var(--azul); }
.huecos { display: grid; gap: 10px; }
.huecos button { text-align: left; min-height: 52px; padding: 10px 14px 10px 16px; border-radius: var(--r-m); background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 12px; }
.huecos b { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; } .huecos small { grid-column: 1; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.huecos svg { grid-column: 2; grid-row: 1 / span 2; color: var(--tinta-2); }
.huecos .primero { background: var(--azul); color: #fff; box-shadow: 0 12px 22px -12px rgb(11 111 179 / .8); } .huecos .primero svg { color: #fff; } .huecos .primero small { color: rgb(255 255 255 / .85); }
.hecho { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 70px; }
.ok { width: 120px; height: 120px; border-radius: 50%; background: var(--bien); color: #fff; display: grid; place-items: center; box-shadow: 0 18px 30px -14px rgb(10 116 72 / .8); } .ok svg { stroke-width: 2.6; }
.hecho h2 { margin-top: 22px; font-size: 1.875rem; font-weight: 800; letter-spacing: -.015em; }
.hecho p b { display: block; margin-top: 8px; font-size: 1.25rem; font-weight: 800; } .hecho p span { display: block; color: var(--tinta-2); font-size: .9375rem; }
.hecho .ancho { margin-top: 28px; }
.hecho .muestra-nota { margin-top: auto; }

.pestanas button[aria-current="page"] { color: var(--azul); } .pestanas button[aria-current="page"] svg { background: var(--azul-claro); }
@media (max-width: 760px) { .nota-servidor { top: 8px; } .capa-pedir { padding-top: 16px; } }
