/* ====================================================
   magazine.css - Estilo editorial clásico
   Con soporte completo para variables del editor y
   estilos para elementos dinámicos, chat, reproductor.
   Mejora: fondo personalizable en overlay offline del reproductor.
   Versión corregida: header compacto, footer con imagen real,
   offline overlay centrado y variables en :root.
   ==================================================== */

:root {
  --mg-bg: var(--bg, #faf7f2);
  --mg-bg-alt: var(--bg2, #f0eae0);
  --mg-text: var(--text, #2e2a24);
  --mg-text-light: color-mix(in srgb, var(--mg-text) 70%, #aaa);
  --mg-accent: var(--accent, #8b5a2b);
  --mg-accent-light: color-mix(in srgb, var(--mg-accent) 80%, white);
  --mg-border: color-mix(in srgb, var(--mg-text) 20%, #d9cdbc);
  --mg-font-serif: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  --mg-font-sans: var(--font-body, 'Lato', Arial, sans-serif);
  --mg-radius: 0px;
  --mg-transition: 0.2s ease;
  --mg-offline-bg-image: none; /* Imagen de fondo para estado offline del reproductor */
  --mg-offline-bg-size: cover; /* Control de tamaño de imagen (cover o contain) */
}

/* Reset y base */
body {
  background: var(--mg-bg);
  color: var(--mg-text);
  font-family: var(--mg-font-sans);
  line-height: 1.7;
  margin: 0;
}

.mg-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--mg-bg-alt);
}
::-webkit-scrollbar-thumb {
  background: var(--mg-accent-light);
  border-radius: 5px;
  border: 2px solid var(--mg-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--mg-accent);
}
/* Firefox */
{
  scrollbar-width: thin;
  scrollbar-color: var(--mg-accent-light) var(--mg-bg);
}

/* Notices */
.mg-notice {
  background: var(--mg-accent);
  color: white;
  padding: 0.5rem 0;
  text-align: center;
  font-size: 0.9rem;
}
.mg-notice .mg-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mg-notice .material-symbols-outlined {
  font-size: 1.2rem;
}
.mg-notice-close {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  margin-left: auto;
}
.mg-notice-close:hover {
  background: rgba(255,255,255,0.3);
}

/* ===== HEADER COMPACTO ===== */
.mg-header {
  background: var(--mg-bg);
  border-bottom: 2px solid var(--mg-accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.mg-header-top {
  background: color-mix(in srgb, var(--mg-accent) 10%, var(--mg-bg-alt));
  padding: 0.25rem 0;
  font-size: 0.75rem;
}
.mg-header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mg-date {
  text-transform: capitalize;
  color: var(--mg-text);
}
.mg-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.mg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.2s;
}
.mg-btn-ghost {
  border: 1px solid var(--mg-border);
  color: var(--mg-text);
  background: transparent;
}
.mg-btn-ghost:hover {
  border-color: var(--mg-accent);
  color: var(--mg-accent);
}
.mg-btn-solid {
  background: var(--mg-accent);
  color: white;
  border: 1px solid var(--mg-accent);
}
.mg-btn-solid:hover {
  background: color-mix(in srgb, var(--mg-accent) 90%, black);
}
.mg-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mg-burger span {
  width: 22px;
  height: 2px;
  background: var(--mg-text);
  transition: 0.2s;
}

/* Título principal (cabecera con nombre y slogan) - más compacto */
.mg-header-title {
  padding: 0.5rem 0;
}
.mg-header-title .mg-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mg-logo {
  max-height: 40px;
  width: auto;
}
.mg-title-group {
  flex: 1;
}
.mg-pub-name {
  font-family: var(--mg-font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--mg-text);
}
.mg-pub-slogan {
  font-size: 0.8rem;
  color: var(--mg-accent);
  margin: 0;
  font-style: italic;
}

/* Navegación principal - más compacta */
.mg-nav {
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
  background: white;
}
.mg-nav-inner {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.4rem 0;
}
.mg-nav-link {
  text-decoration: none;
  color: var(--mg-text);
  font-family: var(--mg-font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.mg-nav-link:hover {
  color: var(--mg-accent);
}

/* Menú móvil */
.mg-mobile-menu {
  display: none;
  background: white;
  border-top: 1px solid var(--mg-border);
  padding: 1rem 0;
}
.mg-mobile-menu.open {
  display: block;
}
.mg-mobile-menu .mg-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mg-mobile-menu a {
  text-decoration: none;
  color: var(--mg-text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--mg-border);
}
.mg-mobile-menu a:last-child {
  border-bottom: none;
}

/* ===== HERO ===== */
.mg-hero {
  padding: 4rem 0;
  background: var(--mg-bg);
}
.mg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.mg-eyebrow {
  font-family: var(--mg-font-serif);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--mg-accent);
  margin-bottom: 1rem;
}
.mg-hero-title {
  font-family: var(--mg-font-serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--mg-text);
}
.mg-hero-sub {
  font-size: 1.1rem;
  color: var(--mg-text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.mg-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mg-accent);
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.mg-hero-btn:hover {
  background: color-mix(in srgb, var(--mg-accent) 90%, black);
}
.mg-hero-image {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--mg-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.mg-hero-placeholder {
  background: var(--mg-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mg-accent);
  font-size: 3rem;
  height: 100%;
}

/* Stats */
.mg-hero-stats {
  background: white;
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
  padding: 2rem 0;
  margin-top: 3rem;
}
.mg-stats-row {
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.mg-stat-item strong {
  display: block;
  font-family: var(--mg-font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mg-accent);
  line-height: 1;
}
.mg-stat-item span {
  font-size: 0.9rem;
  color: var(--mg-text);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== LIVE SECTION ===== */
.mg-live {
  background: white;
  padding: 4rem 0;
}
.mg-section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.mg-section-tag {
  font-family: var(--mg-font-serif);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--mg-accent);
  display: block;
  margin-bottom: 0.5rem;
}
.mg-section-title {
  font-family: var(--mg-font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--mg-text);
  margin-bottom: 0.5rem;
}
.mg-section-sub {
  font-size: 1rem;
  color: var(--mg-text-light);
  max-width: 600px;
  margin: 0 auto;
}
.mg-live-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

/* Reproductor */
.mg-player {
  position: relative;
  overflow: hidden;
  background-color: #000;
  border: 1px solid var(--mg-border);
  aspect-ratio: 16/9;
}
.mg-player video,
.mg-player .video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: none;
}
.mg-player .player-status-bar {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  backdrop-filter: blur(4px);
}
.mg-player .play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  cursor: pointer;
}
.mg-player .play-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.mg-player .play-btn {
  width: 60px;
  height: 60px;
  background: var(--mg-accent);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transition: transform 0.2s, background-color 0.2s;
}
.mg-player .play-btn:hover {
  transform: scale(1.1);
  background-color: var(--mg-accent-light);
}
.mg-player .play-btn .material-symbols-outlined {
  font-size: 36px;
  color: white;
}

/* ===== OFFLINE OVERLAY CORREGIDO (imagen nítida y centrada) ===== */
.mg-player .offline-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3); /* Fondo claro para que la imagen se vea nítida */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 5;
  overflow: hidden;
}

.mg-player .offline-overlay::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--mg-offline-bg-image, none);
  background-size: cover;
  background-position: center;
  opacity: 0.9; /* Alta opacidad para nitidez */
  z-index: 0;
  pointer-events: none;
}

.mg-player .offline-overlay .material-symbols-outlined,
.mg-player .offline-overlay p,
.mg-player .offline-overlay small {
  position: relative;
  z-index: 1;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.mg-player .offline-overlay .material-symbols-outlined {
  font-size: 56px;
  color: var(--mg-accent);
  margin-bottom: 0.25rem;
  opacity: 0.9;
}
.mg-player .offline-overlay p {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 1.4rem;
  color: white;
}
.mg-player .offline-overlay small {
  font-size: 1rem;
  color: white;
  max-width: 250px;
  line-height: 1.5;
  text-align: center;
  opacity: 0.9;
}

/* Chat */
.mg-chat {
  border: 1px solid var(--mg-border);
  background: var(--mg-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 450px;
  overflow: hidden;
}
.mg-chat .chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.mg-chat .chat-header {
  padding: 0.75rem;
  border-bottom: 1px solid var(--mg-border);
  background: var(--mg-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mg-chat .chat-header-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.mg-chat .chat-online-indicator {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
}
.mg-chat .online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  animation: pulse 1.5s infinite;
}
.mg-chat .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mg-chat .chat-msg {
  padding: 0.4rem 0.8rem;
  border-radius: 18px;
  max-width: 85%;
  word-wrap: break-word;
  font-size: 0.85rem;
}
.mg-chat .chat-msg.user {
  background: var(--mg-accent-light);
  color: var(--mg-text);
  align-self: flex-end;
}
.mg-chat .chat-msg.system {
  background: transparent;
  color: var(--mg-text-light);
  font-style: italic;
  text-align: center;
  max-width: 100%;
  font-size: 0.75rem;
}
.mg-chat .chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--mg-border);
}
.mg-chat .chat-input {
  flex: 1;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--mg-border);
  border-radius: 20px;
  font-size: 0.85rem;
  outline: none;
}
.mg-chat .chat-input:focus {
  border-color: var(--mg-accent);
}
.mg-chat .chat-send-btn {
  width: 34px;
  height: 34px;
  background: var(--mg-accent);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
}
.mg-chat .chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== ABOUT ===== */
.mg-about {
  padding: 4rem 0;
  background: var(--mg-bg);
}
.mg-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.mg-about-image {
  aspect-ratio: 4/3;
  background: var(--mg-accent-light);
  border: 1px solid var(--mg-border);
  overflow: hidden;
}
.mg-about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mg-about-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mg-accent);
  font-size: 3rem;
}
.mg-about-title {
  font-family: var(--mg-font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--mg-text);
}
.mg-about-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--mg-text-light);
}

