/* Componentes: vidrio, splash, mapa, escáner, documentos legales, animaciones, historias, gráficas, informe, pestañas, pase VIP, lupa.
   Extraído sin cambios del <style> original de index.html (Nororiente Core v12). */

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card-lighter {
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.glass-modal {
    background: rgba(10, 10, 14, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
}
.glass-bottom-nav {
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes splashOut {
    0% { opacity: 1; visibility: visible; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}
.splash-screen { animation: splashOut 0.45s ease-in-out 1.75s forwards; }
.splash-screen.splash-skip { animation: splashOut 0.2s ease-in forwards; }
.splash-glow { background: radial-gradient(circle at 50% 55%, rgba(244,93,28,.20), rgba(139,92,246,.10) 28%, transparent 55%); animation: spGlow 2.2s ease-out both; }
.splash-ridge { stroke-dasharray: 420; stroke-dashoffset: 420; animation: spDraw 1.05s cubic-bezier(.65,0,.35,1) .1s forwards; }
.splash-plain { stroke-dasharray: 100; stroke-dashoffset: 100; animation: spDraw .45s ease-out 1s forwards; }
.splash-river { stroke-dasharray: 300; stroke-dashoffset: 300; animation: spDraw 1.1s ease-out .5s forwards; }
.splash-sun { transform: translateY(44px); animation: spRise 1s cubic-bezier(.2,.8,.2,1) .7s forwards; }
.splash-word { opacity: 0; transform: translateY(10px); animation: spUp .55s ease-out .85s forwards; }
.splash-tag { opacity: 0; animation: spUp .5s ease-out 1.1s forwards; }
.splash-bar { width: 0; animation: spBar 1.7s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes spDraw { to { stroke-dashoffset: 0; } }
@keyframes spRise { to { transform: translateY(0); } }
@keyframes spUp { to { opacity: 1; transform: none; } }
@keyframes spBar { to { width: 100%; } }
@keyframes spGlow { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
    .splash-screen { animation: splashOut .3s ease-in .4s forwards; }
    .splash-ridge, .splash-plain, .splash-river { stroke-dashoffset: 0; animation: none; }
    .splash-sun, .splash-word, .splash-tag { transform: none; opacity: 1; animation: none; }
    .splash-bar { width: 100%; animation: none; }
}
/* Mapa (Leaflet) en el tema oscuro */
.cc-map { background: #0b0a10; }
.cc-map .leaflet-control-attribution { background: rgba(7,6,10,.75); color: #9ca3af; font-size: 9px; }
.cc-map .leaflet-control-attribution a { color: #ffa370; }
.cc-map .leaflet-bar a { background: #13121a; color: #fff; border-color: rgba(255,255,255,.1); }
.cc-map .leaflet-popup-content-wrapper, .cc-map .leaflet-popup-tip { background: #13121a; color: #f3f4f6; border: 1px solid rgba(244,93,28,.35); }
.cc-map .leaflet-control-layers { background: #13121a; color: #f3f4f6; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; font-size: 11px; font-family: Inter, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.6); }
.cc-map .leaflet-control-layers-expanded { padding: 6px 10px; background: rgba(19,18,26,.95); backdrop-filter: blur(8px); }
.cc-map .leaflet-control-layers-base label { display: flex; align-items: center; gap: 6px; cursor: pointer; margin: 3px 0; }
.cc-map .leaflet-popup-content { margin: 10px 12px; font-family: Inter, sans-serif; }
.cc-pin { width: 14px; height: 14px; border-radius: 9999px; background: #f45d1c; border: 2px solid #fff; box-shadow: 0 0 0 5px rgba(244,93,28,.25); }
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(244, 93, 28, 0.4)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 30px rgba(244, 93, 28, 0.8)); }
}
.pulse-logo { animation: pulseLogo 1.5s infinite; }
@keyframes scanLaser {
    0% { top: 0%; opacity: 0.8; }
    50% { opacity: 1; }
    100% { top: 100%; opacity: 0.8; }
}
.scanner-laser { animation: scanLaser 1.8s linear infinite; }
input[type="checkbox"] { accent-color: #F45D1C; cursor: pointer; width: 16px; height: 16px; }
/* Documentos legales */
.legal-doc h2 { font-size: 1.5rem; font-weight: 900; color: #fff; margin-bottom: .25rem; }
.legal-doc h3 { font-size: .9rem; font-weight: 800; color: #ff7a3d; margin-top: 1.5rem; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .05em; }
.legal-doc p, .legal-doc li { font-size: .8rem; color: #d1d5db; line-height: 1.65; }
.legal-doc ul { list-style: disc; padding-left: 1.25rem; margin: .5rem 0; }
.legal-doc ol { list-style: decimal; padding-left: 1.25rem; margin: .5rem 0; }
.legal-doc li { margin-bottom: .3rem; }
.legal-doc strong { color: #fff; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-chevron { transform: rotate(180deg); }
#qrReader video { border-radius: 1rem; }
/* ---- Animaciones de la landing (respetan prefers-reduced-motion arriba) ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.float-y { animation: floatY 3.2s ease-in-out infinite; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.shimmer { background: linear-gradient(90deg, transparent, rgba(244,93,28,.18), transparent); background-size: 200% 100%; animation: shimmer 3s linear infinite; }
/* Aliados: carrusel infinito */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
/* Historias */
.story-ring { background: conic-gradient(from 210deg, #F45D1C, #c4b5fd, #f472b6, #F45D1C); }
.story-ring.seen { background: rgba(255,255,255,.18); }
@keyframes storyProgress { from { width: 0; } to { width: 100%; } }
.story-bar-fill { animation: storyProgress linear forwards; }
@keyframes typing { 0%, 10% { max-width: 0; } 55%, 85% { max-width: 12rem; } 100% { max-width: 0; } }
.typing { display: inline-block; animation: typing 5s steps(24) infinite; }
@keyframes fillLoop { 0% { width: 10%; } 55%, 85% { width: 80%; } 100% { width: 10%; } }
.fill-loop { animation: fillLoop 4s cubic-bezier(.16,1,.3,1) infinite; }
/* Gráficas */
.bar-grow { transform-origin: left; animation: barGrow .8s cubic-bezier(.16,1,.3,1) both; }
.col-grow { transform-origin: bottom; animation: colGrow .8s cubic-bezier(.16,1,.3,1) both; }
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes colGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-hit:hover .chart-mark, .chart-hit:focus .chart-mark { filter: brightness(1.25); }
.chart-hit:hover .chart-tip, .chart-hit:focus .chart-tip { opacity: 1; }
.chart-tip { opacity: 0; transition: opacity .15s; pointer-events: none; }
/* Informe imprimible */
@media print {
    body.printing-report > *:not(#reportModal) { display: none !important; }
    body.printing-report #reportModal { position: static !important; display: block !important; background: #fff !important; padding: 0 !important; }
    body.printing-report #reportModal .no-print { display: none !important; }
    body.printing-report #reportModal > div { max-height: none !important; overflow: visible !important; box-shadow: none !important; border: 0 !important; }
    #reportBody { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* ---------- v6: fechas legibles, pestañas con desplazamiento, pase VIP premium, lupa ---------- */
input[type="date"], input[type="time"], input[type="datetime-local"] { color-scheme: dark; min-height: 2.6rem; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator, input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: .85; cursor: pointer; filter: invert(.7) sepia(1) saturate(4) hue-rotate(-20deg); }
.tabbar { position: relative; }
.tabbar-fade { position: absolute; top: 0; bottom: 12px; width: 44px; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 2; }
.tabbar-fade-l { left: -1rem; background: linear-gradient(90deg, #050507 25%, transparent); }
.tabbar-fade-r { right: -1rem; background: linear-gradient(270deg, #050507 25%, transparent); }
@media (min-width: 768px) { .tabbar-fade-l { left: 0; } .tabbar-fade-r { right: 0; } }
.tabbar.is-over:not(.at-start) .tabbar-fade-l, .tabbar.is-over:not(.at-end) .tabbar-fade-r { opacity: 1; }
.tabbar-arrow { position: absolute; top: 4px; z-index: 3; width: 28px; height: 28px; border-radius: 9999px; display: none; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; backdrop-filter: blur(8px); }
.tabbar-arrow-l { left: -2px; } .tabbar-arrow-r { right: -2px; }
@media (hover: hover) and (min-width: 768px) { .tabbar.is-over:not(.at-start) .tabbar-arrow-l, .tabbar.is-over:not(.at-end) .tabbar-arrow-r { display: flex; } }
.tabbar.is-over:not(.at-end) .tabbar-fade-r::after { content: '›'; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-60%); color: rgba(255,255,255,.7); font-weight: 900; font-size: 18px; animation: tabNudge 1.6s ease-in-out infinite; }
@media (min-width: 768px) { .tabbar-fade-r::after { display: none; } }
@keyframes tabNudge { 0%,100% { transform: translate(0,-60%); opacity: .4 } 50% { transform: translate(4px,-60%); opacity: 1 } }
.tabbar-track { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; display: none; }
.tabbar.is-over .tabbar-track { display: block; }
.tabbar-thumb { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: linear-gradient(90deg, rgba(244,93,28,.2), #f45d1c, rgba(196,181,253,.6)); transition: left .15s linear; }
.pass-scene { perspective: 1200px; }
.pass-card { position: relative; border-radius: 26px; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--c1) 92%, #fff 8%), var(--c1) 35%, var(--c2) 100%); box-shadow: 0 30px 60px -20px color-mix(in srgb, var(--c2) 70%, #000), inset 0 1px 0 rgba(255,255,255,.35); transform-style: preserve-3d; transition: transform .25s ease-out; --mx: 50%; --my: 0%; }
.pass-scene .pass-card { opacity: 0; transform: rotateY(-28deg) rotateX(10deg) translateY(18px) scale(.94); }
.pass-scene.is-in .pass-card { animation: passIn .9s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes passIn { to { opacity: 1; transform: none; } }
.pass-holo { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 60% at var(--mx) var(--my), rgba(255,255,255,.35), transparent 60%), linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, rgba(255,255,255,0) 55%); background-size: 100% 100%, 250% 100%; animation: holoSweep 4.5s ease-in-out infinite; mix-blend-mode: soft-light; }
@keyframes holoSweep { 0% { background-position: 0 0, 140% 0 } 60%,100% { background-position: 0 0, -60% 0 } }
.pass-grain { position: absolute; inset: 0; pointer-events: none; opacity: .18; background-image: radial-gradient(rgba(255,255,255,.5) .6px, transparent .7px); background-size: 4px 4px; }
.pass-stamp { width: 26px; height: 26px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 900; color: rgba(255,255,255,.65); border: 1.5px dashed rgba(255,255,255,.45); }
.pass-stamp.is-on { color: var(--c2); background: #fff; border: 0; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.pass-scene.is-in .pass-stamp.is-on { animation: stampPop .45s cubic-bezier(.34,1.56,.64,1) both; animation-delay: var(--d); }
@keyframes stampPop { from { transform: scale(0) rotate(-35deg); opacity: 0 } to { transform: none; opacity: 1 } }
.pass-ready { font-size: 20px; animation: float-y 2.5s ease-in-out infinite; }
.pass-mini { position: relative; overflow: hidden; display: block; border-radius: 20px; padding: 14px; background: linear-gradient(120deg, var(--c1), var(--c2)); box-shadow: 0 14px 30px -14px var(--c2); animation: miniIn .6s cubic-bezier(.16,1,.3,1) both; animation-delay: var(--d); transition: transform .2s; }
.pass-mini:hover { transform: translateY(-2px) scale(1.01); }
@keyframes miniIn { from { opacity: 0; transform: translateY(14px) scale(.97) } to { opacity: 1; transform: none } }
#modalContent[data-tab="menu"] img { cursor: zoom-in; transition: transform .25s; }
#modalContent[data-tab="menu"] img:hover { transform: scale(1.04); }
.dish-zoom { animation: dishIn .35s cubic-bezier(.16,1,.3,1); }
@keyframes dishIn { from { opacity: 0; transform: scale(.85) translateY(10px) } to { opacity: 1; transform: none } }
@media (prefers-reduced-motion: reduce) { .pass-scene .pass-card, .pass-scene.is-in .pass-card { opacity: 1; transform: none; animation: none; } .pass-holo, .pass-mini, .dish-zoom, .pass-scene.is-in .pass-stamp.is-on { animation: none; } .tabbar-fade-r::after { animation: none; } }
