/* El boleto semanal (ver static/boleto.js y docs/boleto-semanal/ESPECIFICACION.md).
   Diseño aprobado: prototipo-diseno/demo-completa/fuente/demo.css (todo con prefijo bol-). */
:root {
  --bol-principal: #213F86; --bol-principal-suave: #E6EBF7; --bol-boina: #D42A32;
  --bol-crema: #FCF8F1; --bol-superficie: #F4EDE2; --bol-carbon: #383838; --bol-gris: #6F675E; --bol-linea: #E8DFD2;
  --bol-oro: #FFC533; --bol-oro-texto: #916300; --bol-verde: #3E7700;
  --bol-cafe: #4A3117; --bol-cafe-medio: #73502B; --bol-cafe-borde: #B98446;
  --bol-titulo: 'Fraunces', Georgia, serif; --bol-texto: 'Nunito', system-ui, sans-serif;
  --bol-caramelo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32  0 0 0 0 .22  0 0 0 0 .1  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"), linear-gradient(100deg, #D9A86C, #D29C5C);
}
.bol-caja, .bol-celebra, .bol-viaje { font-family: var(--bol-texto); color: var(--bol-carbon); -webkit-font-smoothing: antialiased; }
.bol-caja button, .bol-celebra button, .bol-viaje button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
.bol-sello { display: block; }

