/* ==========================================================================
   «Mención especial» — diseño Holograma (construido como Quito Secreto).
   Marcado: includes/seccion-mencion-especial.php · Movimiento: assets/js/carrusel-mencion-especial.js
   Textos: editables en el panel (Portada y fichas → «Mención especial»).

   Reglas del sitio que respeta:
     · Fraunces en títulos, Inter en texto; JetBrains Mono solo en rótulos
       «de cabina» (como las tarjetas de Quito Secreto). Nada por debajo de 12 px.
     · Controles de al menos 44 px de alto/ancho.
     · Los flyers SIEMPRE se ven completos (object-fit: contain) sobre su propio
       fondo desenfocado: nunca se recortan.
     · Neón y latón son el idioma de Quito Secreto/hologramas; el botón de
       entrada es la acción y lleva texto casi negro sobre el verde.
     · Sin estilos en línea (CSP). Con «reducir movimiento» no hay giro ni
       transiciones ni avance automático.
   ========================================================================== */

.mh {
    --mh-neon: #3ddc84;
    --mh-cian: #4de3ff;
    --mh-laton: #c9a24b;
    --mh-laton-claro: #efd48a;
    --mh-laton-oscuro: #6e5120;
    --mh-texto: #ece3d0;
    --mh-apagado: #b3a98f;           /* 7.9:1 sobre el fondo */
    --mh-mono: 'JetBrains Mono', ui-monospace, 'DejaVu Sans Mono', 'Courier New', monospace;
    --mh-serif: 'Fraunces', Georgia, serif;
    --mh-wc: 280px;                  /* ancho del cartel central */
    --mh-ws: 210px;                  /* ancho de los carteles de los lados */
    --mh-dx: 330px;                  /* cuánto se separan los lados del centro */
    --mh-alto: 540px;                /* alto del escenario */
    --mh-anillo: 470px;
    --mh-pad: 26px;

    position: relative;
    margin-top: 24px;
    padding: 20px var(--mh-pad) 26px;
    overflow: hidden;
    border: 1px solid rgba(61, 220, 132, 0.28);
    border-radius: 14px;
    color: var(--mh-texto);
    background:
        radial-gradient(120% 90% at 20% 40%, rgba(18, 10, 36, 0.55), transparent 60%),
        radial-gradient(90% 90% at 0 50%, rgba(61, 220, 132, 0.07), transparent 60%),
        linear-gradient(135deg, #0b1712, #07090b 60%, #0d0a14);
    box-shadow: inset 0 0 40px rgba(61, 220, 132, 0.05), 0 0 30px rgba(61, 220, 132, 0.07);
}
.mh a { color: inherit; text-decoration: none; }
.mh :focus-visible { outline: 2px solid var(--mh-cian); outline-offset: 3px; }

/* ---------- Franja de arriba: señal + contador + flechas ---------- */
.mh-arriba { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.mh .mh-kick {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px 9px; margin: 0;
    font: 700 0.75rem/1.3 var(--mh-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mh-neon);
}
.mh-led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--mh-neon); box-shadow: 0 0 10px var(--mh-neon); }
.mh-ctl { display: flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.mh-cuenta { font: 600 0.8125rem var(--mh-mono); letter-spacing: 0.1em; color: var(--mh-apagado); }
.mh-cuenta b { font-size: 1.1rem; color: var(--mh-laton-claro); }
.mh-flecha {
    display: none; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
    font-size: 1.05rem; line-height: 1; color: var(--mh-laton);
    background: rgba(201, 162, 75, 0.06); border: 1px solid var(--mh-laton-oscuro); border-radius: 4px;
}
.mh-js .mh-flecha { display: grid; }
@media (hover: hover) and (pointer: fine) { .mh-flecha:hover { background: rgba(201, 162, 75, 0.16); border-color: var(--mh-laton); } }

/* ---------- Escenario ---------- */
.mh-escena {
    position: relative; height: var(--mh-alto); margin: 4px calc(var(--mh-pad) * -1) 0;
    perspective: 1100px; overflow: hidden; touch-action: pan-y;
}
.mh-suelo {
    position: absolute; left: -6%; right: -6%; bottom: -8px; height: 150px; opacity: 0.9;
    transform: perspective(260px) rotateX(62deg); transform-origin: 50% 100%;
    background:
        repeating-linear-gradient(90deg, rgba(61, 220, 132, 0.35) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(61, 220, 132, 0.35) 0 1px, transparent 1px 26px);
    -webkit-mask: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 70%);
    mask: radial-gradient(ellipse at 50% 100%, #000 10%, transparent 70%);
}
.mh-anillo {
    position: absolute; left: 50%; top: 44%; width: var(--mh-anillo); height: var(--mh-anillo);
    margin: calc(var(--mh-anillo) / -2) 0 0 calc(var(--mh-anillo) / -2); opacity: 0.5; pointer-events: none;
    animation: mh-giro 140s linear infinite;
}
.mh-anillo text { font: 14px var(--mh-mono); fill: var(--mh-cian); letter-spacing: 0.1em; }
@keyframes mh-giro { to { transform: rotate(360deg); } }
.mh-haz {
    position: absolute; left: 50%; bottom: 36px; width: 300px; height: 360px; margin-left: -150px; opacity: 0.5; pointer-events: none;
    clip-path: polygon(34% 100%, 66% 100%, 100% 0, 0 0);
    background: linear-gradient(0deg, rgba(61, 220, 132, 0.42), rgba(61, 220, 132, 0.05) 75%, transparent);
}
.mh-base {
    position: absolute; bottom: 18px; width: 220px; height: 36px; left: 50%; margin-left: -110px; border-radius: 50%; pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, #0c2418 0 40%, transparent 41%),
        conic-gradient(from 0deg, var(--mh-laton-oscuro), var(--mh-laton-claro), var(--mh-laton-oscuro), var(--mh-laton), var(--mh-laton-oscuro));
    box-shadow: 0 0 30px rgba(61, 220, 132, 0.35), 0 6px 12px #000;
}
.mh-base::after {
    content: ""; position: absolute; inset: 7px 26px; border-radius: 50%;
    border: 2px solid var(--mh-neon); box-shadow: 0 0 14px var(--mh-neon), inset 0 0 12px rgba(61, 220, 132, 0.6);
}
.mh-base-izq, .mh-base-der { width: 130px; margin-left: -65px; opacity: 0.55; transform: scale(0.8); }
.mh-base-izq { left: calc(50% - var(--mh-dx)); }
.mh-base-der { left: calc(50% + var(--mh-dx)); }
.mh[data-n="1"] .mh-base-izq, .mh[data-n="1"] .mh-base-der, .mh[data-n="2"] .mh-base-izq { display: none; }

/* ---------- Carteles ---------- */
.mh-carta {
    --w: var(--mh-wc);
    position: absolute; left: 50%; bottom: 60px; z-index: 3; display: block; width: var(--w); margin-left: calc(var(--w) / -2);
    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease, filter 0.5s ease;
}
.mh-pos-izq, .mh-pos-der { --w: var(--mh-ws); z-index: 2; filter: brightness(0.5) saturate(0.8); }
.mh-pos-izq { transform: translateX(calc(var(--mh-dx) * -1)) rotateY(32deg); }
.mh-pos-der { transform: translateX(var(--mh-dx)) rotateY(-32deg); }
.mh-pos-oculta { --w: var(--mh-ws); z-index: 1; opacity: 0; transform: scale(0.7); pointer-events: none; }
.mh-marco {
    position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px;
    border: 1px solid rgba(61, 220, 132, 0.7); background: #05100b;
    box-shadow: 0 0 26px rgba(61, 220, 132, 0.32), inset 0 0 34px rgba(61, 220, 132, 0.1);
}
/* El flyer se ve ENTERO; lo que sobra del recuadro se rellena con el mismo flyer desenfocado. */
.mh-fondo { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: blur(16px) brightness(0.45); }
.mh-frente { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: saturate(1.1) contrast(1.05); }
/* Líneas de escaneo y brillo holográfico */
.mh-marco::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
    background:
        repeating-linear-gradient(0deg, rgba(61, 220, 132, 0.08) 0 1px, transparent 1px 3px),
        linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.13) 44%, rgba(77, 227, 255, 0.22) 50%, transparent 62%);
}
.mh-sello {
    position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 8px; border-radius: 2px;
    font: 700 0.75rem/1.2 var(--mh-mono); letter-spacing: 0.14em; text-transform: uppercase; color: #04170a;
    background: var(--mh-neon); box-shadow: 0 0 12px rgba(61, 220, 132, 0.6); transition: opacity 0.3s ease;
}
.mh-pos-izq .mh-sello, .mh-pos-der .mh-sello, .mh-pos-oculta .mh-sello { opacity: 0; }
.mh-pos-izq, .mh-pos-der { cursor: pointer; }