/* ===== ELEMENTOS DINÁMICOS (secciones del editor) ===== */
.dynamic-section {
  background: var(--mg-bg);
  padding: 3rem 0;
}
.dynamic-section .ds-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.dynamic-section .ds-header {
  text-align: center;
  margin-bottom: 2rem;
}
.dynamic-section .ds-eyebrow {
  font-family: var(--mg-font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mg-accent);
  display: block;
  margin-bottom: 0.5rem;
}
.dynamic-section .ds-title {
  font-family: var(--mg-font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--mg-text);
}
.dynamic-section .ds-subtitle {
  font-size: 0.95rem;
  color: var(--mg-text-light);
}

/* Cards */
.ds-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.ds-card {
  background: white;
  border: 1px solid var(--mg-border);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ds-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}
.ds-card-icon {
  font-size: 2.2rem;
  color: var(--mg-accent);
  margin-bottom: 0.75rem;
  display: block;
}
.ds-card-title {
  font-family: var(--mg-font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.ds-card-text {
  color: var(--mg-text-light);
  line-height: 1.6;
  font-size: 0.9rem;
}

/* Banner */
.dynamic-section.type-banner {
  background: var(--mg-accent-light);
  position: relative;
  overflow: hidden;
}
.ds-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}
.ds-banner-content {
  text-align: center;
  position: relative;
  z-index: 1;
}
.ds-banner-btn {
  display: inline-block;
  background: var(--mg-accent);
  color: white;
  padding: 0.6rem 1.8rem;
  margin-top: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  border: none;
  transition: background 0.2s;
}
.ds-banner-btn:hover {
  background: color-mix(in srgb, var(--mg-accent) 90%, black);
}

/* Split */
.type-split .ds-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.type-split.img-left .ds-split-content {
  order: 2;
}
.type-split.img-left .ds-split-image {
  order: 1;
}
.ds-split-btn {
  display: inline-block;
  border: 1px solid var(--mg-accent);
  color: var(--mg-accent);
  padding: 0.5rem 1.5rem;
  margin-top: 1rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  transition: all 0.2s;
}
.ds-split-btn:hover {
  background: var(--mg-accent);
  color: white;
}
.ds-split-image {
  border: 1px solid var(--mg-border);
  background: var(--mg-bg-alt);
  aspect-ratio: 4/3;
  overflow: hidden;
}
.ds-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ds-img-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mg-border);
  font-size: 2rem;
}
.ds-img-placeholder span:last-child {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ===== BANNERS Y SPONSORS (dinámicos) ===== */
.mg-banners {
  background: white;
  padding: 2rem 0;
  border-top: 1px solid var(--mg-border);
  border-bottom: 1px solid var(--mg-border);
}
.mg-banner {
  display: block;
  margin-bottom: 1rem;
  border: 1px solid var(--mg-border);
  transition: border-color 0.2s;
}
.mg-banner:hover {
  border-color: var(--mg-accent);
}
.mg-banner img {
  width: 100%;
  display: block;
}
.mg-sponsors {
  padding: 2rem 0;
  background: var(--mg-bg);
}
.mg-sponsors-label {
  text-align: center;
  font-family: var(--mg-font-serif);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--mg-accent);
  margin-bottom: 1.5rem;
}
.mg-sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.mg-sponsor {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid var(--mg-border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--mg-text);
  transition: border-color 0.2s;
}
.mg-sponsor:hover {
  border-color: var(--mg-accent);
}
.mg-sponsor img {
  max-height: 40px;
  max-width: 120px;
}

