/* HMB — mod_concerts_next v2: proximos conciertos en carrusel scroll-snap a todo el ancho. Contraste >= 4.5:1. */
.cnx { container-type:inline-size; position:relative; width:100%; box-sizing:border-box; margin:0 auto 1.2rem; color:#f4eee4; grid-column:1 / -1; }
.cnx__head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.4rem 1rem; padding:.2rem .2rem .8rem; }
.cnx__tit { margin:0; font:700 1.35rem/1.1 var(--font-title, Oswald, sans-serif); letter-spacing:.12em; text-transform:uppercase; color:#f4eee4; }
.cnx__ico { color:#ff4d2e; }
.cnx__lnk { min-height:44px; display:inline-flex; align-items:center; color:#e0b43a !important; font:600 .95rem/1 var(--font-title, Oswald, sans-serif); letter-spacing:.1em; text-transform:uppercase; text-decoration:none !important; }
.cnx__lnk:hover { color:#fff !important; }
.cnx__lnk:focus-visible, .cnx__poster:focus-visible, .cnx__btn:focus-visible, .cnx__menu a:focus-visible { outline:3px solid #e0b43a; outline-offset:2px; }

.cnx__viewport { position:relative; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; }
.cnx__viewport::-webkit-scrollbar { display:none; }
.cnx__viewport:focus-visible { outline:3px solid #e0b43a; outline-offset:2px; }
.cnx__track { display:flex; gap:1rem; margin:0; padding:0; list-style:none; }
.cnx__slide { container-type:inline-size; flex:0 0 var(--bm, 92%); min-width:0; scroll-snap-align:start; scroll-snap-stop:always; box-sizing:border-box; display:flex; }
.cnx__card { flex:1; min-width:0; display:flex; flex-direction:column; gap:.9rem; padding:0 0 1rem; background:linear-gradient(160deg,#1a1210,#0c0a0a 70%); border:1px solid #2e2420; border-top:3px solid #c42000; }
.cnx__poster { position:relative; display:block; width:100%; aspect-ratio:var(--arm, 21 / 9); padding:0; border:0; background:#000; cursor:zoom-in; overflow:hidden; }
.cnx__poster::before { content:''; position:absolute; inset:-20px; background:var(--bg) center / cover; filter:blur(18px) brightness(.5) saturate(1.3); }
.cnx__poster img { position:relative; display:block; width:100%; height:100%; object-fit:contain; transition:transform .4s ease; }
.cnx__poster:hover img { transform:scale(1.04); }
.cnx__info { flex:1; min-width:0; display:flex; flex-direction:column; gap:.35rem; padding:0 1rem; }
.cnx__info p { margin:0; }
.cnx__date { display:flex; align-items:center; flex-wrap:wrap; gap:.5rem; }
.cnx__day { font:800 1.05rem/1.2 var(--font-title, Oswald, sans-serif); letter-spacing:.06em; color:#ff6a4d; }
.cnx__chip { padding:.1rem .55rem; font:700 .72rem/1.5 var(--font-title, Oswald, sans-serif); letter-spacing:.1em; text-transform:uppercase; color:#d8d0c4; border:1px solid #6b5c55; }
.cnx__chip--hot { background:#e0b43a; border-color:#e0b43a; color:#1a1200; }
.cnx__name { margin:0; font:700 1.5rem/1.15 var(--font-title, Oswald, sans-serif); color:#fff; overflow-wrap:anywhere; }
.cnx__hl { color:#ffb02e; font-weight:600; font-size:.92rem; }
.cnx__sup { color:#b8b0a4; font-size:.85rem; }
.cnx__ven { color:#d8d0c4; font-size:.9rem; }
.cnx__pv { color:#b8b0a4; }
.cnx__hr { color:#b8b0a4; font-size:.82rem; }
.cnx__prs { display:flex; flex-wrap:wrap; gap:.3rem; margin:.1rem 0 0; padding:0; list-style:none; }
.cnx__pr { padding:.15rem .6rem; border:1px solid rgba(255,106,77,.5); background:rgba(196,32,0,.14); color:#ffb4a4; border-radius:20px; font-size:.78rem; font-weight:600; }
.cnx__pr b { color:#fff; }
.cnx__pr.is-sold { border-color:rgba(255,120,120,.4); color:#ffa8a8; }
.cnx__pr em { font-style:normal; font-size:.7rem; text-transform:uppercase; }
.cnx__act { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; margin-top:auto; padding-top:.6rem; }
.cnx__btn { min-height:44px; display:inline-flex; align-items:center; padding:0 1rem; font:700 .85rem/1 var(--font-title, Oswald, sans-serif); letter-spacing:.06em; text-transform:uppercase; text-decoration:none !important; cursor:pointer; box-sizing:border-box; border:1px solid transparent; list-style:none; }
.cnx__btn::-webkit-details-marker { display:none; }
.cnx__btn--tix { background:#c42000; color:#fff !important; }
.cnx__btn--tix:hover { background:#e02a00; }
.cnx__btn--more { background:transparent; color:#ff9a85 !important; border-color:#c42000; }
.cnx__btn--more:hover { background:#2a0a04; color:#fff !important; }
.cnx__btn--cal { background:rgba(255,255,255,.08); color:#f4eee4; border-color:rgba(255,255,255,.28); }
.cnx__btn--cal::after { content:"\25BE"; margin-left:.4rem; }
.cnx__cal { position:relative; }
.cnx__menu { position:absolute; left:0; bottom:calc(100% + 4px); min-width:200px; z-index:20; background:#1a1a1a; border:1px solid #444; box-shadow:0 6px 22px rgba(0,0,0,.7); }
.cnx__menu a { display:flex; align-items:center; min-height:44px; padding:0 1rem; color:#e0d8cc !important; text-decoration:none !important; font-size:.9rem; }
.cnx__menu a:hover { background:#2a0a04; color:#fff !important; }
.cnx__sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.cnx__dis { margin:.2rem 0 0; font-size:.75rem; color:#a89f93; font-style:italic; }

.cnx__arrow { position:absolute; top:calc(50% - 1.5rem); width:44px; height:64px; display:none; align-items:center; justify-content:center; padding:0; background:rgba(12,10,10,.88); color:#f4eee4; border:1px solid #5a4a44; cursor:pointer; z-index:5; }
.cnx__arrow svg { width:24px; height:24px; }
.cnx__arrow:hover { background:#3a0e06; border-color:#c42000; }
.cnx__arrow:focus-visible { outline:3px solid #e0b43a; }
.cnx__arrow--prev { left:0; }
.cnx__arrow--next { right:0; }
.cnx__dots { display:flex; justify-content:center; flex-wrap:wrap; padding-top:.5rem; }
.cnx__dot { position:relative; width:28px; height:28px; padding:0; border:0; background:transparent; cursor:pointer; }
.cnx__dot::before { content:""; position:absolute; left:50%; top:50%; width:10px; height:10px; margin:-5px; border-radius:50%; background:#6b5c55; transition:background .2s, transform .2s; }
.cnx__dot.is-active::before { background:#ff6a4d; transform:scale(1.4); }
.cnx__dot:focus-visible { outline:3px solid #e0b43a; border-radius:4px; }

.cnx__lb { border:0; padding:0; max-width:92vw; max-height:92vh; background:transparent; }
.cnx__lb::backdrop { background:rgba(0,0,0,.92); }
.cnx__lb img { display:block; max-width:92vw; max-height:88vh; }
.cnx__lb button { position:absolute; top:8px; right:8px; width:44px; height:44px; border-radius:50%; background:rgba(0,0,0,.8); border:2px solid #fff; color:#fff; font-size:1.1rem; cursor:pointer; }

@media (hover:hover) { .cnx__arrow { display:flex; } }
@container (min-width:640px) { .cnx__slide { flex-basis:var(--bt, 48%); } .cnx__poster { aspect-ratio:var(--art, 16 / 9); } }
@container (min-width:1000px) { .cnx__slide { flex-basis:var(--bd, 24%); } .cnx__poster { aspect-ratio:var(--ard, 4 / 3); } }
/* Tarjetas estrechas (muchas a la vez): texto y botones más compactos. Aquí el contenedor es la propia tarjeta. */
@container (max-width:340px) {
  .cnx__card { gap:.6rem; padding-bottom:.8rem; }
  .cnx__info { padding:0 .75rem; }
  .cnx__name { font-size:1.2rem; }
  .cnx__day { font-size:.92rem; }
  .cnx__hl, .cnx__sup, .cnx__ven, .cnx__hr { font-size:.8rem; }
  .cnx__btn { min-height:40px; padding:0 .7rem; font-size:.76rem; }
  .cnx__act { gap:.4rem; }
}
@container (max-width:230px) {
  .cnx__name { font-size:1.05rem; }
  .cnx__chip { font-size:.66rem; }
  .cnx__btn { padding:0 .55rem; font-size:.7rem; }
  .cnx__pr { font-size:.7rem; }
}
@media (prefers-reduced-motion: reduce) { .cnx__poster img, .cnx__dot::before { transition:none; } .cnx__poster:hover img { transform:none; } }