/* ---------- Datos del evento activo ---------- */
.mh-info { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 2px; }
.mh-info[hidden] { display: none; }
.mh .mh-info h3 {
    margin: 0; max-width: 100%; text-align: center; text-wrap: balance; overflow-wrap: anywhere;
    font-family: var(--mh-serif); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.35rem); line-height: 1.15; letter-spacing: -0.01em; color: #f3ead4;
}
.mh-mods { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, auto); gap: 12px; justify-content: center; max-width: 100%; }
.mh-mod {
    display: flex; flex-direction: column; gap: 3px; min-width: 190px; padding: 8px 16px;
    border: 1px solid var(--mh-laton-oscuro); border-radius: 3px; background: rgba(201, 162, 75, 0.05);
}
.mh-mod small { font: 700 0.75rem/1.2 var(--mh-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mh-laton); }
.mh-mod span { font-weight: 600; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.mh-mod-g { border-color: #1c7a49; background: rgba(61, 220, 132, 0.07); }
.mh-mod-g small { color: var(--mh-neon); }
.mh-mod-g span { color: #7dffb4; font-family: var(--mh-mono); font-weight: 700; }
.mh .mh-entrar {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 4px;
    font: 700 0.8125rem/1.2 var(--mh-mono); letter-spacing: 0.16em; text-transform: uppercase; text-align: center; color: #03140b;
    background: linear-gradient(90deg, #3ddc84, #8cffc0 50%, #4de3ff);
    box-shadow: 0 0 22px rgba(61, 220, 132, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
@media (hover: hover) and (pointer: fine) { .mh .mh-entrar:hover { filter: brightness(1.08); } }

/* ---------- Segmentos de avance (solo con JavaScript) ---------- */
.mh-segs { display: none; justify-content: center; gap: 8px; margin-top: 8px; }
.mh-js .mh-segs { display: flex; }
.mh-seg { position: relative; width: 52px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; transition: width 0.25s ease; }
.mh-seg::before, .mh-seg::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; }
.mh-seg::before { background: #26352c; }
.mh-seg.activo { width: 84px; }
.mh-seg.activo::before { background: var(--mh-neon); box-shadow: 0 0 8px rgba(61, 220, 132, 0.6); }
.mh-segs.con-auto .mh-seg.activo::before { background: #26352c; box-shadow: none; }
.mh-segs.con-auto .mh-seg.activo::after {
    background: var(--mh-neon); box-shadow: 0 0 8px rgba(61, 220, 132, 0.6); transform-origin: left center;
    animation: mh-progreso var(--mh-ms, 6000ms) linear forwards;
}
.mh-segs.en-pausa .mh-seg.activo::after { animation-play-state: paused; }
@keyframes mh-progreso { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Tableta ---------- */
@media (max-width: 899px) {
    .mh { --mh-wc: 250px; --mh-ws: 190px; --mh-dx: 255px; --mh-alto: 500px; --mh-anillo: 420px; }
    .mh-mod { min-width: 0; }
}

/* ---------- Celular ---------- */
@media (max-width: 640px) {
    .mh { --mh-wc: 218px; --mh-ws: 176px; --mh-dx: 190px; --mh-alto: 450px; --mh-anillo: 360px; --mh-pad: 16px; padding-top: 14px; padding-bottom: 14px; }
    .mh .mh-kick { font-size: 0.75rem; letter-spacing: 0.04em; gap: 4px 7px; }
    .mh-ctl { gap: 6px; }
    .mh-flecha { display: none !important; }              /* en celular se desliza el dedo */
    .mh-haz { width: 240px; margin-left: -120px; height: 310px; }
    .mh-base { width: 180px; margin-left: -90px; }
    .mh-base-izq, .mh-base-der { width: 130px; margin-left: -65px; }
    .mh-carta { bottom: 52px; }
    .mh-mods { grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; }
    .mh-mod-g { grid-column: 1 / -1; }
    .mh-mod:only-child { grid-column: 1 / -1; }
    .mh .mh-entrar { width: 100%; }
    .mh-seg { width: 44px; }
    .mh-seg.activo { width: 72px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    .mh-anillo { animation: none; }
    .mh-carta, .mh-sello, .mh-seg { transition: none; }
    .mh-segs.con-auto .mh-seg.activo::after { animation: none; transform: scaleX(1); }
}
