:root{
  --bg: #f3f4f6;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #c40000;
  --radius: 12px;
  --shadow: 0 8px 18px rgba(17,24,39,.08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap{
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 16px;
}

.skip{
  position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip:focus{
  left:16px; top:12px; width:auto; height:auto;
  padding:10px 12px;
  background:#000; color:#fff; border-radius:10px; z-index:999;
}

.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); border:0;
}

/* Header */
.topbar{
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height: 58px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
  letter-spacing:.2px;
}
.brand__dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(196,0,0,.12);
}
.brand__name{ color: #111827; }

.nav{
  display:flex; gap:14px; flex-wrap:wrap;
}
.nav__link{
  color: var(--muted);
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav__link:hover{
  color: var(--text);
  background: #f9fafb;
}

/* Hero banner */
.hero{ padding: 18px 0 10px; }
.hero__banner{
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero__banner img{
  width: 100%;
  height: auto;
  display: block;
}

/* Secciones */
.section{ padding: 14px 0 26px; }

.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin: 16px 0 10px;
}

.section__title{
  margin:0;
  font-size: 18px;
  font-weight: 800;
  position: relative;
  padding-bottom: 8px;
}
.section__title::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width: 54px; height: 3px;
  background: var(--accent);
  border-radius: 3px;
}

.section__desc{
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 90ch;
}

.note{
  color: var(--muted);
  margin: 12px 0 0;
}

/* Parrilla (imagen) */
.media__frame{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.media__frame img{
  width: 100%;
  height: auto;
  display: block;
}

/* Grid + cards */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  grid-column: span 3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 2px 10px rgba(17,24,39,.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(17,24,39,.12);
}
.card[role="button"]{ cursor:pointer; }

.card__media{
  aspect-ratio: 16/10;
  background: #f3f4f6;
}
.card__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.card__body{ padding: 12px 12px 14px; }

.card__name{
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
}

.card__role{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}
.card__role + .card__role{ margin-top: 6px; }

/* Badge */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f9fafb;
  color: var(--muted);
  font-size: 12px;
}

/* Competencia (color distinto) */
.card--comp{
  background: #0b2a5b;
  border-color: rgba(255,255,255,.18);
}
.card--comp .card__name{ color: #ffffff; }
.card--comp .card__role{ color: rgba(255,255,255,.82); }
.card--comp .badge{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
}

/* === Destacar semifinalistas === */
.card--comp.is-semifinalista{
  position: relative;
  border: 2px solid #ffd54a;
  box-shadow:
    0 0 0 4px rgba(255, 213, 74, .18),
    0 12px 28px rgba(0,0,0,.25);
  transform: translateY(-2px);
}

/* Badge semifinalista (arriba a la derecha) */
.card--comp .badge--semi{
  position: absolute;
  top: 10px;
  right: 10px;
  margin-top: 0; /* anula margin-top de .badge */
  background: #ffd54a;
  border-color: #ffd54a;
  color: #111827;
  font-weight: 900;
}


/* Noticias (lista estilo Epicentro Radio) */
.newsbox{
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.newslist{
  list-style: none;
  margin: 0;
  padding: 0;
}

.newsitem{
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.newsitem:first-child{ border-top: 0; }

.newsitem__title{
  flex: 1;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
}
.newsitem__title:hover{ text-decoration: underline; }

.newsitem__date{
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

/* ✅ Opción ultra-rápida: ocultar fechas sin tocar JS */
.newsitem__date{
  display: none !important;
}

.newsbox__more{
  display: block;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  background: #fafafa;
}
.newsbox__more:hover{ text-decoration: underline; }

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 0;
  color: var(--muted);
}
.footer__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* Modal (Jurado) */
.modal{ position: fixed; inset: 0; z-index: 80; }
.modal[hidden]{ display:none !important; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(17,24,39,.55);
}
.modal__panel{
  position: relative;
  width: min(900px, calc(100% - 24px));
  margin: 60px auto;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  overflow:hidden;
}
.modal__close{
  position:absolute;
  top:10px; right:10px;
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 22px;
  cursor:pointer;
}
.modal__content{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  padding: 14px;
}
.modal__img{
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f3f4f6;
}
.modal__title{
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 900;
}
.modal__role{ margin: 0 0 10px; color: var(--muted); }
.modal__bio{ margin: 0 0 12px; color: var(--text); }
.modal__links a{ color: var(--accent); text-decoration:none; }
.modal__links a:hover{ text-decoration: underline; }

/* Responsive */
@media (max-width: 1020px){
  .card{ grid-column: span 4; }
}
@media (max-width: 760px){
  .card{ grid-column: span 6; }
  .modal__content{ grid-template-columns: 1fr; }
  .modal__img{ max-height: 240px; }
}
@media (max-width: 480px){
  .card{ grid-column: span 12; }
  .newsitem{
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .newsitem__date{ order: -1; }
}

