/* LA PRESA — llegada.css (T20 · Llego a las; T22 p7 #04, p6 #02). Tokens only:
   the plan card is --brand (white on it 9.6 / 6.5 night, grey when sober); no mood here (p5). */

/* p7: a 27 px title, the subtitle 15 px under its ink */
#scr-llego .pantalla-titulo { font-size: 27px; }
#scr-llego .pantalla-sub { margin-top: 11px; }

/* the plan card (brand) */
.ll-plan, .ll-mini { border-radius: var(--r-md); background: var(--brand); color: var(--on-brand); }
.ll-plan, .ll-sin { margin-top: 30px; }
.ll-plan { padding: 18px 16px; }
.ll-et { font-size: 13px; font-weight: 700; line-height: 1.3; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; }
.ll-hora, .ll-mini-hora, .ll-cifra b { font-weight: 700; font-variant-numeric: tabular-nums; }
.ll-hora { margin-top: 13px; font-size: min(52px, 14.5vw); line-height: 1.1; } /* 320 px: still one line */
.ll-colchon { margin-top: 18px; font-size: 16px; }
.ll-colchon + .ll-colchon { margin-top: 8px; line-height: 1.375; } /* moto */
.ll-vivo, .ll-plan .ll-choque { margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.375; }
/* T24: a choque on today's road, one line (on a white card: a line in ink) */
.ll-sin .ll-choque { margin-top: 12px; font-size: 16px; font-weight: 700; line-height: 1.375; color: var(--ink); }

/* ¿Cuánto confiar? (p7) / a white card */
.ll-confiar { margin-top: 20px; padding: 18px 16px 14px; }
.ll-confiar h2, .ll-titular { font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.ll-cifra { margin-top: 8px; font-size: 15px; color: var(--ink-dim); }
.ll-cifra b { display: block; margin-bottom: 4px; font-size: 27px; line-height: 1.2; color: var(--ink); }
/* T24 (#37): on a buffer day the same card (~177 px) holds a two-part control,
   «Con colchón 7:00 · Justito 7:15»: native radios, the chosen one filled.
   Around it the gaps are 16 px, so «Cambiar mi plan» stays on the first screen
   of a 375x812 phone (moto Monday included: measured, 3 px to spare). */
.ll-plan + .ll-selector { margin-top: 16px; }
.ll-selector { padding-top: 16px; padding-bottom: 12px; }
.ll-selector .ll-cifra { margin-top: 6px; }
.ll-seg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; padding: 2px; border-radius: var(--r-sm); background: var(--soft); }
.ll-op {
  position: relative; flex: 1 1 7em; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 6px 8px;
  border-radius: 10px; font-size: 15px; font-weight: 600; line-height: 1.25; text-align: center; color: var(--ink); cursor: pointer;
}
/* the radio covers its whole segment: a tap anywhere on it chooses */
.ll-op input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
/* chosen: filled (not only a hue) and, at night, the --accent ring (the night --brand is 2.5:1) */
.ll-op:has(input:checked) { background: var(--brand); color: var(--on-brand); font-weight: 700; box-shadow: inset 0 0 0 2px var(--accent); }
.ll-op:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.ll-op span { min-width: 0; overflow-wrap: anywhere; }
/* T24 QA (DEC-06, VA-08): only when «Cambiar mi plan» would fall under the tab bar
   (a wrapped subtitle, a two-line label, a choque line; llegada.js apretar()): the
   control says the buffer, so the card's «Con N min de colchón» goes (moto: its line
   takes the place), and on a tall screen the gaps go to 12 px. */
.ll-apretado .ll-pie-colchon { display: none; }
.ll-apretado .ll-pie-colchon + .ll-colchon { margin-top: 18px; }
@media (min-height: 701px) {
  .ll-apretado .ll-plan + .ll-selector, .ll-apretado .ll-selector + .ll-linea, .ll-apretado .ll-abrir { margin-top: 12px; }
}
.ll-sin .ll-et { color: var(--ink-dim); }
.ll-sobria { border-color: var(--line-sobria); }

