/* style.css - plantilla + calendario */
* { box-sizing: border-box; margin:0; padding:0; }
html,body { height:100%; }
body {
  font-family: 'Nunito', Arial, sans-serif;
  background:#f2f4f6; color:#222;
}

/* Container */
.container { max-width:1120px; margin:0 auto; padding:0 18px; }

/* Header */
.site-header { background: #1f262b; color:#fff; }
.header-inner { display:flex; align-items:center; justify-content:space-between; padding:18px 0; }
.brand h1 { font-size:20px; margin:0; color:#fff; text-decoration:none; }
.main-nav { display:flex; gap:18px; align-items:center; }
.main-nav a { color:#cfd8dc; text-decoration:none; font-weight:600; font-size:14px; padding:8px 0; }

/* EN ESTA PARTE SE AGREGA LA CLASE ACTIVE */
.main-nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #c0392b;
}

.main-nav a:hover { color:#fff; }
.header-actions { display:flex; gap:10px; align-items:center; }
.search { display:flex; align-items:center; background:#fff; border-radius:3px; overflow:hidden; }
.search input { border:0; padding:8px 10px; outline:none; width:160px; font-size:14px; }
.search button { border:0; background:#c0392b; color:#fff; padding:8px 10px; cursor:pointer; }
.menu-toggle { display:none; background:transparent; color:#fff; border:0; font-size:18px; cursor:pointer; }

/* Layout */
.layout { display:flex; gap:24px; align-items:flex-start; margin:22px 0; }
.main-col { flex: 1.4; }
.sidebar-col { flex: 0 0 320px; }

/* Hero/video */
.hero .video-wrap { background:#000; border-radius:6px; overflow:hidden; margin-bottom:18px; box-shadow:0 6px 18px rgba(0,0,0,0.08); }

/* Cards grid */
.cards-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; margin-bottom:22px; }
.card { background:#fff; border-radius:8px; overflow:hidden; box-shadow: 0 6px 16px rgba(16,24,40,0.06); display:flex; flex-direction:column; }
.card-media { height:150px; background-size:cover; background-position:center; }
.card-body { padding:12px 14px; flex:1; display:flex; flex-direction:column; }
.card-title { font-size:16px; margin-bottom:8px; color:#222; }
.card-excerpt { font-size:13px; color:#6b7280; margin-bottom:10px; flex:1; }
.btn-read { display:inline-block; text-decoration:none; padding:8px 12px; background:#c0392b; color:#fff; border-radius:4px; font-size:13px; }

/* Voices */
.voices { margin:18px 0 40px; }
.voices h2 { margin-bottom:12px; font-size:18px; color:#333; }
.voices-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; }
.voice { background:#fff; text-align:center; padding:14px; border-radius:8px; box-shadow:0 6px 12px rgba(0,0,0,0.04); }
.avatar { width:86px; height:86px; border-radius:50%; margin:6px auto 8px; background-size:cover; background-position:center; border:6px solid #fff; box-shadow:0 2px 8px rgba(0,0,0,0.08); }
.voice h4 { font-size:14px; margin:6px 0 2px; }
.role { font-size:13px; color:#6b7280; }

/* Sidebar cards */
.sidebar-card { background:#2b3136; color:#dfe6ea; padding:12px; border-radius:8px; margin-bottom:16px; }
.sidebar-card h3 { margin-bottom:12px; font-size:16px; color:#fff; }

/* Tags (FEZ/AAH, ONBH, etc.) */
.sidebar-card .tag {
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(15,23,42,0.4);
  color:#e7edf0;
  border-radius:999px;
  padding:4px 10px;
  font-size:12px;
  margin-right:4px;
  margin-bottom:4px;
  cursor:pointer;
}

/* --- Calendario estilo --- */
.calendar-widget { color: #fff; }
.cal-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.cal-month { font-weight:700; text-transform:capitalize; }
.cal-nav { background: transparent; color:#fff; border:1px solid rgba(255,255,255,0.06); padding:4px 8px; border-radius:4px; cursor:pointer; }

/* NUEVO GRID DEL CALENDARIO (sin tabla) */
.mini-calendar-grid {
  background:#fff;
  color:#111827;
  border-radius:6px;
  padding:8px;
  display:grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap:4px;
  font-size:13px;
}

/* Nombres de días L M X J V S D */
.cal-day-name {
  text-align:center;
  font-size:11px;
  text-transform:uppercase;
  color:#6b7280;
  padding:4px 0;
  font-weight:600;
}

/* Cada celda del calendario */
.cal-day {
  position:relative;
  height:40px;
  border-radius:6px;
  border:0;
  background:#ffffff;
  cursor:pointer;
  padding:0;
  text-align:left;
}

.cal-day:hover {
  background:#f1f5f9;
}

/* Número del día */
.cal-day-number {
  position:absolute;
  top:4px;
  left:4px;
  font-size:13px;
}

/* Puntito rojo de evento */
.cal-day .dot {
  position:absolute;
  bottom:4px;
  left:50%;
  transform:translateX(-50%);
  width:8px;
  height:8px;
  border-radius:50%;
  background:#e74c3c;
  box-shadow:0 1px 2px rgba(0,0,0,0.15);
}

/* Día con evento (puedes resaltar más) */
.cal-day.has-event {
  font-weight:600;
}

/* Día de hoy */
.cal-day.today {
  box-shadow: inset 0 0 0 2px rgba(192,57,43,0.18);
  border-radius:6px;
}

/* Popup de eventos - versión bonita centrada */
.events-popup {
  position: fixed;
  inset: 0; /* top/right/bottom/left: 0 */
  background: rgba(15, 23, 42, 0.65); /* overlay oscuro */
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

/* Cuando el JS agrega .open, se muestra como modal centrado */
.events-popup.open {
  display: flex;
  animation: popupFadeIn 0.18s ease-out;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

.events-popup-inner {
  width: 100%;
  max-width: 380px;
  max-height: 70vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
  padding: 16px 18px 14px;
  position: relative;
}

/* Título del popup */
#events-popup-title {
  margin: 0;
  padding-right: 28px; /* espacio para la X */
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Iconito antes del texto */
#events-popup-title::before {
  content: "📅";
  font-size: 18px;
}

/* Botón cerrar (X) */
.events-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 0;
  background: #f3f4f6;
  color: #111827;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, transform 0.1s;
}

.events-close:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Lista de eventos dentro del popup */
.events-list {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}

.events-list li {
  padding: 8px 4px;
  border-bottom: 1px solid #e5e7eb;
}

.events-list li:last-child {
  border-bottom: 0;
}

.events-list a {
  display: block;
  text-decoration: none;
  font-size: 14px;
  color: #111827;
  font-weight: 600;
  line-height: 1.4;
}

.events-list a:hover {
  color: #c0392b;
}

/* Texto secundario (si algún día usas .evt-date) */
.events-list .evt-date {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* legend dot */
.cal-legend { color:#fff; font-size:13px; margin-top:6px; display:flex; align-items:center; gap:8px; }
.cal-legend .dot {
  width:10px;
  height:10px;
  border-radius:50%;
  background:#e74c3c;
  display:inline-block;
}

/* Quick news & form */
.quick-news { list-style:none; padding-left:0; }
.quick-news li { margin-bottom:8px; }
.quick-news a { color:#e7edf0; text-decoration:none; font-size:14px; }

#report-band-form input,
#report-band-form textarea {
  width:100%;
  padding:8px 10px;
  margin-bottom:8px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.03);
  color:#fff;
}
.btn-submit {
  background:#e74c3c;
  border:0;
  color:#fff;
  padding:8px 10px;
  border-radius:4px;
  cursor:pointer;
}

/* ===== Alertas profesionales (mensajes de éxito/error) ===== */
.alert {
  display:none;
  margin-top:10px;
  padding:12px 14px;
  border-radius:8px;
  font-size:14px;
  line-height:1.5;
  font-weight:600;
}

.alert-success {
  background:#ecfdf5;
  border-left:4px solid #16a34a;
  color:#14532d;
}

.alert-error {
  background:#fef2f2;
  border-left:4px solid #dc2626;
  color:#7f1d1d;
}

/* Tarjetas de eventos tipo "cartilla" */
.event-card {
  text-align:center;
  border-top:3px solid #c0392b;
  border-radius:12px;
  box-shadow:0 6px 16px rgba(16,24,40,0.06);
  padding:10px 8px;
}
.event-card-title {
  color:#c0392b;
  font-weight:700;
}
.event-card-meta {
  font-size:13px;
  color:#4b5563;
  margin:6px 0 10px;
}

/* Detalle de evento */
.event-detail-card {
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 20px rgba(15,23,42,0.08);
  overflow:hidden;
  margin-bottom:24px;
}
.event-detail-image-wrap {
  max-height:320px;
  overflow:hidden;
}
.event-detail-image {
  width:100%;
  display:block;
  object-fit:cover;
}
.event-detail-body {
  padding:18px 20px;
}
.event-detail-title {
  font-size:22px;
  color:#c0392b;
  margin-bottom:6px;
}
.event-detail-divider {
  border:0;
  border-bottom:1px solid #e5e7eb;
  margin:8px 0 10px;
}
.event-detail-meta {
  font-size:14px;
  color:#4b5563;
  margin-bottom:10px;
}
.event-detail-desc {
  font-size:15px;
  margin-bottom:8px;
}
.event-detail-content {
  font-size:15px;
  line-height:1.6;
  margin-bottom:12px;
}
.event-detail-map {
  margin-top:12px;
}
.event-detail-map iframe {
  width:100%;
  border:0;
  border-radius:8px;
  min-height:260px;
}
.event-detail-source {
  margin-top:14px;
}
.event-detail-source-btn {
  display:inline-block;
  padding:10px 16px;
  border-radius:999px;
  background:#c0392b;
  color:#fff;
  font-size:14px;
  text-decoration:none;
}
.event-detail-source-btn:hover {
  opacity:0.9;
}

/* Perfiles de creadores */
.creator-profile {
  max-width: 720px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.creator-image {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}
.creator-specialty {
  color: #c0392b;
  font-weight: 600;
}
.creator-content {
  margin: 20px 0;
  line-height: 1.7;
}
.social-links a {
  margin-right: 12px;
  background: #c0392b;
  padding: 8px 14px;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
}

/* Footer */
.site-footer {
  background:#111418;
  color:#cfd8dc;
  padding:26px 0;
  margin-top:30px;
  width:100%;
}
.footer-grid {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
.footer-left p {
  margin:0;
  margin-bottom:4px;
  font-size:14px;
}
.footer-left .small {
  font-size:12px;
  opacity:0.7;
}
.socials a {
  color:#cfd8dc;
  margin-left:12px;
  text-decoration:none;
  font-size:20px;
  transition:0.25s;
}
.socials a:hover {
  color:#ffffff;
}

/* Responsive */
@media (max-width: 992px) {
  .cards-grid { grid-template-columns: repeat(2,1fr); }
  .voices-grid { grid-template-columns: repeat(2,1fr); }
  .sidebar-col { flex: 0 0 300px; }
  .menu-toggle { display:inline-block; }
  .main-nav {
    display:none;
    position:absolute;
    top:70px;
    left:0;
    right:0;
    background:#1f262b;
    padding:10px;
    flex-direction:column;
    gap:8px;

    /* 🔥 FIX ÚNICO PARA QUE EL MENÚ NO QUEDE ATRÁS DE LA IMAGEN */
    z-index: 9999;
  }
  .main-nav.show { display:flex; }
}

@media (max-width: 640px) {
  .layout { flex-direction:column; }
  .cards-grid { grid-template-columns: 1fr; }
  .voices-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-col { order: 2; width:100%; }
}

/* ============================
   FICHA DE BANDA (ESTILO ARTISTA)
   ============================ */

.band-hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.25);
  background:#000;
}

.band-hero-cover {
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  filter:blur(10px) brightness(0.6);
  transform:scale(1.1);
}

.band-hero-overlay {
  position:absolute;
  inset:0;
  background: radial-gradient(circle at top left, rgba(239,68,68,0.65), transparent 50%),
              radial-gradient(circle at bottom right, rgba(59,130,246,0.55), transparent 55%);
  mix-blend-mode: screen;
  opacity:0.9;
}

.band-hero-inner {
  position:relative;
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 18px 18px 18px;
  color:#fff;
}

.band-hero-avatar {
  flex-shrink:0;
  width:90px;
  height:90px;
  border-radius:999px;
  background-size:cover;
  background-position:center;
  border:3px solid rgba(255,255,255,0.9);
  box-shadow:0 4px 16px rgba(0,0,0,0.4);
}

.band-hero-text {
  flex:1;
}

.band-hero-kicker {
  font-size:11px;
  letter-spacing:.2em;
  text-transform:uppercase;
  opacity:.85;
  margin-bottom:2px;
}

.band-hero-title {
  font-size:22px;
  margin:0 0 4px;
}

.band-hero-meta {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  font-size:12px;
}

.band-hero-meta span {
  padding:3px 8px;
  border-radius:999px;
  background:rgba(15,23,42,0.55);
  backdrop-filter:blur(6px);
}

.band-hero-social {
  display:flex;
  flex-direction:column;
  gap:6px;
}

.band-hero-social a {
  width:30px;
  height:30px;
  border-radius:999px;
  background:rgba(15,23,42,0.8);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#e5e7eb;
  text-decoration:none;
  font-size:15px;
  transition:.18s;
}

.band-hero-social a:hover {
  background:#fff;
  color:#111827;
}

/* Métricas */

.band-metrics {
  margin-bottom:18px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.band-metric {
  background:#fff;
  border-radius:10px;
  padding:10px 12px;
  box-shadow:0 4px 14px rgba(0,0,0,0.06);
}

.band-metric .label {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#6b7280;
}

.band-metric .value {
  display:block;
  margin-top:4px;
  font-size:17px;
  font-weight:700;
  color:#111827;
}

/* Layout principal */

.band-layout {
  display:grid;
  grid-template-columns: minmax(0,2fr) minmax(260px,1fr);
  gap:18px;
}

.band-section {
  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:14px;
  box-shadow:0 4px 14px rgba(0,0,0,0.05);
}

.band-section h2,
.band-section h3 {
  font-size:16px;
  margin:0 0 8px;
  color:#111827;
}

.band-info-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 16px;
  margin-bottom:8px;
}

.band-info-grid .label {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#6b7280;
  display:block;
  margin-bottom:2px;
}

.band-info-grid p {
  margin:0;
  font-size:14px;
  color:#111827;
}

.band-bio {
  font-size:14px;
  line-height:1.6;
  color:#4b5563;
}

.band-bio-empty {
  font-size:13px;
  color:#9ca3af;
}

/* Lateral */

.band-side .band-section {
  margin-bottom:12px;
}

.band-video-wrapper {
  position:relative;
  padding-top:56%;
  border-radius:10px;
  overflow:hidden;
  background:#000;
}

.band-video-wrapper iframe {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

.band-social-list {
  list-style:none;
  padding-left:0;
  margin:0;
}

.band-social-list li {
  margin-bottom:6px;
}

.band-social-list a {
  font-size:14px;
  color:#111827;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:6px;
}

.band-social-list i {
  width:16px;
}

/* Botón volver */

.btn-back-band {
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:#111827;
  color:#fff;
  text-decoration:none;
  font-size:13px;
  transition:.18s;
}

.btn-back-band:hover {
  background:#c0392b;
}

/* Responsive band page */

@media (max-width: 900px) {
  .band-layout {
    grid-template-columns:minmax(0,1fr);
  }
}

@media (max-width: 640px) {
  .band-hero-inner {
    flex-direction:row;
    align-items:flex-start;
  }
  .band-hero-avatar {
    width:70px;
    height:70px;
  }
  .band-hero-title {
    font-size:19px;
  }
  .band-metrics {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* ===== Mapa de bandas ===== */
.bands-map {
  width: 100%;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15,23,42,0.12);
  margin: 10px 0 4px;
}

@media (max-width: 640px) {
  .bands-map {
    height: 360px;
  }
}
.bands-map {
  width: 100%;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}
#bands-map {
  width: 100%;
  height: 500px;
}
/* Ajustes específicos del calendario en versión móvil */
@media (max-width: 640px) {
  /* La tarjeta del calendario sigue siendo oscura como en PC */
  #sidebar-calendar-card {
    background: #2b3136;
    color: #dfe6ea;
  }

  #sidebar-calendar-card h3 {
    color: #ffffff;
  }

  /* Encabezado del calendario (mes y flechas) igual que en PC */
  #sidebar-calendar-card .calendar-widget {
    color: #ffffff;
  }

  #sidebar-calendar-card .cal-month {
    color: #ffffff;
  }

  #sidebar-calendar-card .cal-nav {
    color: #ffffff;
    border-color: rgba(255,255,255,0.06);
  }
  /* ==== FIX: Números del calendario siempre en negro ==== */
.cal-day,
.cal-day-number {
  color: #111827 !important; /* negro gris oscuro */
}

/* Si el navegador aplica color a texto interactivo */
.cal-day * {
  color: #111827 !important;
}