/* Escenas de MDPD Taquilla (tq-). Salieron de los bocetos el 2026-09-29. */
/* ---------- Hero: una noche de parque y eventos (2026-09-29) ----------
   La ilustración (imagenes/hero-taquilla.svg, la genera herramientas/hero-taquilla.mjs) va abajo,
   detrás del texto y del panel, como la ciudad de Quiénes Somos: tribuna, montaña rusa, la noria al
   centro (lo que queda en el celular), escenario y puesto de comida. Arriba se funde con el cielo. */
.hero-taquilla { padding-bottom: clamp(120px, 14vw, 230px); }
.hero-taquilla::before {
    background:
        radial-gradient(36% 50% at 10% 16%, rgba(142, 117, 178, .55), transparent 68%),
        radial-gradient(30% 42% at 52% 8%, rgba(255, 60, 140, .34), transparent 70%),
        radial-gradient(32% 44% at 90% 14%, rgba(31, 184, 205, .40), transparent 70%),
        radial-gradient(40% 40% at 50% 100%, rgba(255, 205, 87, .30), transparent 72%);
    animation: tq-drift 10s ease-in-out infinite alternate;
}
.hero-taquilla .svc-hero-fx { display: none; }
.hero-taquilla::after { background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.4px); background-size: 22px 22px; }
.mdpd-svc .tq-fondo {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
    width: 100%; max-width: none; height: clamp(240px, 30vw, 480px);
    object-fit: cover; object-position: 50% 100%;
    pointer-events: none; opacity: .9;
    -webkit-mask-image: linear-gradient(to top, #000 55%, transparent);
    mask-image: linear-gradient(to top, #000 55%, transparent);
}
@media (max-width: 880px) { .mdpd-svc .tq-fondo { height: 300px; } .hero-taquilla { padding-bottom: 170px; } }
@keyframes tq-drift {
    from { transform: translate3d(-5%, -3%, 0) scale(1.04); }
    to   { transform: translate3d(6%, 4%, 0) scale(1.16); }
}

/* ---------- Escenas (rehechas el 2026-09-29) ----------
   Dibujadas directo para la caja de 305 × 190,6 (16:10): sus piezas no llevan el margen de 16 px de
   las escenas viejas (.es-libre). El lugar de ejemplo es inventado: «Parque Mar Azul». */
.esc.es-libre > * { margin: 0; }
.tq-rot { font-size: 6.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94A3B8; }

/* Fecha, horario y cupo: el afiche del evento y el calendario con los cupos */
.tq-afiche { left: 14px; top: 18px; width: 100px; padding: 5px 5px 7px; display: grid; gap: 2px; transform: rotate(-3deg); }
.tq-afiche-img { height: 66px; border-radius: 4px; overflow: hidden; }
.tq-afiche-img svg, .tq-entrada-foto svg { display: block; width: 100%; height: 100%; }
.tq-afiche b { font-size: 9.5px; font-weight: 800; margin-top: 3px; }
.tq-afiche small { font-size: 6.5px; font-weight: 600; color: #64748B; }
.tq-desde { justify-self: start; margin-top: 3px; font-size: 6.5px; font-weight: 800; color: #0E7490; background: color-mix(in srgb, var(--c) 14%, #fff); padding: 2px 6px; border-radius: 99px; }
.tq-cal { right: 12px; top: 14px; width: 172px; padding: 8px 9px 9px; display: grid; gap: 6px; }
.tq-cal-cab { display: flex; justify-content: space-between; align-items: center; font-size: 8.5px; }
.tq-cal-cab b { font-weight: 800; }
.tq-cal-cab span { color: #94A3B8; font-weight: 800; }
.tq-mes { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 7px; font-weight: 700; }
.tq-mes i { font-style: normal; font-size: 6px; font-weight: 800; color: #94A3B8; }
.tq-mes span { position: relative; height: 15px; display: grid; place-items: center; border-radius: 4px; }
.tq-mes .es-lleno { color: #CBD5E1; text-decoration: line-through; }
.tq-mes .es-poco::after { content: ""; position: absolute; bottom: 1.5px; left: calc(50% - 1.5px); width: 3px; height: 3px; border-radius: 50%; background: #F59E0B; }
.tq-mes .es-sel { background: var(--c); color: #fff; box-shadow: 0 3px 8px -3px var(--c); }
.tq-horas { display: grid; gap: 3px; }
.tq-horas span { display: grid; grid-template-columns: 24px 1fr 40px; align-items: center; gap: 5px; padding: 3px 5px; border-radius: 5px; border: 1px solid #E2E8EE; font-size: 7px; }
.tq-horas b { font-weight: 800; }
.tq-horas i { position: relative; height: 4px; border-radius: 2px; background: #EEF2F6; overflow: hidden; }
.tq-horas i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 2px; background: #0B8A63; }
.tq-horas em { font-style: normal; font-size: 6.3px; font-weight: 800; text-align: right; color: #0B8A63; white-space: nowrap; }
.tq-horas .es-lleno { opacity: .55; }
.tq-horas .es-lleno i::after { background: #94A3B8; }
.tq-horas .es-lleno em { color: #64748B; }
.tq-horas .es-poco i::after { background: #F59E0B; }
.tq-horas .es-poco em { color: #D97706; }
.tq-horas .es-sel { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, #fff); box-shadow: 0 0 0 1px var(--c); }
.tq-horas .es-sel i::after { animation: tq-cupo 5s ease-in-out infinite; }
@keyframes tq-cupo { 0%, 20% { width: 56%; } 60%, 100% { width: var(--p); } }
.tq-globo { position: absolute; left: 20px; bottom: 14px; display: flex; align-items: center; gap: 4px; padding: 4px 9px 4px 6px; border-radius: 99px; background: #1E293B; color: #fff; font-size: 7px; font-weight: 800; white-space: nowrap; box-shadow: 0 8px 16px -8px rgba(15, 23, 42, .6); }
.tq-globo::before { content: "✓"; display: grid; place-items: center; width: 11px; height: 11px; border-radius: 50%; background: #0B8A63; font-size: 7px; }

/* Una entrada por persona: el formulario y las entradas en abanico */
.tq-form { left: 12px; top: 20px; width: 168px; padding: 8px 9px 9px; display: grid; gap: 5px; }
.tq-fila { display: grid; grid-template-columns: 16px 1fr 50px; gap: 4px; align-items: center; }
.tq-av { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 5.8px; font-weight: 800; }
.tq-campo { height: 15px; display: flex; align-items: center; padding: 0 5px; border-radius: 4px; border: 1px solid #E2E8EE; font-size: 7px; white-space: nowrap; overflow: hidden; }
.tq-campo.es-foco { border-color: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 22%, transparent); }
.tq-campo u { display: inline-block; width: 1px; height: 9px; margin-left: 1px; background: #1E293B; animation: tq-cursor 1s steps(1) infinite; }
@keyframes tq-cursor { 50% { opacity: 0; } }
.tq-campo.es-vacio { color: #CBD5E1; }
.tq-check { display: flex; align-items: center; gap: 4px; margin-top: 1px; font-size: 6.8px; font-weight: 700; color: #475569; }
.tq-check i { width: 9px; height: 9px; border-radius: 2px; border: 1.5px solid #CBD5E1; }
.tq-abanico { position: absolute; right: 12px; top: 40px; width: 122px; height: 120px; }
.tq-ticket { left: var(--x); top: var(--y); width: 70px; padding: 0 0 6px; display: grid; justify-items: center; gap: 3px; overflow: hidden; transform: rotate(var(--g)); transform-origin: 50% 130%; animation: tq-abre 6s ease-in-out infinite; }
.tq-ticket:nth-child(2) { animation-delay: .15s; }
.tq-ticket:nth-child(3) { animation-delay: .3s; }
@keyframes tq-abre { 0%, 12% { transform: rotate(0) translateX(calc(22px - var(--x))); } 30%, 100% { transform: rotate(var(--g)); } }
.tq-ticket-cab { display: block; width: 100%; height: 11px; }
.tq-ticket b { font-size: 6.8px; font-weight: 800; white-space: nowrap; }
.tq-ticket svg { width: 38px; height: 38px; }

/* El PDF por mail: la bandeja de entrada y la entrada en el celular */
.tq-mail { left: 12px; top: 16px; width: 178px; padding-bottom: 6px; overflow: hidden; }
.tq-mail-cab { display: flex; align-items: center; gap: 3px; padding: 5px 7px; font-size: 7px; font-weight: 800; color: #64748B; border-bottom: 1px solid #EEF2F6; }
.tq-mail-cab span { width: 5px; height: 5px; border-radius: 50%; background: #FF5F57; }
.tq-mail-cab span:nth-child(2) { background: #FEBC2E; }
.tq-mail-cab span:nth-child(3) { background: #28C840; margin-right: 4px; }
.tq-mail-fila { display: grid; grid-template-columns: 18px 1fr auto; gap: 5px; align-items: center; padding: 6px 7px 4px; }
.tq-mail-fila.es-nuevo, .tq-mail-cuerpo, .tq-adjuntos { background: color-mix(in srgb, var(--c) 7%, #fff); box-shadow: inset 2px 0 0 var(--c); }
.tq-marca { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0E7490, #1FB8CD); color: #fff; font-size: 6px; font-weight: 800; }
.tq-marca.es-gris { background: #E2E8EE; }
.tq-mail-fila b { display: block; font-size: 7.5px; font-weight: 800; }
.tq-mail-fila small { display: block; font-size: 6.5px; font-weight: 600; color: #475569; white-space: nowrap; }
.tq-mail-fila .es-gris { color: #CBD5E1; }
.tq-mail-fila em { align-self: start; font-style: normal; font-size: 6px; font-weight: 700; color: #94A3B8; }
.tq-mail-cuerpo { display: grid; gap: 3px; padding: 2px 7px 4px 30px; }
.tq-mail-cuerpo i { height: 3px; border-radius: 2px; background: #D6DEE8; }
.tq-adjuntos { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 7px 7px 30px; }
.tq-adjuntos span { display: flex; align-items: center; gap: 3px; padding: 3px 5px 3px 3px; border: 1px solid #E2E8EE; border-radius: 4px; background: #fff; font-size: 6px; font-weight: 700; white-space: nowrap; }
.tq-adjuntos u { text-decoration: none; padding: 2px; border-radius: 2px; background: #DC2626; color: #fff; font-size: 4.8px; font-weight: 800; }
.tq-adjuntos span:first-child { animation: tq-adjunto 4s ease-in-out infinite; }
@keyframes tq-adjunto { 0%, 60%, 100% { box-shadow: none; } 70%, 90% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); } }

/* Los celulares de las escenas */
.tq-cel { position: absolute; top: 10px; bottom: -18px; width: 88px; border-radius: 14px; background: #0F172A; padding: 6px 5px; box-shadow: 0 14px 28px -10px rgba(15, 23, 42, .45); }
.tq-cel > div { height: 100%; border-radius: 9px; background: #fff; overflow: hidden; display: grid; align-content: start; justify-items: center; gap: 4px; font-size: 6.5px; text-align: center; }
.tq-cel.es-pdf { right: 16px; }
.tq-entrada-cab { width: 100%; padding: 6px 4px 5px; background: linear-gradient(135deg, #0E7490, #1FB8CD); color: #fff; }
.tq-entrada-cab b { display: block; font-size: 7.5px; font-weight: 800; }
.tq-entrada-cab small { display: block; font-size: 5.5px; font-weight: 600; opacity: .85; }
.tq-entrada-foto { width: calc(100% - 10px); height: 34px; border-radius: 4px; overflow: hidden; }
.tq-entrada-datos { display: grid; grid-template-columns: 1fr 1fr; width: calc(100% - 12px); text-align: left; }
.tq-entrada-datos span { font-size: 6.5px; font-weight: 800; }
.tq-entrada-datos i { display: block; font-style: normal; font-size: 4.8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #94A3B8; }
.tq-qr { width: 40px; height: 40px; }
.tq-entrada-nom { font-size: 7px; font-weight: 800; }

/* La puerta: el molinete, la entrada y el celular que la lee */
.tq-molinete { position: absolute; left: 8px; bottom: 0; width: 78px; height: 113px; }
.tq-papel { left: 84px; top: 76px; width: 66px; padding: 0 0 5px; display: grid; justify-items: center; gap: 1px; overflow: hidden; transform: rotate(-8deg); }
.tq-papel b { font-size: 6.5px; font-weight: 800; margin-top: 3px; }
.tq-papel small { font-size: 5.5px; font-weight: 600; color: #64748B; }
.tq-papel svg { width: 30px; height: 30px; margin-top: 2px; }
.tq-haz { position: absolute; left: 146px; top: 56px; width: 56px; height: 96px; background: linear-gradient(90deg, rgba(52, 211, 153, .05), rgba(52, 211, 153, .4)); clip-path: polygon(0 42%, 100% 8%, 100% 92%, 0 64%); animation: tq-haz 2.4s ease-in-out infinite; }
@keyframes tq-haz { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
.tq-cel.es-scan { right: 14px; width: 92px; }
.tq-cel.es-scan > div { background: #0B1220; color: #fff; gap: 8px; }
.tq-puesto-cab { width: 100%; padding: 5px 4px; background: rgba(255, 255, 255, .08); font-size: 6.5px; font-weight: 800; white-space: nowrap; }
.tq-mira { position: relative; width: 58px; height: 58px; margin-top: 4px; display: grid; place-items: center;
    background:
        linear-gradient(#34D399, #34D399) 0 0 / 12px 2px no-repeat, linear-gradient(#34D399, #34D399) 0 0 / 2px 12px no-repeat,
        linear-gradient(#34D399, #34D399) 100% 0 / 12px 2px no-repeat, linear-gradient(#34D399, #34D399) 100% 0 / 2px 12px no-repeat,
        linear-gradient(#34D399, #34D399) 0 100% / 12px 2px no-repeat, linear-gradient(#34D399, #34D399) 0 100% / 2px 12px no-repeat,
        linear-gradient(#34D399, #34D399) 100% 100% / 12px 2px no-repeat, linear-gradient(#34D399, #34D399) 100% 100% / 2px 12px no-repeat; }
.tq-mira svg { width: 40px; height: 40px; padding: 3px; border-radius: 3px; background: #fff; }
.tq-mira::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 2px; background: #34D399; box-shadow: 0 0 8px #34D399; animation: tq-barre-qr 2.4s ease-in-out infinite; }
@keyframes tq-barre-qr { 0%, 100% { transform: translateY(-22px); } 50% { transform: translateY(22px); } }
.tq-res { display: grid; width: 78px; }
.tq-res > span { grid-area: 1 / 1; padding: 5px 3px; border-radius: 6px; font-size: 7px; font-weight: 800; }
.tq-res small { display: block; font-size: 5.5px; font-weight: 600; opacity: .85; }
.tq-res .es-ok { background: #0B8A63; animation: tq-ok 6s infinite; }
.tq-res .es-no { background: #DC2626; opacity: 0; animation: tq-no 6s infinite; }
@keyframes tq-ok { 0%, 45% { opacity: 1; } 50%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes tq-no { 0%, 45% { opacity: 0; } 50%, 95% { opacity: 1; } 100% { opacity: 0; } }

/* Los números del día: el panel en vivo */
.tq-panel { left: 14px; right: 14px; top: 14px; bottom: 14px; padding: 9px 10px; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto 1fr auto; column-gap: 12px; row-gap: 4px; }
.tq-panel-cab { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 8px; font-weight: 800; padding-bottom: 4px; border-bottom: 1px solid #EEF2F6; }
.tq-vivo { display: flex; align-items: center; gap: 4px; font-size: 6.5px; color: #0B8A63; }
.tq-vivo::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #0B8A63; animation: tq-vivo 1.6s ease-out infinite; }
@keyframes tq-vivo { from { box-shadow: 0 0 0 0 rgba(11, 138, 99, .6); } to { box-shadow: 0 0 0 6px rgba(11, 138, 99, 0); } }
.tq-total { grid-column: 1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 4px; }
.tq-total b { font-size: 21px; font-weight: 800; line-height: 1; color: var(--c); }
.tq-total span { font-size: 7px; font-weight: 700; color: #64748B; }
.tq-total em { grid-column: 1 / -1; margin-top: 2px; font-style: normal; font-size: 6px; font-weight: 800; color: #0B8A63; }
.tq-curva { grid-column: 1; grid-row: 3 / 5; width: 100%; height: 100%; min-height: 48px; overflow: visible; }
.tq-linea { stroke-dasharray: 260; animation: tq-traza 6s ease-in-out infinite; }
@keyframes tq-traza { 0% { stroke-dashoffset: 260; } 45%, 100% { stroke-dashoffset: 0; } }
.tq-barras { grid-column: 2; grid-row: 2 / 4; display: grid; gap: 7px; align-content: center; }
.tq-barras div { display: grid; grid-template-columns: 1fr auto; gap: 2px 4px; font-size: 6.5px; font-weight: 700; }
.tq-barras b { font-weight: 800; }
.tq-barras i { grid-column: 1 / -1; grid-row: 2; position: relative; height: 5px; border-radius: 3px; background: #F2F5F7; overflow: hidden; }
.tq-barras i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 3px; background: var(--c); transform-origin: left; animation: tq-crece 6s ease-out infinite; }
.tq-barras div:nth-child(2) i::after { background: #FF7A8A; }
.tq-barras div:nth-child(3) i::after { background: #FFCD57; }
@keyframes tq-crece { from { transform: scaleX(.3); } 40%, to { transform: none; } }
.tq-exp { grid-column: 2; grid-row: 4; justify-self: end; align-self: end; display: flex; align-items: center; gap: 3px; padding: 3px 7px; border-radius: 99px; border: 1px solid #E2E8EE; font-size: 6.5px; font-weight: 800; }
.tq-exp svg { width: 9px; height: 9px; color: #107C41; }

/* Más que la entrada: el pase con lo incluido y el celular del puesto */
.tq-pase { left: 14px; top: 22px; width: 110px; padding: 0 9px 9px; display: grid; gap: 1px; transform: rotate(-4deg); }
.tq-pase .tq-ticket-cab { margin: 0 -9px 5px; width: auto; height: 12px; border-radius: 7px 7px 0 0; }
.tq-pase b { font-size: 9px; font-weight: 800; }
.tq-pase small { font-size: 6.5px; font-weight: 600; color: #64748B; }
.tq-pase ul { list-style: none; margin: 5px 0 0; padding: 0; display: grid; gap: 3px; }
.tq-pase li { display: flex; align-items: center; gap: 4px; margin: 0; font-size: 7px; font-weight: 700; }
.tq-pase li::before { content: ""; display: grid; place-items: center; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid #CBD5E1; color: #fff; font-size: 6px; line-height: 1; }
.tq-pase li.es-si::before { content: "✓"; background: #0B8A63; border-color: #0B8A63; }
.tq-sello { position: absolute; right: -18px; bottom: 8px; padding: 2px 6px; border: 2px solid #DC2626; border-radius: 4px; background: rgba(255, 255, 255, .7); color: #DC2626; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-14deg); animation: tq-sello 6s ease-out infinite; }
@keyframes tq-sello { 0%, 10% { opacity: 0; transform: rotate(-14deg) scale(1.8); } 18%, 100% { opacity: .9; transform: rotate(-14deg) scale(1); } }
.tq-cel.es-canje { right: 12px; width: 118px; }
.es-canje .tq-puesto-cab { background: #1E293B; color: #fff; }
.tq-item { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 4px; align-items: center; width: calc(100% - 8px); padding: 4px; border-radius: 5px; background: #F2F5F7; text-align: left; }
.tq-item svg { width: 16px; height: 16px; }
.tq-item b { display: block; font-size: 6.2px; overflow: hidden; text-overflow: ellipsis; font-weight: 800; white-space: nowrap; }
.tq-item small { display: block; font-size: 5.5px; font-weight: 600; color: #64748B; }
.tq-item em { padding: 2px 4px; border-radius: 99px; background: #0B8A63; color: #fff; font-style: normal; font-size: 5.5px; font-weight: 800; }
.tq-item.es-pend { background: color-mix(in srgb, var(--c) 10%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.tq-item.es-pend em { background: var(--c); animation: tq-vivo 1.6s ease-out infinite; }

@media (prefers-reduced-motion: reduce) { .tq-ticket { transform: rotate(var(--g)); } }
.tq-canje-pie { margin-top: 2px; font-size: 6px; font-weight: 600; color: #64748B; }
.tq-canje-pie b { color: #0B8A63; font-weight: 800; }