/* lines, notices, footer */
.ll-linea, .ll-nota { margin-top: 12px; font-size: 16px; line-height: 1.375; color: var(--ink-dim); overflow-wrap: anywhere; }
.ll-nota { font-size: 13px; line-height: 1.4; }
.ll-plan + p, .card + .ll-linea { margin-top: 20px; }
.ll-selector + .ll-linea { margin-top: 16px; } /* T24 #37: the 16 px gaps of a buffer day */
.ll-casa { margin-top: 10px; }
.ll-aviso { margin-top: 16px; padding: 11px 13px; border-radius: var(--r-sm); background: var(--soft); color: var(--ink); font-size: 15px; }
.ll-abrir { margin-top: 16px; }
.ll-salgo { display: flex; align-items: center; min-height: 44px; font-size: 15px; }
.ll-falto p { color: var(--ink); }
.ll-falto .btn-link { margin: 4px 18px 0 0; }
.ll-dias-t { font-size: 15px; color: var(--ink-dim); }
.ll-dias { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ll-dias .pill { min-width: 44px; min-height: 44px; padding: 8px 6px; text-align: center; }

/* the cover's plan card (p6 #02): the whole card is «Ver plan» */
/* Rows: label · hour + «Ver plan» · where 8:00 is; p6: label and «Llegás» share row 1. */
.ll-mini {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  column-gap: 12px; margin-top: 12px; padding: 15px 16px 12px;
}
.ll-mini > * { grid-column: 1 / -1; }
.ll-mini .ll-et { font-size: 12px; }
.ll-mini-hora { grid-column: 1; font-size: min(31px, 12vw); line-height: 1.2; }
.ll-mini-llegas { margin-top: 2px; font-size: 13px; font-weight: 700; line-height: 1.35; }
.ll-ver { grid-area: 2 / 2; color: inherit; font-size: 14px; text-align: right; }
.ll-ver::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ll-ver:focus-visible { outline: 0; }
.ll-ver:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.ll-mini-txt { font-size: 16px; font-weight: 700; line-height: 1.35; }
.ll-mini-txt ~ .ll-mini-llegas, .ll-mini-p6 .ll-et { grid-column: 1; }
.ll-mini-p6 { padding-bottom: 19px; }
.ll-mini-p6 .ll-mini-llegas { grid-area: 1 / 2; align-self: start; margin: 4px 0 -4px; line-height: 1.2; text-align: right; }
.ll-mini-vivo { margin-top: 8px; font-size: 14px; line-height: 1.4; }

/* p18: a short screen compacts the explanation and keeps the data */
@media (max-height: 700px) {
  #scr-llego .pantalla-titulo { font-size: 22px; }
  #scr-llego .pantalla-sub { margin-top: 6px; }
  .ll-plan, .ll-sin { margin-top: 16px; }
  .ll-plan { padding: 12px 16px; }
  .ll-hora { margin-top: 6px; font-size: 44px; line-height: 1; }
  .ll-colchon { margin-top: 6px; }
  .ll-confiar, .ll-plan + .ll-selector { margin-top: 8px; }
  .ll-confiar { padding: 14px 16px 12px; }
  .ll-cifra b { font-size: 22px; line-height: 1.1; }
  .ll-linea, .ll-nota, .ll-plan + p, .card + .ll-linea { margin-top: 8px; }
  .ll-abrir { margin-top: 8px; }
  .ll-selector h2 { font-size: 17px; }
  .ll-seg { margin-top: 8px; }
  .ll-op { padding: 4px 8px; }
  .ll-mini { padding-top: 12px; }
  .ll-mini-hora { font-size: min(28px, 12vw); line-height: 1.1; }
  .ll-mini-llegas { line-height: 1.2; }
}

/* 200% text: «Ver plan» on its own row */
@media (max-width: 260px) { .ll-mini .ll-ver, .ll-mini-p6 .ll-mini-llegas { grid-area: auto / 1 / auto / -1; text-align: left; } }

/* wizard (inside #modal) */
#ll-wiz [hidden] { display: none !important; }
/* One header line: the title and «Paso n de 3» (a 360x640 phone). */
#ll-wiz h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#ll-wiz .ll-paso { flex: none; font-size: 13px; font-weight: 400; color: var(--ink-dim); }
#ll-wiz-titulo:focus { outline: none; }
#ll-wiz .ll-casa { margin-top: 0; }
#ll-wiz .ll-q { margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
#ll-wiz .ll-q3-dias { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink); }
#ll-wiz .ll-elegida { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; color: var(--ink); }
#ll-wiz .ll-elegida .btn-link { margin: 0; font-size: 14px; }
/* 360x640: «Decime a qué hora salir» stays above «Listo» (two rows of chips; no room for an empty error). */
#ll-wiz .ll-dias { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
#ll-wiz .ll-dias .pill { min-width: 44px; padding: 8px 0; }
#ll-wiz .ll-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
#ll-wiz .ll-dos + .tiny { margin-top: 6px; }
#ll-wiz .btn-link { margin-top: 4px; }
#ll-wiz .ll-err { margin-top: 10px; color: var(--peligro); font-size: 14px; }
#ll-wiz .ll-err:empty { display: none; }
