/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 400 15px/1.5 var(--letra-texto);
  color: var(--tinta);
  background: var(--papel) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .27 0 0 0 0 .18 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.28'/></svg>");
}
h1, h2, h3 { font-family: var(--letra-titulo); font-weight: 400; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: var(--tinta); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--oxido); }
:focus-visible { outline: 2px solid var(--laton); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sin-js { padding: 32px; text-align: center; }

/* ================= Cargando ================= */
.cargando { min-height: 100vh; display: grid; place-items: center; }
.cargando__mundo { width: 96px; height: 96px; }

/* ================= Botones, campos, avisos ================= */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border: 0; border-radius: var(--radio-chico);
  background: var(--tinta); color: #F6F0E4; font: 600 14px var(--letra-texto);
  text-decoration: none; cursor: pointer;
  transition: transform var(--rapido) var(--suave), background var(--rapido);
}
.boton:hover { background: #253046; color: #F6F0E4; }
.boton:active { transform: translateY(1px) scale(.99); }
.boton[disabled] { opacity: .6; cursor: progress; }
.boton--linea { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.boton--linea:hover { background: rgba(27, 36, 51, .05); color: var(--tinta); }
.enlace { background: none; border: 0; padding: 0; font: inherit; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.campo { display: grid; gap: 6px; }
.campo > span:first-child { font: 600 10px var(--letra-codigo); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); }
.campo input, .campo select, .campo textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: var(--radio-chico);
  background: var(--campo); box-shadow: inset 0 0 0 1px var(--borde-fuerte);
  font: 400 15px var(--letra-texto); color: var(--tinta); transition: box-shadow var(--rapido);
}
.campo textarea { resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus {
  outline: 2px solid transparent; box-shadow: inset 0 0 0 1.5px var(--laton), 0 0 0 4px rgba(200, 168, 108, .18);
}
.campo small { color: var(--gris); font-size: 12px; }
.campo__clave { position: relative; display: block; }
.campo__clave input { padding-right: 84px; }
.campo__clave .enlace { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; }
.formulario { display: grid; gap: 16px; }
.formulario__error { color: var(--oxido); font-size: 13.5px; }
.formulario__pie { font-size: 13.5px; color: var(--gris); text-align: center; }
.aviso { padding: 10px 12px; border-radius: var(--radio-chico); background: rgba(47, 107, 79, .08); color: var(--verde); font-size: 13.5px; }

/* ================= Teléfono con país (pedido del dueño, 24/9/2026) ================= */
.telefono { position: relative; }
.telefono__caja { display: flex; gap: 8px; }
.telefono__pais {
  flex: none; min-width: 62px; height: 44px; padding: 0 10px; border: 0; border-radius: var(--radio-chico);
  background: var(--campo); box-shadow: inset 0 0 0 1px var(--borde-fuerte); color: var(--tinta);
  font: 600 14px var(--letra-codigo); cursor: pointer;
}
.telefono__pais:hover { box-shadow: inset 0 0 0 1.5px var(--laton); }
.telefono__numero { flex: 1 1 auto; min-width: 0; }
.telefono__lista {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(320px, 100%);
  display: grid; gap: 8px; padding: 10px; border-radius: var(--radio-chico);
  background: var(--hoja); box-shadow: var(--sombra), 0 0 0 1px var(--borde);
}
.telefono__buscar {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--radio-chico);
  background: var(--campo); box-shadow: inset 0 0 0 1px var(--borde-fuerte); font: 400 14px var(--letra-texto); color: var(--tinta);
}
.telefono__opciones { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; display: grid; gap: 4px; }
.telefono__opcion {
  width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0;
  border-radius: 8px; background: transparent; color: var(--tinta); font: 400 13.5px var(--letra-texto); text-align: left; cursor: pointer;
}
.telefono__opcion:hover { background: var(--campo); }
.telefono__opcion small { color: var(--gris); font-family: var(--letra-codigo); }

/* ================= País con buscador (pedido del dueño, 24/9/2026) ================= */
.pais { position: relative; }
.pais__boton {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: var(--radio-chico);
  background: var(--campo); box-shadow: inset 0 0 0 1px var(--borde-fuerte); text-align: left;
  font: 400 15px var(--letra-texto); color: var(--tinta); cursor: pointer;
}
.pais__boton:hover { box-shadow: inset 0 0 0 1.5px var(--laton); }
.pais__lista {
  position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: min(320px, 100%);
  display: grid; gap: 8px; padding: 10px; border-radius: var(--radio-chico);
  background: var(--hoja); box-shadow: var(--sombra), 0 0 0 1px var(--borde);
}
.pais__buscar {
  width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: var(--radio-chico);
  background: var(--campo); box-shadow: inset 0 0 0 1px var(--borde-fuerte); font: 400 14px var(--letra-texto); color: var(--tinta);
}
.pais__opciones { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow-y: auto; display: grid; gap: 4px; }
/* El rótulo de un grupo dentro de la lista (viajero frecuente, agrupado por Aerolíneas/Hoteles/Autos): no se elige. */
.pais__grupo { padding: 6px 10px 2px; font: 600 10px var(--letra-codigo); letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.pais__opcion {
  width: 100%; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 0;
  border-radius: 8px; background: transparent; color: var(--tinta); font: 400 13.5px var(--letra-texto); text-align: left; cursor: pointer;
}
.pais__opcion:hover { background: var(--campo); }
.pais__opcion small { color: var(--gris); font-family: var(--letra-codigo); }

/* ================= Fecha escrita o escogida (pedido del dueño, 24/9/2026; el ícono nativo, 25/9/2026) =================
   Un solo recuadro: el texto de siempre (dd/mm/aaaa o mm/dd/aaaa) y, al final, SOLO el iconito del propio
   <input type="date"> (el mismo look de «Nuevo viaje»/Sale y Regresa) — nada de botón con la palabra «Calendario». */
.fecha__caja { position: relative; }
.fecha__texto { padding-right: 40px; }
.fecha__caja .fecha__nativo {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; min-height: 0;
  padding: 0; margin: 0; border: 0; background: transparent; box-shadow: none; color: transparent; cursor: pointer;
}
.fecha__caja .fecha__nativo::-webkit-datetime-edit,
.fecha__caja .fecha__nativo::-webkit-inner-spin-button,
.fecha__caja .fecha__nativo::-webkit-clear-button { display: none; }
.fecha__caja .fecha__nativo::-webkit-calendar-picker-indicator { padding: 0; margin: 0; opacity: 1; cursor: pointer; }

/* ================= Acceso: la libreta abierta ================= */
.acceso { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.acceso__marco {
  width: 100%; max-width: 980px; display: grid; grid-template-columns: 1.05fr 1fr;
  background: var(--hoja); border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(40, 30, 20, .55), 0 0 0 1px var(--borde);
  animation: aparecer .6s var(--suave) both;
}
.acceso__portada { position: relative; padding: 44px 40px; background: var(--lomo); color: #E9DFCC; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; text-align: center; }
.acceso__portada::after { content: ""; position: absolute; inset: 12px; border: 1.5px dashed rgba(200, 168, 108, .35); border-radius: 14px; pointer-events: none; }
.acceso__cinta { position: absolute; top: 0; right: 56px; width: 34px; height: 120px; background: var(--oxido); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 86%, 0 100%); animation: caer-cinta .9s var(--resorte) .2s both; }
.acceso__mundo { width: 132px; height: 132px; margin-top: 8px; }
.acceso__lema { font: italic 400 18px/1.45 var(--letra-titulo); color: #CBBFA9; max-width: 30ch; }
.acceso__pie { font: 600 10px var(--letra-codigo); letter-spacing: .16em; color: var(--laton-claro); text-transform: uppercase; }
.acceso__hoja { padding: 44px 40px; display: grid; align-content: center; gap: 18px; }
.acceso__hoja h2 { font-size: 30px; line-height: 1.1; }
.acceso__texto { color: var(--gris); }
.marca { font: italic 500 20px var(--letra-titulo); color: #F6F0E4; }
.marca sup, .lomo__marca sup { font-size: .55em; margin-left: 1px; }
@media (max-width: 760px) {
  .acceso__marco { grid-template-columns: 1fr; }
  .acceso__portada { padding: 30px 24px 26px; }
  .acceso__mundo { width: 88px; height: 88px; }
  .acceso__hoja { padding: 28px 24px 32px; }
  .acceso__hoja h2 { font-size: 26px; }
}
/* Por debajo de ~340 px la cinta (a 56 px del borde) tapaba la «s» de «Viajes», que va centrada:
   se arrima al borde. Medido: a 280 px quedan 8 px de aire, a 320 px, 28. */
@media (max-width: 400px) {
  .acceso__cinta { right: 18px; }
}

/* ================= El sello: algo quedó confirmado ================= */
.sello {
  justify-self: start; display: inline-grid; place-items: center; width: 112px; height: 112px;
  border-radius: 50%; border: 2.5px solid var(--verde); color: var(--verde);
  font: 700 12px var(--letra-texto); letter-spacing: .18em; text-transform: uppercase; text-align: center;
  position: relative; animation: sellar .7s cubic-bezier(.2, .9, .25, 1.25) .2s both;
}
.sello::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed currentColor; }

/* ================= El portal: lomo de cuero + contenido ================= */
.portal { min-height: 100vh; display: grid; grid-template-columns: 88px 1fr; }
.lomo { position: sticky; top: 0; height: 100vh; background: var(--lomo); display: flex; flex-direction: column; align-items: center; padding: 20px 0 14px; }
.lomo::after { content: ""; position: absolute; top: 10px; bottom: 10px; right: 7px; border-right: 1.5px dashed rgba(200, 168, 108, .45); pointer-events: none; }
.lomo__marca { font: italic 500 14px/1.05 var(--letra-titulo); color: #E9DFCC; text-align: center; margin-bottom: 22px; }
.lomo__lista { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.lomo__lista--pie { margin-top: auto; }
.cinta { position: absolute; left: 50%; top: 0; width: 58px; height: 62px; margin-left: -29px; background: var(--oxido); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); transition: transform .55s var(--resorte); z-index: 0; }
.lomo__item {
  position: relative; z-index: 1; width: 66px; height: 64px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px; color: #9EA6B3; font: 600 9.5px var(--letra-texto);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.lomo__item svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lomo__item:hover, .lomo__item[aria-current="page"] { color: #F6F0E4; }
.contenido { min-width: 0; padding: 30px clamp(16px, 4vw, 44px) 48px; }
.pie-marca { margin-top: 44px; font: italic 400 12px var(--letra-titulo); color: var(--gris); }
.contenido > .formulario__error { margin-bottom: 16px; padding: 10px 12px; border-radius: var(--radio-chico); background: var(--hoja); box-shadow: inset 0 0 0 1px rgba(179, 67, 43, .35); }
@media (max-width: 720px) {
  .portal { grid-template-columns: 1fr; }
  .lomo { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: 64px; flex-direction: row; padding: 0 4px; z-index: 20; }
  .lomo::after { top: 6px; bottom: auto; left: 10px; right: 10px; border-right: 0; border-top: 1.5px dashed rgba(200, 168, 108, .45); }
  .lomo__marca { display: none; }
  /* Siete botones a 375 px (y a 320): cada uno se reparte el ancho y su nombre se corta con «…» si no cabe.
     Con 66 px fijos eran 462 px y «Salir» quedaba fuera de la pantalla. La cinta toma el ancho del botón (lomo.js). */
  .lomo__lista { flex: 5 1 0; min-width: 0; flex-direction: row; width: auto; }
  .lomo__lista--pie { flex: 2 1 0; margin: 0; }
  /* Sin relleno y la letra un pelo más junta: «Comisiones» y «Comentario» (antes «Buzón») caben enteros a 375 px. */
  .lomo__item { flex: 1 1 0; min-width: 0; width: auto; padding: 0; }
  .lomo__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -.03em; }
  .cinta { left: 0; margin-left: 0; width: 66px; height: 6px; clip-path: none; border-radius: 0 0 4px 4px; }
  .contenido { padding-bottom: 96px; }
}

/* ================= Tarjetas ================= */
.tarjeta { background: var(--hoja); border-radius: var(--radio); box-shadow: var(--sombra); padding: 20px 22px; }
.tarjeta h2 { font-size: 21px; margin-bottom: 8px; }

/* ================= Hoy ================= */
.hoy__barra { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; min-height: 66px; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1px solid var(--borde); }
.hoy__fecha { font: 600 10px var(--letra-codigo); letter-spacing: .16em; color: var(--gris); text-transform: uppercase; }
.hoy__agente { display: flex; align-items: center; gap: 9px; min-width: 0; font: 600 12.5px/1.15 var(--letra-texto); }
.hoy__agente p { min-width: 0; overflow-wrap: anywhere; }
.hoy__agente small { display: block; font: 400 11px var(--letra-texto); color: var(--gris); }
.hoy__iniciales { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--laton-claro); color: var(--tinta); display: grid; place-items: center; font: italic 600 14px var(--letra-titulo); }
.hoy__saludo { position: relative; display: inline-block; font-size: clamp(34px, 5vw, 48px); line-height: 1.05; font-variation-settings: "opsz" 144; overflow-wrap: anywhere; }
.hoy__saludo em { font-style: italic; font-weight: 300; color: var(--oxido); }
.hoy__trazo { position: absolute; left: 2px; bottom: -14px; width: 250px; height: 16px; overflow: visible; }
.hoy__trazo path { fill: none; stroke: var(--laton-claro); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: trazar 1.5s cubic-bezier(.6, 0, .2, 1) .4s forwards; }
.hoy__prueba { display: inline-block; margin-top: 30px; padding: 6px 12px; border-radius: 999px; background: rgba(168, 134, 79, .12); color: #7A5F2E; font: 600 11px var(--letra-codigo); letter-spacing: .04em; }
.hoy__vacio { margin-top: 28px; animation: aparecer .6s var(--suave) .15s both; }
.hoy__vacio p { color: var(--gris); }
.hoy__ruta { display: block; width: 100%; height: clamp(70px, 12vw, 120px); margin-bottom: 10px; }
.hoy__ruta path { fill: none; stroke: var(--oxido); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 8; vector-effect: non-scaling-stroke; }

/* ================= Ajustes ================= */
.ajustes h1 { font-size: 40px; margin-bottom: 22px; }
.ajustes .tarjeta { max-width: 560px; display: grid; gap: 14px; }
.segmentos { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0; border: 0; border-radius: 12px; background: #EFE6D6; justify-self: start; }
.segmentos > button, .segmentos label span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border: 0; border-radius: 9px;
  background: transparent; font: 600 13px var(--letra-texto); color: var(--gris); cursor: pointer;
}
.segmentos label { position: relative; }
.segmentos input { position: absolute; opacity: 0; pointer-events: none; }
.segmentos > button[aria-checked="true"], .segmentos input:checked + span { background: var(--hoja); color: var(--tinta); box-shadow: 0 1px 2px rgba(27, 36, 51, .12); }
.segmentos input:focus-visible + span { outline: 2px solid var(--laton); outline-offset: 2px; }

/* ================= Alto contraste: sin sombras, los bordes y lo elegido se dibujan con color del sistema ================= */
@media (forced-colors: active) {
  .campo input, .campo select, .campo textarea { border: 1px solid CanvasText; }
  .segmentos > button[aria-checked="true"], .segmentos input:checked + span { outline: 2px solid CanvasText; }
}

/* ================= Movimiento (diseño, sección 10) ================= */
@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes trazar { to { stroke-dashoffset: 0; } }
@keyframes caer-cinta { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes sellar {
  0% { opacity: 0; transform: scale(2.1) rotate(-24deg); }
  60% { opacity: 1; transform: scale(.94) rotate(-10deg); }
  80% { transform: scale(1.03) rotate(-10deg); }
  100% { opacity: .92; transform: scale(1) rotate(-10deg); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= Buzón ================= */
/* Arriba y no pegado abajo: en Android el teclado taparía el botón de enviar. */
.buzon { position: fixed; inset: 0; z-index: 50; display: grid; justify-items: center; align-items: start; padding: 8vh 16px 16px; overflow-y: auto; }
.buzon__fondo { position: absolute; inset: 0; background: rgba(23, 32, 45, .5); animation: aparecer-fondo .2s both; }
.buzon__hoja { position: relative; width: 100%; max-width: 540px; display: grid; gap: 14px; animation: aparecer .35s var(--suave) both; }
.buzon__aviso { font-size: 12px; color: var(--gris-claro); }
.buzon__botones { display: flex; justify-content: flex-end; gap: 10px; }
@keyframes aparecer-fondo { from { opacity: 0; } to { opacity: 1; } }

/* ================= Ajustes · Tu agencia (H1) ================= */
/* El idioma va primero en el DOM (como siempre) y la agencia después: así el error genérico de
   pintar() (el que usa un botón sin form, como el radiogroup de idioma) sigue encontrando SU PROPIO
   .formulario__error primero, y no el de la tarjeta de agencia. */
.ajustes .tarjeta.idioma { margin-bottom: 22px; }
.ajustes .tarjeta.agencia { max-width: none; }
.agencia__texto { color: var(--gris); }
.agencia__dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 1000px) { .agencia__dos { grid-template-columns: 1fr; } }
.agencia fieldset { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 14px; min-width: 0; }
/* Las legends en gris y no en latón: a 10 px el latón da 3,3:1 sobre la hoja; el gris, 6,2:1 (WCAG AA pide 4,5). */
.agencia legend { padding: 0; margin-bottom: 10px; font: 600 10px var(--letra-codigo); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.agencia__logo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.agencia__logo img { max-width: 120px; max-height: 60px; object-fit: contain; background: var(--hoja-2); border-radius: 8px; padding: 6px; }
.agencia__sin-logo { color: var(--gris); font-size: 13px; }
.agencia__colores { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.campo input[type="color"] { padding: 4px; height: 42px; cursor: pointer; }
.agencia__nota { font-size: 12.5px; color: var(--gris); }
.agencia__vista { position: sticky; top: 16px; display: grid; gap: 10px; }
.agencia__vista-rotulo { font: 600 10px var(--letra-codigo); letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.agencia__papel { width: 100%; overflow: hidden; border-radius: 6px; box-shadow: var(--sombra); }
.agencia__escala { width: 8.5in; transform-origin: top left; }

/* Redes sociales: una fila por red, con su ícono (el fijo o el subido), el enlace y quitarla. */
.agencia__redes-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.agencia__red { display: flex; align-items: center; gap: 8px; }
.agencia__red input[name="redes"] { flex: 1; min-width: 0; }
.agencia__red-icono { width: 20px; height: 20px; flex: none; object-fit: contain; }
.agencia__red-icono--vacia { border-radius: 4px; background: var(--hoja-2); box-shadow: inset 0 0 0 1px var(--borde); }
.agencia__redes-agregar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.agencia__red-boton {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--borde-fuerte);
  border-radius: 8px; background: var(--hoja); font: 600 12px var(--letra-texto); color: var(--gris); cursor: pointer;
}
.agencia__red-boton img { width: 14px; height: 14px; flex: none; }
.agencia__red-boton:hover { background: var(--hoja-2); }

/* ================= La vista previa de un estilo de hoja: una tarjetita con su cuaderno o su tablero ================= */
/* Ajustes (radio nativo, oculto como en .segmentos) y la hoja de cada viaje (role="radio") comparten estas
   clases: un solo dibujo para las dos (js/estilo-previa.js). Centrado, como lo pidió Mario desde el celular. */
.estilo-opciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.estilo-opcion {
  position: relative; display: grid; justify-items: center; gap: 8px; width: 100px; padding: 0; border: 0;
  border-radius: var(--radio-chico); background: transparent; font: 600 12.5px var(--letra-texto); color: var(--gris); cursor: pointer;
}
.estilo-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.estilo-opcion:has(input:checked), .estilo-opcion[aria-checked="true"] { color: var(--tinta); }
.estilo-opcion:has(input:checked) .estilo-previa, .estilo-opcion[aria-checked="true"] .estilo-previa { box-shadow: 0 0 0 2px var(--oxido), var(--sombra); }
.estilo-opcion:has(input:focus-visible), .estilo-opcion:focus-visible { outline: 2px solid var(--laton); outline-offset: 2px; }
.estilo-opcion__nombre { line-height: 1.2; }
.estilo-previa { display: grid; align-content: center; width: 92px; height: 68px; border-radius: 8px; box-shadow: var(--sombra); overflow: hidden; }
.estilo-previa--bitacora {
  position: relative; justify-items: start; align-content: center; gap: 5px; padding: 8px 8px 8px 16px; background: var(--hoja-2);
  box-shadow: inset 0 0 0 1px var(--borde), var(--sombra);
}
.estilo-previa__espiral {
  position: absolute; left: 5px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px;
  background: repeating-linear-gradient(to bottom, var(--laton-claro) 0 3px, transparent 3px 9px);
}
.estilo-previa--bitacora .estilo-previa__titulo { font: 700 14px 'Fraunces', Georgia, serif; color: var(--oxido); }
.estilo-previa--bitacora .estilo-previa__renglon { width: 44px; height: 2px; border-radius: 1px; background: var(--gris-suave); opacity: .55; }
.estilo-previa--bitacora .estilo-previa__renglon:last-child { width: 30px; }
.estilo-previa--salidas { justify-items: center; gap: 4px; background: #0E0F12; }
.estilo-previa--salidas .estilo-previa__renglon {
  padding: 2px 7px; border-radius: 2px; background: #1A1D22; color: #FFD23F; font: 800 12px 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  letter-spacing: .06em;
}
@media (forced-colors: active) {
  .estilo-opcion:has(input:checked), .estilo-opcion[aria-checked="true"] { outline: 2px solid CanvasText; }
}

/* ================= Tanda 0 de H2–H9: lo común que no es de ningún área ================= */
/* Solo lectura (H9 decide cuándo; app.js lo pinta arriba de cada pantalla). */
.aviso--fijo { margin-bottom: 16px; background: rgba(179, 67, 43, .08); color: var(--tinta); }
.aviso--fijo a { color: var(--oxido); font-weight: 600; }
/* La casilla de términos al crear la cuenta. */
.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--tinta); }
.casilla input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--oxido); }
.casilla a { color: var(--oxido); }
/* Las pestañas del viaje (js/viaje-pestanas.js): las usan H3a, H4, H5, H6a y H7. */
/* contain: sin él, las cinco pestañas en una fila estiraban toda la pantalla a ~490 px en un celular: en una grilla, el
   ancho mínimo de la fila empujaba la columna (medido a 375 px en Documentos, Servicios, Pagos, Hoja y Opciones). */
.pestanas { display: flex; gap: 2px; overflow-x: auto; margin-bottom: 20px; border-bottom: 1px solid var(--borde); scrollbar-width: none; contain: inline-size; }
.pestanas__item { flex: none; padding: 10px 14px; border-bottom: 2px solid transparent; color: var(--gris); font: 600 13.5px var(--letra-texto); text-decoration: none; white-space: nowrap; }
.pestanas__item:hover { color: var(--tinta); }
.pestanas__item[aria-current="page"] { color: var(--tinta); border-bottom-color: var(--oxido); }
/* Ajustes · Más de tu cuenta. */
.ajustes .tarjeta.mas { margin-top: 22px; }
/* «Más de tu cuenta»: tarjetas-botón, dos por fila y una en el celular; son enlaces (navegan), con nombre y para qué sirven. */
.ajustes .tarjeta.mas { max-width: 760px; }
.ajustes__botones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ajustes__boton {
  display: grid; align-content: center; justify-items: center; gap: 4px; min-height: 92px; padding: 16px 18px;
  border-radius: var(--radio-chico); background: var(--hoja-2); box-shadow: inset 0 0 0 1.5px var(--borde-fuerte);
  color: var(--tinta); text-align: center; text-decoration: none; overflow-wrap: anywhere;
  transition: transform var(--rapido) var(--suave), background var(--rapido), color var(--rapido);
}
.ajustes__boton strong { font: 600 15px/1.25 var(--letra-texto); }
.ajustes__boton span { font: 400 13px/1.35 var(--letra-texto); color: var(--gris); }
.ajustes__boton:hover { background: #253046; color: #F6F0E4; }
.ajustes__boton:hover span { color: #D9CFBD; }
.ajustes__boton:active { transform: translateY(1px) scale(.99); }
@media (max-width: 520px) { .ajustes__botones { grid-template-columns: minmax(0, 1fr); } }
