/**
 * hmb2.css — rediseño de portada (plantilla hmb2). Se carga la ÚLTIMA.
 * Todo con prefijo h2-: no depende ni choca con las clases genéricas de tpl_hmb (hmb-header, hmb-layout…).
 * Colores solo con los tokens de hmb-base.css (con fallback).
 */

.h2-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; box-sizing: border-box; }

/* ───────── Panel compacto (v2): 3 tarjetas + tira «Explora» ───────── */
.h2-panel { padding: 1.5rem 0 .5rem; }
.h2-panel-track {
  display: grid; gap: .9rem; align-items: stretch;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  grid-template-areas: "hoy directo disco";
}
.h2-card--hoy { grid-area: hoy; }
.h2-card--agenda { grid-area: directo; }
.h2-card--disco { grid-area: disco; }

/* Plancha de acero con filo de fuego y remaches */
.h2-card {
  position: relative; display: flex; flex-direction: column; padding: .95rem 1.05rem .8rem;
  background: linear-gradient(rgba(8,0,0,.8), rgba(8,0,0,.9)), url('../images/metal/acero.webp') center / cover #0a0000;
  border: 1px solid #2a0000; border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 8px 22px rgba(0,0,0,.5), 0 2px 0 #5c0000, 0 3px 14px rgba(204,34,0,.26);
}
.h2-card::before, .h2-card::after {
  content: ''; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9a9a9a, #3a3a3a); opacity: .8; pointer-events: none;
}
.h2-card::before { left: 6px; } .h2-card::after { right: 6px; }
.h2-label {
  display: flex; align-items: baseline; gap: .55rem; margin: 0 0 .6rem;
  font: 600 .7rem/1 var(--font-title, 'Oswald', sans-serif); letter-spacing: .22em; text-transform: uppercase; color: var(--grey-c, #ccc);
}
.h2-num { font: 400 1.2rem/1 var(--font-display, 'Metal Mania', cursive); letter-spacing: 0; color: var(--gold-light, #DAA520); }

.h2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .05rem; min-width: 0; flex: 1; }
.h2-row { display: flex; align-items: center; gap: .6rem; padding: .25rem .3rem; margin: 0 -.3rem; color: inherit; text-decoration: none; transition: background .2s; }
.h2-row:hover { background: rgba(204,34,0,.12); text-decoration: none; }
.h2-row-text { display: flex; flex-direction: column; min-width: 0; }
.h2-row-text strong {
  font: 600 .84rem/1.2 var(--font-title, 'Oswald', sans-serif); color: var(--white, #efefef); letter-spacing: .01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.h2-year { flex: none; width: 2.5rem; font: 700 .9rem/1 var(--font-title, 'Oswald', sans-serif); color: var(--gold-light, #DAA520); }

/* 01 · Hoy: calendario pequeño + 3 efemérides */
.h2-hoy { display: flex; gap: .8rem; align-items: flex-start; }
.h2-cal { flex: none; width: 3.6rem; display: flex; flex-direction: column; align-items: center; background: #f1e9dc; border-radius: 2px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.h2-cal-mes { align-self: stretch; text-align: center; padding: .2rem 0; background: var(--fire, #CC2200); color: #fff; font: 600 .6rem/1 var(--font-title, 'Oswald', sans-serif); letter-spacing: .25em; text-transform: uppercase; }
.h2-cal-dia { padding: .15rem 0; font: 400 2.2rem/1 var(--font-display, 'Metal Mania', cursive); color: #1a0000; }

/* 02 · Entradas con el cartel de fondo + slider */
.h2-slider { position: relative; }
.h2-tickets { display: flex; gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: .1rem 0; }
.h2-tickets::-webkit-scrollbar { display: none; }
.h2-ticket {
  position: relative; flex: 0 0 calc((100% - 1.4rem) / 3); scroll-snap-align: start; min-height: 8.6rem;
  display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; color: #fff; border-radius: 3px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,.72) 0, rgba(0,0,0,.35) 32%, rgba(0,0,0,.55) 58%, rgba(0,0,0,.94) 100%),
    var(--h2-poster, none) center top / cover, #1c0000;
  -webkit-mask: radial-gradient(circle .45rem at 0 2.6rem, #0000 96%, #000), radial-gradient(circle .45rem at 100% 2.6rem, #0000 96%, #000);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle .45rem at 0 2.6rem, #0000 96%, #000), radial-gradient(circle .45rem at 100% 2.6rem, #0000 96%, #000);
  mask-composite: intersect; transition: transform .2s;
}
.h2-ticket:hover { transform: translateY(-3px); text-decoration: none; }
.h2-ticket-stub { display: flex; align-items: center; gap: .35rem; height: 2.6rem; padding: 0 .7rem; border-bottom: 2px dashed rgba(255,255,255,.4); }
.h2-ticket-stub b { font: 400 1.6rem/1 var(--font-display, 'Metal Mania', cursive); color: #fff; text-shadow: 0 2px 8px #000; }
.h2-ticket-stub small { font: 600 .68rem/1 var(--font-title, 'Oswald', sans-serif); letter-spacing: .15em; text-transform: uppercase; color: var(--gold-light, #DAA520); text-shadow: 0 1px 6px #000; }
.h2-ticket-body { display: flex; flex-direction: column; padding: .45rem .7rem .6rem; }
.h2-ticket-body strong { font: 600 .92rem/1.2 var(--font-title, 'Oswald', sans-serif); color: #fff; text-shadow: 0 1px 8px #000, 0 0 2px #000; }
.h2-ticket-body small { font: 600 .78rem/1.3 var(--font-body, 'Rajdhani', sans-serif); color: #e6e0d4; text-shadow: 0 1px 6px #000; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.h2-arrow {
  position: absolute; top: 50%; z-index: 3; width: 2rem; height: 2rem; margin-top: -1rem; padding: 0; cursor: pointer; border-radius: 50%;
  background: rgba(0,0,0,.82); color: #fff; border: 1px solid var(--fire, #CC2200); font: 400 1.4rem/1 var(--font-body, sans-serif);
  display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.h2-arrow:hover { background: var(--fire, #CC2200); }
.h2-arrow--prev { left: -.8rem; } .h2-arrow--next { right: -.8rem; }

/* 03 · Disco aniversario */
.h2-vinyl-row { display: flex; align-items: center; gap: .8rem; flex: 1; }
.h2-vinyl {
  flex: none; width: 4.6rem; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #0c0c0c 0 2px, #1c1c1c 3px 4px), #0c0c0c;
  box-shadow: 0 5px 14px rgba(0,0,0,.6), inset 0 0 0 2px #000; animation: h2-spin 9s linear infinite;
}
.h2-vinyl span { width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--fire, #CC2200); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); animation: h2-spin 9s linear infinite reverse; }
.h2-vinyl b { font: 400 1rem/1 var(--font-display, 'Metal Mania', cursive); color: #fff; }
.h2-vinyl small { font: 600 .36rem/1 var(--font-title, 'Oswald', sans-serif); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
@keyframes h2-spin { to { transform: rotate(360deg); } }
.h2-disc { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.h2-disc strong { font: 600 .92rem/1.2 var(--font-title, 'Oswald', sans-serif); color: var(--white, #efefef); }
.h2-disc span { font: 500 .85rem/1.3 var(--font-body, 'Rajdhani', sans-serif); color: var(--grey-b, #bbb); }
.h2-disc em { margin-top: .2rem; font: 600 .66rem/1.3 var(--font-title, 'Oswald', sans-serif); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--fire-light, #FF7070); }
.h2-empty { margin: 0; font: 500 .9rem/1.4 var(--font-body, 'Rajdhani', sans-serif); color: var(--grey-b, #bbb); }
.h2-more { margin-top: auto; padding-top: .6rem; font: 600 .68rem/1.2 var(--font-title, 'Oswald', sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--fire-light, #FF7070); text-decoration: none; }
.h2-more:hover { color: #fff; text-decoration: none; }
.h2-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--fire, #CC2200); flex: none; }

/* 04 · Explora: tira de 4 piezas */
.h2-explora { display: flex; align-items: center; gap: .9rem; margin-top: .9rem; }
.h2-explora-label { flex: none; display: flex; align-items: baseline; gap: .5rem; font: 600 .7rem/1 var(--font-title, 'Oswald', sans-serif); letter-spacing: .22em; text-transform: uppercase; color: var(--grey-c, #ccc); }
.h2-explora-tiles { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.h2-xt {
  position: relative; display: flex; align-items: center; min-height: 4.8rem; padding: .5rem .8rem; overflow: hidden; text-decoration: none; border-radius: 4px; border: 1px solid #4a1a00;
  background: radial-gradient(circle at 85% 20%, rgba(255,69,0,.28), transparent 55%), linear-gradient(100deg, #140000, #2b0800); color: #fff;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.h2-xt:hover { transform: translateY(-2px); border-color: var(--ember, #FF4500); box-shadow: 0 6px 16px rgba(255,69,0,.35); text-decoration: none; }
.h2-xt-text { position: relative; z-index: 2; display: flex; flex-direction: column; min-width: 0; }
.h2-xt-text strong { font: 600 .88rem/1.15 var(--font-title, 'Oswald', sans-serif); letter-spacing: .04em; text-transform: uppercase; text-shadow: 0 1px 6px #000; }
.h2-xt-text small { margin-top: .15rem; font: 500 .78rem/1.2 var(--font-body, 'Rajdhani', sans-serif); color: var(--grey-b, #bbb); text-shadow: 0 1px 6px #000; }
.h2-xt--game { background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.3) 100%), var(--h2-img, none) center / cover, #1a0000; padding-left: 4.2rem; }
.h2-xt-medal { position: absolute; left: .5rem; top: 50%; width: 3.2rem; height: 3.2rem; margin-top: -1.6rem; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.8)); transition: transform .3s; }
.h2-xt--game:hover .h2-xt-medal { transform: scale(1.12) rotate(-6deg); }
/* Abanico de fotos/carteles */
.h2-fan { position: absolute; right: .7rem; top: 50%; z-index: 1; display: flex; align-items: center; transform: translateY(-50%); }
.h2-fan img { width: 2.9rem; height: 3.9rem; object-fit: cover; border: 2px solid #f1e9dc; border-radius: 2px; margin-left: -1.25rem; box-shadow: 0 4px 10px rgba(0,0,0,.7); transition: margin .25s, transform .25s; }
.h2-fan img:nth-child(1) { transform: rotate(-8deg); }
.h2-fan img:nth-child(2) { transform: rotate(0deg); position: relative; z-index: 1; }
.h2-fan img:nth-child(3) { transform: rotate(8deg); }
.h2-xt--fan:hover .h2-fan img { margin-left: -.7rem; }
.h2-xt--fan { padding-right: 6.4rem; }

@media (prefers-reduced-motion: reduce) { .h2-vinyl, .h2-vinyl span { animation: none; } }

/* ───────── Noticias con jerarquía ───────── */
.h2-news { padding: 2rem 0 3rem; }
.h2-news-head { margin: 0 0 1.25rem; padding-bottom: .7rem; border-bottom: 1px solid var(--wine, #3A0000); }
.h2-title { margin: 0; font: 400 1.9rem/1.1 var(--font-display, 'Metal Mania', cursive); letter-spacing: .06em; color: var(--white, #efefef); }

.h2-news-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem; margin-bottom: 1.25rem; }
.h2-news-mids { display: grid; grid-template-rows: 1fr 1fr; gap: 1.25rem; }
.h2-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

.h2-news-card { display: flex; flex-direction: column; background: rgba(10,0,0,.78); border: 1px solid var(--wine, #3A0000); overflow: hidden; transition: border-color .25s, transform .25s; }
.h2-news-card:hover { border-color: var(--fire, #CC2200); transform: translateY(-2px); }
.h2-news-img { display: block; position: relative; aspect-ratio: 16 / 9; background: var(--wine-black, #0A0000); overflow: hidden; }
.h2-news-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: object-position 3s ease; }
.h2-news-card:hover .h2-news-img img { object-position: bottom center; }
@media (prefers-reduced-motion: reduce) { .h2-news-img img { transition: none; } }
.h2-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: var(--blood, #8B0000); background: radial-gradient(circle, #1a0000, #060000); }
.h2-news-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.h2-tag {
  align-self: flex-start; font: 600 .68rem/1 var(--font-title, 'Oswald', sans-serif); letter-spacing: .18em; text-transform: uppercase;
  color: var(--fire-light, #FF7070); text-decoration: none; padding: .3rem .5rem; border: 1px solid var(--blood, #8B0000);
}
.h2-tag:hover { color: #fff; background: var(--blood, #8B0000); text-decoration: none; }
.h2-news-title { margin: 0; font: 600 1.05rem/1.3 var(--font-title, 'Oswald', sans-serif); letter-spacing: .01em; }
.h2-news-title a { color: var(--white, #efefef); text-decoration: none; }
.h2-news-title a:hover { color: var(--fire-light, #FF7070); text-decoration: none; }
.h2-news-sum { margin: 0; font: 500 .98rem/1.45 var(--font-body, 'Rajdhani', sans-serif); color: var(--grey-b, #bbb); }
.h2-meta { margin: auto 0 0; padding-top: .35rem; display: flex; flex-wrap: wrap; gap: .45rem; font: 500 .8rem/1.3 var(--font-body, 'Rajdhani', sans-serif); color: var(--grey-a, #aaa); }

/* Grande: imagen alta, título mayor */
.h2-news-card--big .h2-news-img { aspect-ratio: 16 / 9; }
.h2-news-card--big .h2-news-title { font-size: 1.65rem; line-height: 1.2; }
/* Medianas: imagen a la izquierda */
.h2-news-card--mid { flex-direction: row; }
.h2-news-card--mid .h2-news-img { flex: 0 0 38%; aspect-ratio: auto; min-height: 100%; }
.h2-news-card--mid .h2-news-title { font-size: 1.1rem; }

.h2-hidden { display: none; }
.h2-more-wrap { margin: 1.75rem 0 0; text-align: center; }
.h2-btn {
  padding: .8rem 2rem; cursor: pointer; background: transparent; color: var(--white, #efefef);
  font: 600 .8rem/1 var(--font-title, 'Oswald', sans-serif); letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--fire, #CC2200); transition: background .2s, box-shadow .2s;
}
.h2-btn:hover { background: var(--fire, #CC2200); box-shadow: 0 0 22px rgba(204,34,0,.45); }

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  /* El panel se desliza en horizontal */
  .h2-panel-track {
    grid-template-areas: none;
    display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -1.25rem; padding: 0 1.25rem .6rem; scrollbar-width: none;
  }
  .h2-panel-track::-webkit-scrollbar { display: none; }
  .h2-card { flex: 0 0 min(80vw, 19.5rem); scroll-snap-align: start; min-height: 17rem; }
  .h2-card--agenda { flex-basis: min(90vw, 26rem); }
  .h2-ticket { flex-basis: min(46%, 9rem); }
  .h2-news-top { grid-template-columns: 1fr; }
  .h2-news-mids { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .h2-news-card--mid { flex-direction: column; }
  .h2-news-card--mid .h2-news-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .h2-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .h2-wrap { padding: 0 1rem; }
  .h2-panel-track { margin: 0 -1rem; padding: 0 1rem .6rem; }
  .h2-news-mids, .h2-news-grid { grid-template-columns: 1fr; }
  .h2-news-card--big .h2-news-title { font-size: 1.35rem; }
  .h2-title { font-size: 1.6rem; }
}

/* ───────── Agenda (com_concerts) ───────── */
.h2-seal { display: flex; align-items: center; gap: .55rem; margin: .9rem 0 0; font: 500 .95rem/1.3 var(--font-body, 'Rajdhani', sans-serif); color: var(--grey-b, #bbb); }
.h2-seal b { color: var(--white, #efefef); font-family: var(--font-title, 'Oswald', sans-serif); font-weight: 600; letter-spacing: .04em; }
.h2-seal .h2-dot { background: var(--ok, #4CAF50); box-shadow: 0 0 0 0 rgba(76,175,80,.6); animation: h2-pulse 2.4s infinite; }
@keyframes h2-pulse { 70% { box-shadow: 0 0 0 .5rem rgba(76,175,80,0); } 100% { box-shadow: 0 0 0 0 rgba(76,175,80,0); } }
.h2-chips { display: flex; flex-wrap: wrap; gap: .4rem; flex: 1 1 100%; margin-bottom: .4rem; }
.h2-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; cursor: pointer; background: rgba(10,0,0,.6);
  color: var(--grey-c, #ccc); border: 1px solid var(--wine, #3A0000);
  font: 600 .78rem/1 var(--font-title, 'Oswald', sans-serif); letter-spacing: .08em; text-transform: uppercase; transition: border-color .2s, background .2s;
}
.h2-chip em { font-style: normal; font-weight: 500; color: var(--fire-light, #FF7070); }
.h2-chip:hover { border-color: var(--fire, #CC2200); color: #fff; }
.h2-chip.is-on { background: var(--fire, #CC2200); border-color: var(--fire, #CC2200); color: #fff; }
.h2-chip.is-on em { color: #fff; }
@media (prefers-reduced-motion: reduce) { .h2-seal .h2-dot { animation: none; } }

.h2-poll { padding: 0 0 2rem; }

/* Tarjetas destacadas (mod_hmb_destacados) bajo el panel, en versión compacta */
.h2-dest { padding: .5rem 0 .6rem; }
.h2-dest .dst { padding: 0; gap: .9rem; max-width: none; }
.h2-dest .dst__card { min-height: 0; padding: .65rem 1rem; grid-template-columns: auto 1fr auto; gap: .1rem 1rem; align-items: center; animation: none; }
.h2-dest .dst__medal { width: 58px; height: 58px; }
.h2-dest .dst__tag { font-size: 11px; }
.h2-dest .dst__name { font-size: clamp(22px, 2.6vw, 30px); }
.h2-dest .dst__meta { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.h2-dest .dst__cta { grid-column: 3; grid-row: 1; justify-self: end; min-height: 0; padding: .55rem 1rem; font-size: 13px; white-space: nowrap; }
.h2-dest .dst__card:not(:has(.dst__medal)) .dst__body { grid-column: 1 / 3; }
@media (max-width: 1000px) {
  .h2-explora { flex-direction: column; align-items: stretch; gap: .5rem; }
  .h2-explora-tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem .4rem; }
  .h2-explora-tiles::-webkit-scrollbar { display: none; }
  .h2-xt { flex: 0 0 min(72vw, 15rem); scroll-snap-align: start; }
}
@media (max-width: 600px) {
  .h2-dest .dst__card { grid-template-columns: auto 1fr; }
  .h2-dest .dst__cta { grid-column: 1 / -1; grid-row: auto; justify-self: stretch; text-align: center; }
}