/* ——— Boleto compacto (Inicio) ——— */
.bol-caja { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.bol-caja:focus-visible { outline: 3px solid var(--bol-principal); outline-offset: 4px; border-radius: 18px; }
.bol-mov { position: relative; display: block; }
.bol-ranura { position: absolute; left: 22px; right: 22px; top: -14px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(rgba(15,31,72,.45), rgba(15,31,72,0)); opacity: 0; z-index: 2; pointer-events: none; }
.bol-a2 { position: relative; display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 6px 12px 6px 18px; border-radius: 16px; background: var(--bol-caramelo); box-shadow: 0 0 0 1px var(--bol-cafe-borde), 0 2px 6px rgba(90,50,10,.08);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, transparent 6.5px, #000 7px) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 6.5px, #000 7px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, transparent 6.5px, #000 7px) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, transparent 6.5px, #000 7px) right / 51% 100% no-repeat; }
/* Pegado debajo de la tarjeta azul del Inicio, como su talón: una fila más baja */
.bol-talon .bol-a2 { min-height: 46px; gap: 8px; padding: 4px 14px 4px 16px; border-radius: 0 0 22px 22px; border-top: 1.5px dashed rgba(74, 49, 23, .45); box-shadow: none; -webkit-mask: none; mask: none; }
.bol-talon .bol-prog { flex-direction: row; align-items: baseline; gap: 6px; }
.bol-talon .bol-n { font-size: 18px; }
.bol-talon .bol-d { font-size: 13.5px; }
.bol-talon .bol-sellos { justify-content: flex-end; gap: 6px; padding-right: 2px; }
.bol-talon .bol-aro { inset: -5px; }
.bol-talon:focus-visible { border-radius: 0 0 22px 22px; }
.bol-prog { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; white-space: nowrap; }
.bol-fila { display: flex; align-items: center; gap: 6px; }
.bol-n { font: 800 25px/1 var(--bol-titulo); color: #1C3474; letter-spacing: -.3px; }
.bol-n.bol-doble { display: grid; } .bol-n.bol-doble > span { grid-area: 1 / 1; }
.bol-d { font: 800 14px/1 var(--bol-texto); color: var(--bol-cafe); }
.bol-hecho { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bol-verde); box-shadow: 0 0 0 2px rgba(255,250,240,.75); }
.bol-hecho svg { width: 72%; height: 72%; }
.bol-sellos { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.bol-espacio { position: relative; flex: none; display: block; }
.bol-capa { position: absolute; inset: 0; }
.bol-aro { position: absolute; inset: -6px; border-radius: 50%; border: 2.5px solid rgba(255,248,232,.95); opacity: 0; pointer-events: none; }
.bol-brillo-mini { position: absolute; inset: 3px; border-radius: 50%; overflow: hidden; pointer-events: none; }
.bol-franja { position: absolute; top: -20%; bottom: -20%; width: 34%; left: 0; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.8), rgba(255,255,255,0)); transform: translateX(-80px) skewX(-18deg); }
.bol-ir { flex: none; display: grid; place-items: center; width: 14px; }
.bol-ir svg { width: 8px; height: 13px; color: #5C3D1C; }
@media (max-width: 370px) { .bol-a2 { padding-left: 14px; gap: 6px; } .bol-sellos { gap: 3px; } }

/* ——— Celebración A (pantalla completa) ——— */
.bol-celebra { position: fixed; inset: 0; z-index: 900; background: var(--bol-crema); overflow-y: auto; display: flex; justify-content: center; }
.bol-celebra-col { width: 100%; max-width: 440px; min-height: 100%; display: flex; flex-direction: column; align-items: center; padding: max(24px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom)); text-align: center; }
.bol-hueco { flex: 1; min-height: 8px; }
.bol-ceja { font: 900 11.5px/1.2 var(--bol-texto); letter-spacing: .9px; text-transform: uppercase; color: var(--bol-gris); margin: 0; }
.bol-celebra h2 { margin: 10px 0 0; font: 700 30px/1.08 var(--bol-titulo); color: var(--bol-carbon); letter-spacing: -.3px; }
.bol-nombre { margin: 6px 0 0; font: 900 19px/1.2 var(--bol-texto); color: var(--bol-principal); }
.bol-estrellas { margin-top: 16px; display: flex; gap: 12px; justify-content: center; }
.bol-est { display: block; }
.bol-heroe-caja { --k: 1; width: calc(354px * var(--k)); height: calc(236px * var(--k)); margin-top: 10px; flex: none; }
.bol-heroe { position: relative; width: 354px; height: 236px; transform: scale(var(--k)); transform-origin: 0 0; }
.bol-papelw { position: absolute; left: 57px; top: 24px; width: 240px; height: 190px; transform: rotate(-3deg); }
.bol-papel { position: absolute; inset: 0; background: var(--bol-caramelo); border-radius: 14px; box-shadow: 0 0 0 1px var(--bol-cafe-borde), 0 4px 12px rgba(90,50,10,.12);
  -webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 7.5px, #000 8px) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 7.5px, #000 8px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, transparent 7.5px, #000 8px) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 7.5px, #000 8px) right / 51% 100% no-repeat; }
.bol-borde { position: absolute; inset: 7px 14px; border: 1.5px dashed rgba(92,61,28,.35); border-radius: 9px; }
.bol-letrero { position: absolute; left: 22px; bottom: 13px; font: 900 9.5px/1 var(--bol-texto); letter-spacing: 1.4px; color: rgba(74,49,23,.75); }
.bol-letrero.bol-der { left: auto; right: 22px; }
.bol-selloheroe { position: absolute; display: block; }
.bol-papelw .bol-viejo { left: 54px; top: 14px; }
.bol-caida, .bol-tintaro { left: 111px; top: 38px; }
.bol-tintaro { position: absolute; width: 132px; height: 132px; border-radius: 50%; border: 3px solid rgba(42,74,154,.45); pointer-events: none; opacity: 0; }
.bol-tintaro.bol-oro { border-color: rgba(201,140,0,.55); }
.bol-brillo { position: absolute; left: 117px; top: 44px; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; pointer-events: none; }
.bol-ya { position: absolute; left: 0; right: 0; top: 84px; }
.bol-mensaje { margin-top: 4px; min-height: 52px; }
.bol-msg { margin: 0; font: 900 19px/1.2 var(--bol-texto); }
.bol-sub { margin: 4px 0 0; font: 700 14px/1.3 var(--bol-texto); color: var(--bol-gris); }
.bol-sub b { color: var(--bol-oro-texto); }
.bol-parada { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; padding-top: 14px; border-top: 1px solid var(--bol-linea); }
.bol-parada p { margin: 0; }
.bol-redondel { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bol-principal); color: #fff; display: grid; place-items: center; font: 900 15px var(--bol-texto); box-shadow: 0 0 0 3px #fff, 0 0 0 4px #D5DCEC; margin-top: 2px; }
.bol-redondel.bol-prueba { background: var(--bol-boina); }
.bol-parada .bol-ceja { color: var(--bol-boina); }
.bol-titulo-p { margin-top: 4px !important; font: 900 17px/1.2 var(--bol-texto); }
.bol-desc { margin-top: 3px !important; font: 600 14px/1.35 var(--bol-texto); color: var(--bol-gris); }
.bol-acciones { width: 100%; margin-top: 16px; display: flex; flex-direction: column; gap: 2px; }
.bol-primario { min-height: 54px; border-radius: 999px; background: var(--bol-principal) !important; color: #fff !important; font: 800 17px var(--bol-texto) !important; box-shadow: 0 4px 10px rgba(33,63,134,.25); }
.bol-secundario { min-height: 44px; color: var(--bol-principal) !important; font: 800 15px var(--bol-texto) !important; }
.bol-primario:focus-visible, .bol-secundario:focus-visible { outline: 3px solid var(--bol-oro); outline-offset: 2px; }

/* ——— Mi viaje ——— */
.bol-viaje { position: fixed; inset: 0; z-index: 890; background: var(--bol-crema); }
.bol-viaje-col { position: absolute; inset: 0; overflow-y: auto; padding-bottom: max(40px, env(safe-area-inset-bottom)); }
.bol-viaje-col > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.bol-nav { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; min-height: 52px; padding: env(safe-area-inset-top) 12px 0; background: var(--bol-crema); }
.bol-volver { display: flex; align-items: center; gap: 4px; color: var(--bol-principal) !important; font: 700 17px var(--bol-texto) !important; padding: 8px 6px; min-height: 44px; }
.bol-volver svg { width: 11px; height: 18px; }
.bol-titulo-grande { margin: 2px 0 0; padding: 0 20px; font: 700 32px/1.1 var(--bol-titulo); letter-spacing: -.3px; outline: none; }
.bol-cuerpo { padding: 0 16px; }
.bol-seccion { margin-top: 26px; }
.bol-seccion-t { margin: 0 4px 10px; font: 900 13px/1 var(--bol-texto); letter-spacing: .9px; text-transform: uppercase; color: var(--bol-gris); }
.bol-bg { position: relative; margin-top: 14px; border-radius: 20px; background: var(--bol-caramelo); box-shadow: 0 0 0 1px var(--bol-cafe-borde), 0 3px 10px rgba(90,50,10,.1); padding: 14px 18px 16px;
  -webkit-mask: radial-gradient(circle 9px at 0 62%, transparent 8.5px, #000 9px) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, transparent 8.5px, #000 9px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 62%, transparent 8.5px, #000 9px) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, transparent 8.5px, #000 9px) right / 51% 100% no-repeat; }
.bol-bg-cab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bol-bg-sem { font: 900 13px/1.2 var(--bol-texto); letter-spacing: 1px; text-transform: uppercase; color: var(--bol-cafe); }
.bol-bg-marca { font: 900 11px/1 var(--bol-texto); letter-spacing: 1.6px; color: rgba(74,49,23,.6); }
.bol-bg-sellos { display: flex; justify-content: space-around; align-items: flex-start; margin-top: 14px; gap: 6px; }
.bol-ranura-b { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 44px; min-height: 44px; border-radius: 12px; padding: 2px !important; }
.bol-bg-sellos .bol-ranura-b { flex: 1 1 0; min-width: 0; }
.bol-ranura-b:focus-visible { outline: 3px solid #fff; }
.bol-dia { font: 900 13.5px/1.1 var(--bol-texto); color: var(--bol-cafe); text-align: center; }
.bol-libre .bol-dia { color: var(--bol-cafe-medio); font-weight: 800; }
.bol-progreso { margin: 16px 4px 0; }
.bol-progreso p { margin: 0; }
.bol-cuenta { font: 700 26px/1.1 var(--bol-titulo); color: var(--bol-principal); }
.bol-cuenta .bol-hecho { width: 20px; height: 20px; margin-left: 6px; vertical-align: 2px; }
.bol-msg2 { margin-top: 4px !important; font: 600 15.5px/1.35 var(--bol-texto); color: #5F574F; }
.bol-cta { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 54px; margin-top: 18px; border-radius: 999px; background: var(--bol-principal) !important; color: #fff !important; font: 800 17px var(--bol-texto) !important; box-shadow: 0 4px 10px rgba(33,63,134,.25); }
.bol-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 2px 8px rgba(0,0,0,.05); }
.bol-meta p { margin: 0; }
.bol-txt { flex: 1 1 170px; min-width: 0; }
.bol-et { font: 800 14px/1.2 var(--bol-texto); color: var(--bol-gris); }
.bol-val { font: 900 17px/1.25 var(--bol-texto); }
.bol-fut { margin-top: 4px !important; font: 800 15px/1.3 var(--bol-texto); color: var(--bol-oro-texto); }
.bol-conf { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .25s, opacity .25s, margin .25s; font: 900 14.5px/1.3 var(--bol-texto); color: var(--bol-verde); }
.bol-conf.bol-si { max-height: 60px; opacity: 1; margin-top: 6px !important; }
.bol-v { display: inline-grid; place-items: center; width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--bol-verde); color: #fff; font-size: .8em; margin-right: 4px; }
.bol-cambiar { flex: none; min-height: 44px; padding: 0 16px !important; border-radius: 999px; background: var(--bol-principal-suave) !important; color: var(--bol-principal) !important; font: 900 15px var(--bol-texto) !important; }
.bol-semana { margin-top: 14px; }
.bol-rango { display: block; margin: 0 4px 6px; font: 900 16px var(--bol-texto); }
.bol-hist { padding-right: 14px; }
.bol-hist .bol-n { font-size: 22px; }
.bol-hist .bol-sellos { gap: 4px; }
.bol-hist .bol-ranura-b { min-width: 44px; }
.bol-mes { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; margin-top: 12px; padding: 10px 16px !important; border-radius: 14px; background: var(--bol-superficie) !important; text-align: left; }
.bol-m { font: 900 15px var(--bol-texto); }
.bol-c { font: 700 15px var(--bol-texto); color: var(--bol-gris); }
.bol-mes svg { width: 12px; height: 8px; color: var(--bol-gris); flex: none; }
.bol-mes[aria-expanded="true"] svg { transform: rotate(180deg); }
.bol-mas { display: block; width: 100%; min-height: 48px; margin-top: 14px; color: var(--bol-principal) !important; font: 900 16px var(--bol-texto) !important; }
.bol-vacio { margin: 0 4px; font: 600 15px/1.4 var(--bol-texto); color: var(--bol-gris); }

/* ——— Hojas de Mi viaje ——— */
.bol-velo { position: absolute; inset: 0; z-index: 10; background: rgba(30,25,20,.38); opacity: 0; pointer-events: none; transition: opacity .22s; }
.bol-velo.bol-si { opacity: 1; pointer-events: auto; }
.bol-hoja { position: absolute; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 520px; margin: 0 auto; max-height: 90%; overflow-y: auto; background: var(--bol-crema); border-radius: 26px 26px 0 0; padding: 10px 22px max(30px, env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -10px 30px rgba(0,0,0,.12); }
.bol-hoja.bol-si { transform: none; }
@media (prefers-reduced-motion: reduce) { .bol-hoja { transition: opacity .2s; transform: none; opacity: 0; pointer-events: none; } .bol-hoja.bol-si { opacity: 1; pointer-events: auto; } }
.bol-asa { width: 38px; height: 5px; border-radius: 3px; background: #D5CBBB; margin: 0 auto 12px; }
.bol-hoja h3 { margin: 0; font: 700 24px/1.15 var(--bol-titulo); text-align: center; outline: none; }
.bol-sub2 { margin: 4px 0 0; text-align: center; font: 700 16px/1.4 var(--bol-texto); color: var(--bol-gris); }
.bol-grande { display: flex; justify-content: center; margin: 4px 0 12px; }
.bol-paso { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; margin-top: 10px; }
.bol-paso p { margin: 0; }
.bol-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 900 15px var(--bol-texto); }
.bol-ico-n { background: var(--bol-principal-suave); color: var(--bol-principal); }
.bol-ico-o { background: #FFF1C9; color: var(--bol-oro-texto); }
.bol-que { font: 700 14px/1.2 var(--bol-texto); color: var(--bol-gris); }
.bol-est-n { font: 900 16px/1.25 var(--bol-texto); }
.bol-estr { display: flex; gap: 2px; margin-top: 3px; }
.bol-enlace-3 { display: inline-flex; align-items: center; min-height: 44px; margin: 2px 0 -6px; padding: 0 2px !important; color: var(--bol-principal) !important; font: 800 15px var(--bol-texto) !important; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.bol-dorado { margin: 12px 0 0; text-align: center; font: 900 15px var(--bol-texto); color: var(--bol-oro-texto); }
.bol-btn-p { display: block; width: 100%; min-height: 54px; margin-top: 18px; padding: 8px 16px !important; border-radius: 999px; background: var(--bol-principal) !important; color: #fff !important; font: 800 17px/1.25 var(--bol-texto) !important; }
.bol-btn-p:disabled { background: #B9B3A8 !important; cursor: default; }
.bol-btn-s { display: block; width: 100%; min-height: 46px; margin-top: 4px; color: var(--bol-principal) !important; font: 800 16px var(--bol-texto) !important; }
.bol-opciones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.bol-opcion { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px !important; border-radius: 16px; background: #fff !important; box-shadow: 0 0 0 1.5px var(--bol-linea); min-height: 96px; }
.bol-num { font: 700 30px/1 var(--bol-titulo); }
.bol-dias { font: 800 14.5px var(--bol-texto); color: var(--bol-gris); }
.bol-pts { display: flex; gap: 3px; }
.bol-pts i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px dashed #A88B66; }
.bol-opcion.bol-si { box-shadow: 0 0 0 3px var(--bol-principal); background: #F4F6FC !important; }
.bol-opcion.bol-si .bol-num { color: var(--bol-principal); }
.bol-ahora { min-height: 15px; font: 900 12px var(--bol-texto); letter-spacing: .5px; color: var(--bol-verde); text-transform: uppercase; }
.bol-ahora.bol-pend { color: var(--bol-oro-texto); }
.bol-aviso-meta { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--bol-superficie); font: 700 15.5px/1.4 var(--bol-texto); }
.bol-aviso-meta b { color: var(--bol-principal); }
.bol-lista3 { margin-top: 14px; display: grid; gap: 8px; }
.bol-f { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff; }
.bol-f p { margin: 0; font: 700 15px/1.35 var(--bol-texto); }
.bol-e { flex: none; min-width: 46px; font: 900 15px var(--bol-texto); color: #E09F12; }
.bol-tres { box-shadow: 0 0 0 2px var(--bol-oro); }
.bol-nota3 { margin: 12px 0 0; font: 600 14.5px/1.4 var(--bol-texto); color: var(--bol-gris); text-align: center; }
/* Los estilos generales de botón de la web no deben cambiar la forma de las opciones del selector. */
.bol-opcion { border-radius: 16px !important; width: auto !important; height: auto !important; aspect-ratio: auto !important; }
