/* Aylesva Tickets · portal de eventos y marco de la plataforma (encabezado, barra inferior, pie).
   El prototipo es la ley: este archivo va DESPUÉS de estilos.css y lo afina. Lo del marco (encabezado, barra inferior, pie)
   lo carga comun.js en todas las páginas; lo del portal solo aplica con <body class="portal">. */

@property --tinte { syntax: '<color>'; inherits: true; initial-value: #C5A47E; }

body.portal { --dorado-2: #D9BE98; }
:root[data-tema="claro"] body.portal { --dorado: #B48E62; --dorado-2: #9C7A52; --dorado-hover: #9C7A52; --verde: #1F8A57; --ambar: #A86A00; }

/* ——— Encabezado (web): 70 px, logo 30, navegación, buscador a la derecha ——— */
.encabezado .envoltura { max-width: none; padding: 0 44px; gap: 26px; height: 70px; justify-content: flex-start; }
.encabezado .logo img { height: 30px; }
.encabezado nav { flex: 1; gap: 6px; }
.encabezado nav:not(:has(.buscador-cab)) { flex: none; margin-left: auto; }
.encabezado nav a { padding: 8px 14px; }
.buscador-cab { margin-left: auto; }
.buscador-cab input { width: 280px; height: 42px; }
.encabezado .tema { display: none; }

/* ——— Pie ——— */
.pie .envoltura { max-width: none; padding-left: 44px; padding-right: 44px; }
.tema-pie { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--filete); background: var(--vidrio); color: inherit; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.tema-pie:hover { background: rgba(255, 255, 255, .14); }
.tema-pie svg { width: 16px; height: 16px; }
:root[data-tema="claro"] .tema-pie:hover { background: var(--sup-3); }

/* ——— Botones y pastillas (tamaños del prototipo) ——— */
body.portal .boton { min-height: 50px; font-size: .98rem; font-weight: 800; }
body.portal .boton.chico { min-height: 38px; padding: 0 15px; font-size: .84rem; }
body.portal .boton:active { transform: scale(.94); }
.boton.blanco { background: #fff; color: #0A0A0C; }
.boton.blanco:hover { background: #fff; }
.boton.vidrio { background: var(--vidrio); color: var(--tinta); border: 1px solid var(--filete); }
.boton.vidrio:hover { background: var(--sup-3); }
.boton.vidrio svg { width: 18px; height: 18px; }
:root[data-tema="claro"] .boton.blanco { background: #0B0B0D; color: #fff; }

/* ——— Fondo del portal: el póster del evento activo, desenfocado, cubre todo y se funde con el fondo ——— */
body.portal main { position: relative; isolation: isolate; transition: --tinte .6s; }
.fondo-portal { position: absolute; left: 0; right: 0; top: 0; height: 900px; z-index: -1; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 35%, transparent 82%); mask-image: linear-gradient(to bottom, #000 0, #000 35%, transparent 82%); }
.fondo-portal i { position: absolute; inset: 0; }
.fondo-portal .fp-img { inset: -80px; background-size: cover; background-position: center; filter: blur(28px) saturate(1.1) brightness(.75); transform: scale(1.25); transition: background-image .4s; opacity: .85; }
.fondo-portal .fp-glow { background: radial-gradient(60% 70% at 70% 15%, color-mix(in srgb, var(--tinte) 55%, transparent), transparent 70%); mix-blend-mode: screen; }
:root[data-tema="claro"] .fondo-portal .fp-img { opacity: .3; filter: blur(28px) saturate(1.1); }
:root[data-tema="claro"] .fondo-portal .fp-glow { mix-blend-mode: normal; opacity: .35; }

/* ——— Escritorio ——— */
.pastilla-fecha { display: none; }
@media (min-width: 641px) {
  body.portal .heroe { overflow: visible; isolation: auto; border-bottom: 0; }
  body.portal .heroe::after, body.portal .heroe .fondo { display: none; }
  body.portal .heroe .heroe-grid { max-width: 1400px; padding: 40px 44px 30px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: 0; }
  body.portal .heroe-vacio { grid-template-columns: minmax(0, 1fr); min-height: 320px; }
  .heroe-sin { font-size: 1.3rem; font-weight: 700; margin: 0 0 18px; color: var(--tinta-2); }
  .chips-heroe { gap: 8px; margin-bottom: 22px; }
  body.portal .heroe .fecha-gigante { text-align: left; font-size: clamp(90px, 11vw, 150px); margin: 0 0 18px; line-height: .9; background: linear-gradient(to bottom, var(--tinta) 30%, color-mix(in srgb, var(--tinta) 55%, transparent)); -webkit-background-clip: text; background-clip: text; }
  body.portal .heroe .linea { font-size: .8rem; font-weight: 800; letter-spacing: .14em; color: var(--tenue); }
  body.portal .heroe h2 { font-size: 2.6rem; font-weight: 900; letter-spacing: -.055em; line-height: .95; text-transform: uppercase; margin: 6px 0 0; }
  body.portal .heroe .resumen-heroe { max-width: 520px; margin: 14px 0 22px; display: block; overflow: visible; -webkit-line-clamp: unset; }
  body.portal .heroe .fila-acciones { margin-top: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

  /* Mazo de pósters verticales apilados */
  .mazo-col { justify-self: center; }
  .mazo { position: relative; width: 360px; height: 560px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .mazo .carta { position: absolute; left: 0; right: 0; top: 0; height: 540px; border-radius: 28px; overflow: hidden; display: block; text-decoration: none; color: #fff; background: #222; box-shadow: 0 24px 50px rgba(0, 0, 0, .5); transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .45s, filter .45s; cursor: pointer; }
  .mazo .carta img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
  .carta .velo-carta { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, 0) 32%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .85) 100%); }
  .carta .chips-carta { position: absolute; top: 18px; left: 18px; display: grid; gap: 7px; justify-items: start; }
  .carta .rotulo-carta { position: absolute; left: 20px; right: 20px; top: 98px; text-align: center; }
  .carta .rotulo-carta small { font-size: .66rem; font-weight: 800; letter-spacing: .26em; text-transform: uppercase; opacity: .9; }
  body.portal .heroe .carta .rotulo-carta h2 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 2.7rem; font-weight: 900; letter-spacing: -.045em; line-height: .88; text-transform: uppercase; margin: 6px 0 0; overflow-wrap: anywhere; }
  .carta .pie-carta { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
  .carta .pie-carta > div { min-width: 0; }
  .carta .pie-carta b { font-size: 1.05rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .carta .pie-carta .pastilla { flex: none; }
  .carta .pie-carta span:not(.pastilla) { font-size: .78rem; opacity: .85; }
  .mazo-col .puntos { justify-content: center; gap: 6px; margin-top: 6px; }
  .mazo-col .puntos button { position: relative; width: 6px; height: 6px; border-radius: 3px; background: var(--sup-3); }
  .mazo-col .puntos button::after { content: ''; position: absolute; inset: -9px -4px; }
  .mazo-col .puntos button[aria-current="true"] { width: 20px; background: var(--dorado); }

  /* Sin barra de filtros aparte (están en el héroe) ni buscador (está en el encabezado) */
  #barra { display: none; }
  .titulo-seccion.con-consulta, body.portal #titulo-lista { padding-top: 6px; }
  body.portal #titulo-lista:not(.con-consulta) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); padding: 0; }
  body.portal .sec-lista { max-width: 1400px; padding: 10px 44px 60px; }

  /* Rejilla de pósters verticales a sangre */
  body.portal .rejilla { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
  body.portal a.tarjeta { position: relative; display: block; aspect-ratio: 3 / 4.2; border: 0; border-radius: 22px; background: #222; color: #fff; overflow: hidden; transition: transform .25s; }
  body.portal a.tarjeta:hover { transform: translateY(-4px); box-shadow: none; }
  body.portal a.tarjeta .imagen { position: absolute; inset: 0; aspect-ratio: auto; background: #222; }
  body.portal a.tarjeta .imagen::after { background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .88)); }
  body.portal a.tarjeta .fecha-chip { display: none; }
  .pastilla-fecha { position: absolute; left: 14px; top: 14px; z-index: 2; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(12, 12, 14, .72); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #F2F2F4; font-size: .76rem; font-weight: 800; letter-spacing: .04em; }
  body.portal a.tarjeta .cuerpo { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; padding: 0; gap: 2px; flex: none; }
  body.portal a.tarjeta .org { font-size: .68rem; letter-spacing: .14em; color: var(--dorado-2); }
  body.portal a.tarjeta h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.2rem; font-weight: 900; letter-spacing: -.04em; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
  body.portal a.tarjeta .linea-escritorio { display: none; }
  body.portal a.tarjeta .precio { margin: 0; padding: 0; font-size: .75rem; font-weight: 600; color: rgba(255, 255, 255, .88); }
  body.portal .vacio { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 900px) {
  body.portal .heroe .heroe-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .mazo-col { order: -1; }
}

/* ——— Celular ——— */
@media (max-width: 640px) {
  body { padding-bottom: 128px; }
  /* Encabezado: logo a la izquierda, «Inmersivo» a la derecha */
  .encabezado .envoltura { padding: 0 18px; height: 58px; gap: 10px; justify-content: space-between; }
  .encabezado .logo img { height: 22px; }
  .encabezado nav { flex: none; }
  .modo-pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-height: 0; padding: 0 14px 0 10px; font-size: .8rem; font-weight: 700; color: var(--tinta); background: var(--vidrio); border: 1px solid var(--filete); border-radius: 999px; white-space: nowrap; }
  .modo-pill svg { width: 18px; height: 18px; color: var(--dorado); vertical-align: 0; }
  .modo-pill:active { transform: scale(.94); }

  /* Fondo con resplandor del color del evento */
  .fondo-portal { height: 70vh; -webkit-mask-image: none; mask-image: none; }
  .fondo-portal .fp-img { display: none; }
  .fondo-portal .fp-glow { mix-blend-mode: normal; background: radial-gradient(120% 55% at 50% -8%, color-mix(in srgb, var(--tinte) 38%, transparent), transparent 70%); }
  :root[data-tema="claro"] .fondo-portal .fp-glow { opacity: .6; }

  /* Filtros en una sola fila; sin buscador ni tema (el tema está en el pie) */
  .barra-portal { padding: 10px 18px 4px; gap: 6px; }
  .barra-portal .buscador { display: none; }
  .barra-portal .chips { flex: 1 1 100%; gap: 6px; }
  .barra-portal .chip { height: 40px; padding: 0 15px; font-size: .82rem; font-weight: 700; }
  .barra-portal .chip:active { transform: scale(.94); }
  .encabezado + main #movil-dest, body.portal #movil-dest { padding-left: 0; padding-right: 0; }
  #movil-dest .cart-titulo, #titulo-lista { margin-top: 14px; padding: 0 18px 12px; font-size: 1.2rem; font-weight: 800; }
  .cuenta { font-size: .8rem; font-weight: 500; }
  body.portal .sec-lista { padding: 0 10px; }
  body.portal .sec-lista #titulo-lista { padding-left: 8px; }

  /* Carrusel de destacados: imagen a sangre, la activa a escala completa */
  .carrusel { gap: 12px; margin: 0; padding: 4px 18px 10px; scroll-padding: 0 18px; }
  .dest-carta { flex: 0 0 84%; height: clamp(210px, 30vh, 270px); aspect-ratio: auto; border: 0; border-radius: 24px; background: #222; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); transform: scale(.94); opacity: .7; transition: transform .45s cubic-bezier(.2, .9, .25, 1.15), opacity .35s; }
  .dest-carta.activa { transform: none; opacity: 1; }
  .dest-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .dest-carta::after { z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, transparent 30%, transparent 45%, rgba(0, 0, 0, .88) 100%); }
  .dest-carta .fecha-chip { left: 12px; top: 12px; background: rgba(10, 10, 12, .55); border: 0; padding: 7px 11px; }
  .dest-carta .fecha-chip b { font-size: 1.6rem; font-weight: 900; line-height: 1; }
  .dest-carta .fecha-chip span { font-size: .62rem; letter-spacing: .14em; }
  .dest-pie { left: 16px; right: 16px; bottom: 14px; gap: 2px; }
  .dest-org { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: rgba(255, 255, 255, .8); }
  .dest-pie h3 { font-size: 1.65rem; font-weight: 900; letter-spacing: -.045em; line-height: .95; -webkit-line-clamp: 2; }
  .dest-fila { margin-top: 6px; }
  .dest-fila .boton { min-height: 38px; padding: 0 18px; }
  #puntos-carrusel { gap: 6px; margin-top: 2px; }
  #puntos-carrusel i { width: 6px; height: 6px; border-radius: 3px; background: var(--sup-3); transition: width .3s, background .3s; }
  #puntos-carrusel i[aria-current="true"] { width: 18px; background: var(--tinta); }

  /* Lista en filas */
  body.portal .rejilla { gap: 0; }
  body.portal a.tarjeta { min-height: 84px; display: grid; grid-template-columns: 64px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 10px 8px; border: 0; border-radius: 0; background: none; color: inherit; aspect-ratio: auto; overflow: visible; }
  body.portal a.tarjeta:active { background: var(--vidrio); border-radius: 18px; transform: none; }
  body.portal a.tarjeta::after { content: ''; width: 8px; height: 8px; margin: 0 auto 0 4px; border-top: 2px solid var(--tenue); border-right: 2px solid var(--tenue); transform: rotate(45deg); }
  body.portal a.tarjeta .imagen { position: relative; inset: auto; width: 64px; height: 64px; aspect-ratio: 1; border: 0; border-radius: 14px; }
  body.portal a.tarjeta .cuerpo { position: static; padding: 0; gap: 1px; }
  body.portal a.tarjeta .cuando { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; color: var(--dorado); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.portal a.tarjeta h3 { display: block; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; text-transform: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.portal a.tarjeta .donde { display: block; font-size: .8rem; color: var(--tenue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  /* Entrada animada la primera vez */
  .dest-carta.entra, a.tarjeta.entra { animation: sube-suave .6s cubic-bezier(.2, .9, .25, 1.15) backwards; animation-delay: calc(var(--i) * 60ms + 80ms); }

  /* Pie corto: una línea de enlaces */
  .pie { margin-top: 32px; }
  .pie .envoltura { padding: 20px 18px 16px; flex-direction: column; gap: 12px; text-align: center; justify-content: center; font-size: .78rem; }
  .pie img { display: none; }

  /* Barra inferior flotante */
  .nav-inferior { bottom: max(26px, env(safe-area-inset-bottom)); gap: 6px; padding: 8px; background: rgba(16, 16, 19, .86); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
  :root[data-tema="claro"] .nav-inferior { background: rgba(255, 255, 255, .9); border-color: rgba(0, 0, 0, .08); box-shadow: 0 16px 40px rgba(0, 0, 0, .14); }
  .nav-inferior a { height: 44px; min-width: 44px; padding: 0 11px; gap: 8px; font-size: .85rem; }
  .nav-inferior a:active { transform: scale(.94); }
  .nav-inferior a .marco-ico { position: relative; display: inline-flex; }
  .nav-inferior a .marco-ico svg { width: 22px; height: 22px; }
  .nav-inferior a .etq { display: none; }
  .nav-inferior a[aria-current="page"] { background: none; padding: 0 11px; color: var(--tinta); }
  .nav-inferior a[aria-current="page"] .marco-ico { display: inline-flex; border: 1.6px solid currentColor; border-radius: 9px; padding: 2px; }
  .nav-inferior a[aria-current="page"] .etq { display: inline; }
  .nav-inferior .insignia { top: -7px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; font: 800 .62rem/16px var(--exhibe); font-style: normal; box-shadow: 0 0 0 2px rgba(16, 16, 19, .9); }
  :root[data-tema="claro"] .nav-inferior .insignia { box-shadow: 0 0 0 2px #fff; }
}
@keyframes sube-suave { from { opacity: 0; transform: translateY(22px); } }

/* ——— Vista inmersiva (celular) ——— */
@media (max-width: 640px) {
  .inm-barra { top: max(12px, env(safe-area-inset-top)); left: 14px; right: 14px; gap: 6px; }
  .inm-barra .chips { gap: 6px; }
  .inm-barra .chip { height: 40px; padding: 0 12px; font-size: .78rem; font-weight: 700; background: rgba(10, 10, 12, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .inm-icono { width: 40px; height: 40px; background: rgba(10, 10, 12, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .inm-evento { background: #111; }
  .inm-fondo { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; transform: scale(1.04); }
  .inm-evento.activa .inm-fondo { animation: acercar 14s ease-in-out infinite alternate; }
  @keyframes acercar { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
  .inm-velo { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .95) 100%); }
  .inm-contenido { left: 18px; right: 80px; bottom: 112px; gap: 6px; }
  .inm-contenido > * { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .6s cubic-bezier(.2, .9, .25, 1.15); transition-delay: 0s; }
  .inm-evento.activa .inm-contenido > * { opacity: 1; transform: none; transition-delay: calc(var(--k, 0) * 70ms + 80ms); }
  .inm-contenido > :nth-child(1) { --k: 0; } .inm-contenido > :nth-child(2) { --k: 1; } .inm-contenido > :nth-child(3) { --k: 2; }
  .inm-contenido > :nth-child(4) { --k: 3; } .inm-contenido > :nth-child(5) { --k: 4; } .inm-contenido > :nth-child(6) { --k: 5; }
  .inm-fecha span { font-size: .78rem; letter-spacing: .14em; color: #D9BE98; }
  .inm-fecha b { letter-spacing: -.06em; line-height: .8; }
  .inm-meta { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .82); margin-top: 6px; }
  .inm-contenido h2 { font-size: clamp(2rem, 10.5vw, 2.7rem); line-height: .92; letter-spacing: -.045em; text-wrap: balance; }
  .inm-presenta { font-size: .86rem; color: rgba(255, 255, 255, .85); }
  .inm-lugar { font-size: .86rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0 5px; }
  .inm-pin { display: inline-flex; color: #D9BE98; }
  .inm-pin svg { width: 16px; height: 16px; }
  .inm-acciones .boton { min-height: 46px; }
  .inm-acciones .boton.oscuro { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .inm-lateral { right: 10px; bottom: 124px; gap: 14px; }
  .inm-lateral svg { background: rgba(12, 12, 14, .5); }
  .inm-lateral [aria-pressed="true"] svg { background: var(--rojo); color: #fff; }
  .inm-lateral svg.late { animation: late-corazon .45s cubic-bezier(.2, .9, .3, 1.4); }
  @keyframes late-corazon { 40% { transform: scale(1.3); } }
  .inm-puntos { position: absolute; right: 8px; top: 42%; z-index: 3; display: grid; gap: 5px; justify-items: center; pointer-events: none; }
  .inm-puntos i { display: block; width: 4px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); transition: height .3s cubic-bezier(.2, .9, .25, 1.15), background .3s; }
  .inm-puntos i.activo { height: 18px; background: #fff; }
  .inm-desliza { top: 40%; }
}
@media (max-width: 640px) and (max-height: 700px) { .inm-puntos, .inm-desliza { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .inm-evento.activa .inm-fondo, .inm-lateral svg.late { animation: none !important; }
  .inm-contenido > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .dest-carta.entra, a.tarjeta.entra { animation: none !important; }
}

/* ——— Organización y 404 (mismo estilo del portal) ——— */
body.portal .portada-org { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; position: relative; }
body.portal .portada-org h1 { text-transform: uppercase; font-weight: 900; letter-spacing: -.055em; }
body.portal .portada-org .logo-org { width: 88px; height: 88px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--filete); }
body.portal .org-fondo { background: radial-gradient(120% 55% at 50% -8%, color-mix(in srgb, var(--org) 38%, transparent), transparent 70%); }
body.portal .no-existe h2 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 900; letter-spacing: -.055em; text-transform: uppercase; }
body.portal .no-existe .boton { min-height: 50px; }
body.portal .org-fondo { left: 50%; right: auto; width: 100vw; translate: -50% 0; }


/* Carteles horizontales: completos sobre su propio fondo difuminado (ver marcarApaisadas en comun.js) */
.apaisada { isolation: isolate; }
.apaisada::before { content: ''; position: absolute; inset: -30px; z-index: -1; background: var(--portada) center / cover; filter: blur(28px) brightness(.6) saturate(1.3); }
.mazo .carta.apaisada > img { z-index: 0; position: absolute; left: 0; right: 0; top: 46%; width: 100%; height: 36%; object-fit: contain; }
.dest-carta.apaisada > img.dest-img { z-index: 0; position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 58%; inset: 0 0 auto 0; object-fit: contain; }
.inm-evento.apaisada > img.inm-fondo { position: absolute; inset: 76px 0 auto 0; width: 100%; height: 34dvh; object-fit: contain; animation: none; transform: none; }


/* ═══════════════════════════════════════════════════════════════════════════════════════════════════
   ESCRITORIO ≥ 1024 px · portal con identidad propia (estructura de un portal de boletos moderno:
   héroe a todo el ancho → buscador en píldora → banner de organizadores → «Próximos eventos» con tarjetas de cartel).
   Por debajo de 1024 px NADA de esto aplica: el celular y la tableta se quedan como estaban.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════ */
.pc-heroe, .pc-banner-envo, .pc-dato, .pc-precio, .pc-buscar, .btn-vender, .tema-cab, .pie-cols, .t-pc, .ver-todos { display: none; }
.pc-heroe[hidden] { display: none !important; }

@media (min-width: 1024px) {
  /* ——— Encabezado: logo a la izquierda; a la derecha navegación, «Vender entradas» y tema ——— */
  .encabezado .envoltura { padding: 0 44px; }
  .encabezado nav { flex: none; margin-left: auto; gap: 4px; }
  .encabezado nav a { font-size: .95rem; }
  .encabezado nav a[aria-current="page"] { color: var(--tinta); background: var(--suave); }
  .encabezado .buscador-cab { display: none; }
  .encabezado nav a.btn-vender { display: inline-flex; align-items: center; height: 42px; margin: 0 8px 0 14px; padding: 0 20px; border: 1.5px solid var(--dorado); color: var(--tinta); background: transparent; font-weight: 800; transition: background .2s, color .2s; }
  .encabezado nav a.btn-vender:hover { background: var(--dorado); color: #0A0A0C; }
  .tema-cab { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1px solid var(--filete); background: var(--vidrio); color: var(--tinta); cursor: pointer; }
  .tema-cab:hover { background: var(--sup-3); }
  .tema-cab svg { width: 18px; height: 18px; }
  .n-aviso { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 5px; padding: 0 5px; border-radius: 10px; background: var(--dorado); color: #0A0A0C; font: 800 .7rem/1 var(--exhibe); vertical-align: 1px; }
  .n-aviso .par { display: none; }

  /* ——— Héroe cinematográfico ——— */
  #heroe, .fondo-portal { display: none; }
  .pc-heroe { display: block; position: relative; color: #fff; background: #0A0A0C; }
  .pc-slides { display: grid; }
  .pc-slide { grid-area: 1 / 1; position: relative; overflow: hidden; isolation: isolate; min-height: clamp(560px, 70vh, 700px); display: flex; align-items: center; background: radial-gradient(70% 90% at 80% 20%, color-mix(in srgb, var(--dorado) 30%, #0A0A0C), #0A0A0C 70%); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
  .pc-slide.activa { opacity: 1; visibility: visible; }
  .pc-fondo { position: absolute; inset: 0; z-index: -2; background-image: var(--portada); background-size: cover; background-position: center; filter: blur(16px) brightness(.62) saturate(1.2); transform: scale(1.1); }
  .pc-slide.activa .pc-fondo { animation: pc-zoom 14s ease-out both; }
  .pc-slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 8, 10, .94) 0%, rgba(8, 8, 10, .78) 42%, rgba(8, 8, 10, .3) 100%), linear-gradient(0deg, rgba(8, 8, 10, .55) 0%, transparent 38%); }
  @keyframes pc-zoom { from { transform: scale(1.18); } to { transform: scale(1.1); } }

  .pc-cont { width: 100%; max-width: 1360px; padding: 56px 44px 128px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
  .pc-cont.sin-cartel { grid-template-columns: minmax(0, 760px); }
  .pc-texto { min-width: 0; }
  .pc-slide.activa .pc-texto > * { animation: pc-entra .7s cubic-bezier(.2, .8, .2, 1) both; }
  .pc-slide.activa .pc-texto > :nth-child(2) { animation-delay: .06s; } .pc-slide.activa .pc-texto > :nth-child(3) { animation-delay: .12s; }
  .pc-slide.activa .pc-texto > :nth-child(4) { animation-delay: .18s; } .pc-slide.activa .pc-texto > :nth-child(5) { animation-delay: .24s; }
  @keyframes pc-entra { from { opacity: 0; transform: translateY(18px); } }
  .pc-etiq { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-weight: 700; font-size: .9rem; color: rgba(255, 255, 255, .78); }
  .pc-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 12px; border-radius: 999px; background: var(--dorado); color: #0A0A0C; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; flex: none; }
  .pc-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #0A0A0C; }
  .pc-org { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .pc-texto h2 { font-size: clamp(2.4rem, 4vw, 4rem); font-weight: 900; letter-spacing: -.03em; line-height: .98; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
  .pc-datos { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 24px 0 0; padding: 0; font-weight: 600; font-size: 1.02rem; color: rgba(255, 255, 255, .92); }
  .pc-datos li { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
  .pc-datos svg { width: 20px; height: 20px; flex: none; color: var(--dorado-2); }
  .pc-datos span { overflow-wrap: anywhere; }
  .pc-desc { max-width: 560px; margin-top: 18px; color: rgba(255, 255, 255, .72); font-size: 1.02rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pc-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  body.portal .pc-acciones .boton { min-height: 54px; padding: 0 28px; font-size: 1rem; }
  body.portal .pc-ver { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  body.portal .pc-ver:hover { background: rgba(255, 255, 255, .18); }

  /* Cartel: una sola tarjeta que cambia con el evento; completo (nunca recortado) sobre su propio fondo difuminado */
  .pc-cartel { --ar: .8; position: relative; justify-self: center; display: block; width: min(100%, calc(var(--ar) * 440px)); aspect-ratio: var(--ar); border-radius: 22px; overflow: hidden; isolation: isolate; background: #17171a; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .04); transform: rotate(1.2deg); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
  .pc-cartel:hover { transform: rotate(0) translateY(-4px); }
  .pc-cartel::before { content: ''; position: absolute; inset: -24px; z-index: -1; background: var(--portada) center / cover; filter: blur(24px) brightness(.6) saturate(1.3); }
  .pc-cartel img { width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
  .pc-slide.activa .pc-cartel { animation: pc-cartel .8s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes pc-cartel { from { opacity: 0; translate: 40px 0; scale: .96; } }

  /* Controles: flechas y puntos, alineados con el texto, por encima del solape del buscador */
  .pc-controles { position: absolute; left: 0; right: 0; bottom: 70px; margin: 0 auto; max-width: 1360px; padding: 0 44px; display: flex; align-items: center; gap: 10px; z-index: 3; pointer-events: none; }
  .pc-controles > * { pointer-events: auto; }
  .pc-flecha { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .2s, transform .15s; }
  .pc-flecha:hover { background: rgba(255, 255, 255, .22); }
  .pc-flecha:active { transform: scale(.92); }
  .pc-flecha svg { width: 20px; height: 20px; }
  .pc-puntos { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
  .pc-puntos button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .4); cursor: pointer; transition: width .3s, background .3s; }
  .pc-puntos button::after { content: ''; position: absolute; inset: -12px -3px; }
  .pc-puntos button[aria-current="true"] { width: 28px; background: var(--dorado); }
  .pc-heroe :focus-visible { outline-color: #fff; }

  /* ——— Franja de búsqueda: píldora ancha centrada que se monta sobre el héroe ——— */
  body.portal #barra { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; max-width: 1080px; padding: 0 44px; margin-top: -37px; position: relative; z-index: 5; }
  main.sin-heroe #barra { margin-top: 36px; }
  #barra .buscador { order: 1; flex: 1 1 100%; max-width: 960px; margin: 0 auto; height: 74px; display: flex; align-items: center; background: var(--papel); border: 1px solid var(--filete); border-radius: 999px; box-shadow: 0 22px 60px rgba(0, 0, 0, .38), 0 2px 0 rgba(255, 255, 255, .04) inset; transition: border-color .2s, box-shadow .2s; }
  :root[data-tema="claro"] #barra .buscador { box-shadow: 0 22px 50px rgba(30, 24, 12, .18); border-color: rgba(0, 0, 0, .08); }
  #barra .buscador:focus-within { border-color: var(--dorado); box-shadow: 0 22px 60px rgba(0, 0, 0, .38), 0 0 0 4px color-mix(in srgb, var(--dorado) 28%, transparent); }
  #barra .buscador svg { left: 28px; width: 22px; height: 22px; }
  #barra .buscador input { flex: 1; width: 100%; height: 100%; border: 0; border-radius: 999px; background: transparent; box-shadow: none; outline: none; padding: 0 190px 0 66px; font-size: 1.08rem; color: var(--tinta); }
  #barra .buscador input::placeholder { color: var(--tenue); opacity: 1; }
  #barra .buscador .pc-buscar { display: inline-flex; position: absolute; right: 9px; top: 9px; height: 56px; min-height: 0; padding: 0 38px; font-size: 1rem; }
  #barra .cart-filtros { order: 2; justify-content: center; gap: 10px; }
  #barra .chip { height: 42px; padding: 0 20px; font-size: .9rem; font-weight: 700; transition: background .2s, color .2s, transform .15s; }
  #barra .chip:hover { background: var(--sup-3); color: var(--tinta); }
  #barra .chip[aria-pressed="true"] { background: var(--dorado); color: #0A0A0C; border-color: transparent; }

  /* ——— Banner para organizadores ——— */
  body.portal .pc-banner-envo { display: block; max-width: 1360px; padding: 0 44px; margin-top: 54px; }
  .pc-banner { display: flex; align-items: center; gap: 24px; padding: 24px 30px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--dorado) 38%, transparent); background: linear-gradient(100deg, color-mix(in srgb, var(--dorado) 20%, var(--papel)) 0%, var(--papel) 68%); }
  .pc-banner-ico { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; background: color-mix(in srgb, var(--dorado) 26%, transparent); color: var(--dorado-2); }
  :root[data-tema="claro"] .pc-banner-ico { color: #7A5C35; }
  .pc-banner-ico svg { width: 28px; height: 28px; }
  .pc-banner-txt { flex: 1; min-width: 0; display: grid; gap: 4px; }
  .pc-banner-txt b { font-family: var(--exhibe); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
  .pc-banner-txt span { color: var(--tenue); font-size: .95rem; }
  body.portal .pc-banner-btn { flex: none; min-height: 50px; padding: 0 30px; }

  /* ——— «Próximos eventos» ——— */
  body.portal .sec-lista { max-width: 1360px; padding: 54px 44px 40px; min-height: 480px; }
  .cab-lista { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 26px; }
  body.portal .pc-lista #titulo-lista, body.portal .pc-lista #titulo-lista:not(.con-consulta) { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin: 0; padding: 0; display: flex; align-items: center; gap: 14px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.035em; }
  body.portal .pc-lista #titulo-lista::before { content: ''; width: 5px; height: 1.15em; border-radius: 3px; background: var(--dorado); }
  .t-movil { display: none; } .t-pc { display: inline; }
  .cuenta { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 14px; background: var(--vidrio); color: var(--tenue); font-size: .8rem; font-weight: 700; }
  .ver-todos { display: inline-flex; align-items: center; gap: 4px; padding: 8px 4px 8px 12px; border: 0; background: none; color: var(--tinta-2); font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; border-radius: 999px; }
  .ver-todos[hidden] { display: none; }
  .ver-todos svg { width: 18px; height: 18px; transition: transform .2s; }
  .ver-todos:hover { color: var(--tinta); }
  .ver-todos:hover svg { transform: translateX(3px); }
  .ver-todos[aria-expanded="true"] svg { transform: rotate(-90deg); }

  body.portal .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
  body.portal .rejilla.recorta:not(.abierta) > .tarjeta:nth-child(n+10) { display: none; }

  /* Tarjeta: cartel arriba (4/5), datos debajo */
  body.portal a.tarjeta { position: relative; display: flex; flex-direction: column; aspect-ratio: auto; border: 1px solid var(--filete); border-radius: 18px; background: var(--papel); color: var(--tinta); overflow: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s, border-color .28s; }
  body.portal a.tarjeta:hover { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(0, 0, 0, .36); border-color: color-mix(in srgb, var(--dorado) 60%, transparent); }
  :root[data-tema="claro"] body.portal a.tarjeta:hover { box-shadow: 0 22px 44px rgba(40, 30, 10, .16); }
  body.portal a.tarjeta:focus-visible { outline-offset: 3px; }
  body.portal a.tarjeta .imagen { position: relative; inset: auto; aspect-ratio: 4 / 5; background: #17171a; isolation: isolate; border-radius: 0; }
  body.portal a.tarjeta .imagen::after { display: none; }
  body.portal a.tarjeta .imagen::before { content: ''; position: absolute; inset: -24px; z-index: -1; background: var(--portada) center / cover; filter: blur(22px) brightness(.6) saturate(1.25); opacity: 0; }
  body.portal a.tarjeta .imagen.ajusta::before { opacity: 1; }
  body.portal a.tarjeta .imagen img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
  body.portal a.tarjeta .imagen.ajusta img { object-fit: contain; }
  body.portal a.tarjeta:hover .imagen img { transform: scale(1.04); }
  body.portal a.tarjeta .pastilla-fecha { display: none; }
  body.portal a.tarjeta .cuerpo { position: static; flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 16px 18px 18px; }
  body.portal a.tarjeta .org { font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: var(--dorado-2); }
  :root[data-tema="claro"] body.portal a.tarjeta .org { color: #8A6A40; }
  body.portal a.tarjeta h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; margin-bottom: 4px; font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; text-transform: none; overflow-wrap: anywhere; }
  body.portal a.tarjeta .linea-escritorio, body.portal a.tarjeta .cuando, body.portal a.tarjeta .donde, body.portal a.tarjeta .precio { display: none; }
  body.portal a.tarjeta .pc-dato { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--tenue); font-size: .86rem; font-weight: 500; }
  body.portal a.tarjeta .pc-dato svg { width: 16px; height: 16px; flex: none; color: var(--dorado); }
  body.portal a.tarjeta .pc-dato span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  body.portal a.tarjeta .pc-precio { display: inline-flex; align-self: flex-start; margin-top: auto; padding: 6px 13px; border-radius: 999px; background: color-mix(in srgb, var(--dorado) 18%, transparent); color: color-mix(in srgb, var(--dorado) 50%, var(--tinta)); font-size: .8rem; font-weight: 800; }
  body.portal a.tarjeta .pc-fecha { margin-bottom: 10px; }

  /* ——— Pie con más cuerpo ——— */
  .pie { margin-top: 72px; }
  .pie .envoltura { max-width: 1360px; padding: 56px 44px 30px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; grid-template-areas: "logo ev org leg" "lema ev org leg" "copy copy copy tema"; column-gap: 40px; row-gap: 0; align-items: start; }
  .pie > .envoltura > img { grid-area: logo; height: 32px; margin-bottom: 18px; }
  .pie-cols { display: contents; }
  .pie-lema { grid-area: lema; max-width: 340px; font-size: .92rem; line-height: 1.6; color: #9A9AA2; margin-bottom: 44px; }
  .pie-cols nav { display: flex; flex-direction: column; gap: 11px; margin-bottom: 44px; }
  .pie-cols nav:nth-of-type(1) { grid-area: ev; } .pie-cols nav:nth-of-type(2) { grid-area: org; } .pie-cols nav:nth-of-type(3) { grid-area: leg; }
  .pie-cols h4 { margin: 0 0 6px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dorado); }
  .pie-cols a { width: fit-content; text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .15s; }
  .pie-cols a:hover { color: #fff; }
  .pie .pie-enlaces { grid-area: copy; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .09); color: #7E7E86; font-size: .82rem; }
  .pie .enl-leg { display: none; }
  .pie .tema-pie { grid-area: tema; justify-self: end; margin-top: 18px; color: #C9C9CF; }
}
@media (min-width: 1200px) {
  body.portal .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.portal .rejilla.recorta:not(.abierta) > .tarjeta:nth-child(n+9) { display: none; }
}
@media (min-width: 1024px) {
  :root[data-tema="claro"] .pie > .envoltura > img { filter: brightness(0); }
  :root[data-tema="claro"] .pie-lema { color: var(--tenue); }
  :root[data-tema="claro"] .pie .pie-enlaces { border-top-color: var(--filete); color: var(--tenue); }
  :root[data-tema="claro"] .pie-cols h4 { color: #8A6A40; }
  :root[data-tema="claro"] .pie-cols a:hover { color: var(--tinta); }
  :root[data-tema="claro"] .pie .tema-pie { color: var(--tinta-2); }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .pc-slide, .pc-flecha, .pc-puntos button, body.portal a.tarjeta, body.portal a.tarjeta .imagen img, .pc-cartel { transition: none !important; }
  .pc-slide.activa .pc-fondo, .pc-slide.activa .pc-texto > *, .pc-slide.activa .pc-cartel { animation: none !important; }
  .pc-cartel { transform: none; }
}