/* ===== EVENTOS ===== */
.mg-events {
  padding: 4rem 0;
  background: white;
}
.mg-events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.mg-event-card {
  background: var(--mg-bg);
  border: 1px solid var(--mg-border);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.mg-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}
.mg-event-img {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  margin-bottom: 1rem;
}
.mg-event-date {
  display: flex;
  gap: 0.3rem;
  align-items: baseline;
  margin-bottom: 0.5rem;
  color: var(--mg-accent);
}
.mg-event-day {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.mg-event-month {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.mg-event-title {
  font-family: var(--mg-font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.mg-event-desc {
  font-size: 0.9rem;
  color: var(--mg-text-light);
  margin-bottom: 0.5rem;
}
.mg-event-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--mg-accent);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.mg-event-meta .material-symbols-outlined {
  font-size: 1rem;
}
.mg-event-btn {
  display: inline-block;
  background: var(--mg-accent);
  color: white;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.2s;
}
.mg-event-btn:hover {
  background: color-mix(in srgb, var(--mg-accent) 90%, black);
}

/* ===== CONTACTO ===== */
.mg-contact {
  padding: 4rem 0;
  background: var(--mg-bg);
  border-top: 1px solid var(--mg-border);
}
.mg-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}
.mg-contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.mg-contact-item .material-symbols-outlined {
  font-size: 1.3rem;
  color: var(--mg-accent);
}
.mg-contact-item h4 {
  font-family: var(--mg-font-serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.mg-contact-item p {
  font-size: 0.9rem;
  color: var(--mg-text-light);
}

/* ===== FOOTER (con imagen real) ===== */
.mg-footer {
  background: color-mix(in srgb, var(--mg-text) 100%, #000);
  color: color-mix(in srgb, var(--mg-bg) 100%, #fff);
  padding: 3rem 0 1rem;
}
.mg-footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mg-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mg-footer-logo {
  max-height: 40px;
  width: auto;
  object-fit: contain;
  background: white;
  padding: 0.2rem;
  border-radius: 4px;
}
.mg-footer-name {
  font-family: var(--mg-font-serif);
  font-size: 1.2rem;
  font-weight: 700;
}
.mg-footer-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}
.mg-footer-nav {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-height: 120px;
  gap: 0.5rem 1rem;
}
.mg-footer-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.mg-footer-nav a:hover {
  color: var(--mg-accent-light);
}
.mg-footer-social {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.mg-footer-social a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.mg-footer-social a:hover {
  color: var(--mg-accent-light);
}
.mg-footer-bottom {
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.7;
}
.mg-footer-bottom .mg-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mg-footer-sig {
  font-family: var(--mg-font-serif);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== MODAL ===== */
.mg-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mg-modal-bg.oculto {
  display: none;
}
.mg-modal {
  background: var(--mg-bg);
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  border-top: 4px solid var(--mg-accent);
}
.mg-modal h3 {
  font-family: var(--mg-font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.mg-modal p {
  margin-bottom: 1rem;
}
.mg-modal input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--mg-border);
  margin-bottom: 1rem;
}
.mg-modal button {
  width: 100%;
  padding: 0.7rem;
  background: var(--mg-accent);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.mg-modal button:hover {
  background: color-mix(in srgb, var(--mg-accent) 90%, black);
}

/* ===== ANIMACIONES ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== RESPONSIVE (mejorado) ===== */
@media (max-width: 1024px) {
  .mg-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .mg-footer-social {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .mg-nav-inner {
    display: none;
  }
  .mg-burger {
    display: flex;
  }
  .mg-hero-grid,
  .mg-about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .mg-live-grid {
    grid-template-columns: 1fr;
  }
  .mg-contact-grid {
    grid-template-columns: 1fr;
  }
  .mg-events-grid {
    grid-template-columns: 1fr;
  }
  .type-split .ds-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mg-wrap {
    padding: 0 1rem;
  }
  .mg-header-top-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }
  .mg-header-title .mg-wrap {
    flex-direction: column;
    text-align: center;
  }
  .mg-pub-name {
    font-size: 1.5rem;
  }
  .mg-pub-slogan {
    font-size: 0.7rem;
  }
  .mg-hero-title {
    font-size: 2rem;
  }
  .mg-hero-sub {
    font-size: 0.9rem;
  }
  .mg-stats-row {
    flex-direction: column;
    gap: 1rem;
  }
  .mg-footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mg-footer-nav {
    max-height: none;
    align-items: center;
  }
  .mg-footer-bottom .mg-wrap {
    flex-direction: column;
    gap: 0.5rem;
  }
  .ds-cards-grid {
    grid-template-columns: 1fr;
  }
}