/* ==========================================================================
   SANTALECINA - HOJA DE ESTILOS PRINCIPAL
   Diseño moderno, accesible y completamente responsivo
   ========================================================================== */

/* Variables Globales y Paleta de Colores */
:root {
  --primary: #1e3a8a;          /* Azul noble municipal */
  --primary-dark: #0f172a;     /* Azul pizarra oscuro */
  --primary-light: #3b82f6;    /* Azul claro interactivo */
  --accent: #d97706;           /* Dorado / Ocre trigo */
  --accent-light: #fef3c7;     /* Fondo dorado suave */
  --secondary: #059669;        /* Verde huerta del Cinca */
  --granpico: #1e3a8a;         /* Color azul corporativo de Gran Pico */
  --granpico-accent: #eab308;  /* Color amarillo/dorado de Gran Pico */
  
  --text-main: #334155;        /* Texto principal legible */
  --text-muted: #64748b;       /* Texto secundario */
  --bg-main: #f8fafc;          /* Fondo suave */
  --bg-card: #ffffff;          /* Fondo tarjetas */
  --border-color: #e2e8f0;     /* Bordes sutiles */
  
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   BARRA SUPERIOR DE PATROCINIO (GRAN PICO A TODO COLOR Y AVISO LIMPIO)
   ========================================================================== */
.top-sponsor-bar {
  background-color: #0f172a;
  color: #e2e8f0;
  font-size: 0.825rem;
  padding: 0.45rem 0;
  border-bottom: 2px solid var(--accent);
}

.top-sponsor-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.sponsor-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sponsor-tag {
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sponsor-brand-link {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.sponsor-brand-link:hover {
  transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.sponsor-top-logo {
  height: 22px;
  width: auto;
  display: block;
}

.top-quick-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.top-quick-info i {
  color: #94a3b8;
}

/* ==========================================================================
   CABECERA PRINCIPAL Y LOGOTIPO DE SANTALECINA (LIMPIO Y SIN SUPERPOSICIONES)
   ========================================================================== */
.main-header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

/* Logotipo gráfico de Santalecina con presencia óptima */
.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
  display: block;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

/* Navegación Desktop */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.5rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.nav-link:hover {
  background-color: #f1f5f9;
  color: var(--primary);
}

.nav-link.active {
  background-color: #eff6ff;
  color: var(--primary);
  font-weight: 700;
}

.nav-btn-highlight {
  background-color: var(--primary);
  color: #ffffff !important;
  box-shadow: var(--shadow-sm);
}

.nav-btn-highlight:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO / PORTADA DE INICIO (PORTADA LIMPIA SIN LOGO CENTRAL SUPERPUESTO)
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.82)),
              url('../assets/img/galeria/arco-de-castelflorite-baja.webp') center/cover no-repeat;
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.05;
  margin-bottom: 0.4rem;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.hero-subtitle-location {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fef08a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Botones Comunes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background-color: #b45309;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: #ffffff;
}

.btn-outline-light:hover {
  background: #ffffff;
  color: var(--primary-dark);
}

/* ==========================================================================
   WIDGET DEL TIEMPO EN VIVO (OPEN-METEO)
   ========================================================================== */
.weather-banner {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  margin-top: -2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.weather-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.35), 0 8px 10px -6px rgba(2, 132, 199, 0.25);
}

.weather-more-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}

.weather-more-btn:hover {
  background: #ffffff;
  color: var(--primary) !important;
}

.weather-banner-footer {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.weather-banner-footer a {
  color: #e0f2fe;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}

.weather-banner-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   PÁGINA DETALLADA DEL TIEMPO (TIEMPO.HTML)
   ========================================================================== */
.weather-page-hero {
  background: linear-gradient(135deg, #0369a1 0%, #0c4a6e 100%);
  color: #ffffff;
  padding: 3.5rem 0 3rem;
}

.weather-current-box {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 20;
}

.weather-current-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.weather-current-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.weather-current-temp {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-dark);
}

.weather-current-state {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.weather-current-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.weather-stat-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.weather-stat-chip .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.weather-stat-chip .stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* 7-DAY FORECAST GRID */
.forecast-7d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.forecast-7d-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.forecast-7d-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.forecast-7d-card.today {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.forecast-7d-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.forecast-7d-day {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.forecast-7d-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.forecast-7d-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0;
}

.forecast-7d-icon {
  font-size: 2.4rem;
  color: #eab308;
  width: 48px;
  text-align: center;
}

.forecast-7d-desc {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

.forecast-7d-temps {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.forecast-7d-max { color: #dc2626; }
.forecast-7d-min { color: #2563eb; }

.forecast-7d-bar {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #3b82f6 0%, #f59e0b 50%, #ef4444 100%);
  margin: 0.75rem 0;
  opacity: 0.85;
}

.forecast-7d-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
}

.forecast-metric-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #475569;
}

.forecast-metric-item strong {
  color: var(--text-dark);
}

.forecast-prob-rain {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.forecast-prob-rain.high {
  background: #dbeafe;
  color: #1e40af;
  font-weight: 800;
}

/* 24-HOUR HOURLY SCROLL STRIP */
.hourly-scroll-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 1rem 0.25rem;
  scrollbar-width: thin;
}

.hourly-card {
  min-width: 90px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.hourly-card.now {
  border-color: var(--primary);
  background: #f0f9ff;
}

.hourly-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hourly-icon {
  font-size: 1.4rem;
  color: #f59e0b;
  margin: 0.35rem 0;
}

.hourly-temp {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
}

.hourly-rain {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0284c7;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.5rem;
}

.weather-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.weather-updated {
  font-size: 0.75rem;
  color: #bae6fd;
}

.weather-main-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 1.5rem;
  align-items: center;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 1.25rem;
}

.weather-icon-large {
  font-size: 3rem;
  color: #fde047;
}

.weather-temp-num {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}

.weather-desc-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e0f2fe;
}

.weather-details-row {
  display: flex;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: #bae6fd;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.weather-forecast-days {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  text-align: center;
}

.forecast-card {
  background: rgba(255, 255, 255, 0.12);
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-day {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.forecast-icon {
  font-size: 1.25rem;
  margin: 0.25rem 0;
  color: #fde047;
}

.forecast-temps {
  font-size: 0.78rem;
  font-weight: 700;
}

/* ==========================================================================
   SECCIONES Y TARJETAS COMUNES
   ========================================================================== */
.section {
  padding: 3.5rem 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.85rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title i {
  color: var(--primary);
}

.section-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.section-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   NOTICIAS / HEMEROTECA
   ========================================================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.news-card-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card:hover .news-card-img {
  transform: scale(1.04);
}

.news-card-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.badge-deportes, .badge-deporte { background-color: #059669; }
.badge-sociedad { background-color: #0284c7; }
.badge-cultura { background-color: #9333ea; }
.badge-historia { background-color: #b45309; }
.badge-hemeroteca { background-color: #475569; }
.badge-fiestas { background-color: #e11d48; }
.badge-general { background-color: #2563eb; }

.news-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.news-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.news-card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-read-more:hover {
  color: var(--accent);
}

/* ==========================================================================
   AGENDA / CURSOS / ACTIVIDADES
   ========================================================================== */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.agenda-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  transition: var(--transition);
}

.agenda-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.agenda-date-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.agenda-day {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.agenda-month {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.agenda-year {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.agenda-details h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.agenda-meta-row {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.agenda-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.agenda-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

.agenda-action {
  text-align: right;
}

.badge-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.badge-success {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-info {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-warning {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-muted, .badge-secondary, .badge-finished {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Grupos y Bloques de Sección de Agenda */
.agenda-groups-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.agenda-section-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agenda-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.agenda-group-heading.group-heading-proximamente {
  border-left-color: #0284c7;
  background: linear-gradient(90deg, #f0f9ff 0%, #ffffff 100%);
}

.agenda-group-heading.group-heading-plazo {
  border-left-color: #16a34a;
  background: linear-gradient(90deg, #f0fdf4 0%, #ffffff 100%);
}

.agenda-group-heading.group-heading-finalizados {
  border-left-color: #94a3b8;
  background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
}

.agenda-group-heading-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.agenda-group-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.badge-pill-proximamente {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.badge-pill-plazo {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-pill-finalizado {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Tarjeta de evento finalizado */
.agenda-card.agenda-card-finished {
  background: #fcfdfe;
  border-color: #e2e8f0;
  opacity: 0.85;
}

.agenda-card.agenda-card-finished:hover {
  opacity: 1;
  border-color: #cbd5e1;
  background: #ffffff;
}

.agenda-card.agenda-card-finished .agenda-date-box,
.agenda-card.agenda-card-finished .agenda-date-badge {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.agenda-card.agenda-card-finished .agenda-day {
  color: #64748b;
}

.agenda-card.agenda-card-finished .agenda-month {
  color: #94a3b8;
}

/* ==========================================================================
   CALENDARIO MENSUAL MULTI-MES INTERACTIVO (AGENDA)
   ========================================================================== */
.agenda-calendar-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.agenda-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.calendar-month-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.calendar-month-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calendar-nav-btn {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--primary-dark);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.calendar-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Tira de acceso rapido a meses */
.calendar-quick-months {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  scrollbar-width: thin;
}

.quick-month-pill {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quick-month-pill:hover {
  background: #e2e8f0;
  color: var(--primary-dark);
}

.quick-month-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.quick-month-count {
  background: rgba(0, 0, 0, 0.12);
  color: inherit;
  font-size: 0.72rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 800;
}

.quick-month-pill.active .quick-month-count {
  background: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* Grid del calendario */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-weekday-header {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: #64748b;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f8fafc;
  border-radius: var(--radius-sm);
}

.calendar-weekday-header.weekend {
  color: #dc2626;
  background: #fef2f2;
}

.calendar-day-cell {
  min-height: 60px;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.35rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: var(--transition);
  cursor: default;
}

.calendar-day-cell.empty {
  background: #f8fafc;
  border-color: transparent;
  opacity: 0.35;
  cursor: default;
}

.calendar-day-cell.today {
  border: 2px solid var(--primary);
  background: #eff6ff;
  font-weight: 800;
}

.calendar-day-cell.has-event {
  cursor: pointer;
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.calendar-day-cell.has-event:hover {
  transform: translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-sm);
}

.calendar-day-cell.has-event.selected {
  border: 2px solid #0284c7;
  background: #e0f2fe;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.25);
}

.calendar-day-cell.has-event-proximamente {
  border-top: 3px solid #0284c7;
}

.calendar-day-cell.has-event-plazo {
  border-top: 3px solid #16a34a;
}

.calendar-day-cell.has-event-finalizado {
  border-top: 3px solid #94a3b8;
  background: #fafafa;
}

.calendar-day-num {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  line-height: 1;
}

.calendar-day-cell.today .calendar-day-num {
  color: var(--primary);
  font-weight: 800;
}

.calendar-day-dots {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.calendar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-proximamente { background-color: #0284c7; }
.dot-plazo { background-color: #16a34a; }
.dot-finalizado { background-color: #94a3b8; }

/* Días de fiestas destacadas (Virgen del Rosario: 2, 3 y 4 de Octubre) */
.calendar-day-cell.fiesta-rosario-day {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #7dd3fc;
  border-top: 3px solid #0284c7;
}

.calendar-day-cell.fiesta-rosario-day:hover {
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 100%);
  border-color: #0284c7;
}

.calendar-day-event-tag.tag-fiestas-rosario {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 3px;
  padding: 1px 3px;
  margin-top: 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.calendar-festivity-callout {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #7dd3fc;
  border-left: 4px solid #0284c7;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
  transition: var(--transition);
}

.calendar-festivity-callout:hover {
  box-shadow: var(--shadow-sm);
  border-color: #0284c7;
}

.festivity-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.festivity-callout-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.festivity-dates-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #0369a1;
  letter-spacing: 0.04em;
}

.festivity-callout-text strong {
  font-size: 0.95rem;
  color: #0f172a;
}

.festivity-subtext {
  font-size: 0.82rem;
  color: #475569;
}

.festivity-callout-action .btn-festivity-view {
  background: #ffffff;
  border: 1px solid #0284c7;
  color: #0284c7;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.calendar-festivity-callout:hover .btn-festivity-view {
  background: #0284c7;
  color: #ffffff;
}

/* Leyenda del calendario */
.calendar-legend-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
  color: #64748b;
}

.calendar-legend-items {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

/* Panel resumen de dia seleccionado */
.calendar-selected-summary {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  animation: fadeIn 0.25s ease-in-out;
}

.selected-summary-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.selected-summary-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-clear-selection {
  background: #ffffff;
  border: 1px solid #93c5fd;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-selection:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.selected-events-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.selected-event-mini-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.mini-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.mini-card-meta {
  font-size: 0.8rem;
  color: #64748b;
  display: flex;
  gap: 0.75rem;
  margin-top: 0.15rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .calendar-day-cell {
    min-height: 48px;
    padding: 0.25rem 0.15rem;
  }
  .calendar-day-num {
    font-size: 0.82rem;
  }
  .calendar-dot {
    width: 5px;
    height: 5px;
  }
  .selected-event-mini-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   TARJETA DESTACADA PATROCINADOR GRAN PICO (PARTE INFERIOR A TODO COLOR)
   ========================================================================== */
.sponsor-banner-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 2px solid var(--accent);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.sponsor-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 320px;
  height: 100%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.sponsor-banner-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: center;
}

.sponsor-content h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.5rem 0 0.75rem;
}

.sponsor-highlight {
  color: #fde047;
}

.sponsor-content p {
  color: #cbd5e1;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.sponsor-box-right {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sponsor-main-logo {
  max-width: 250px;
  height: auto;
  margin: 0 auto 0.75rem;
  display: block;
}

/* ==========================================================================
   MODAL / POPUP DE NOTICIA Y REGISTRO
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #f1f5f9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

/* Carteles y pósters en modal de agenda */
.agenda-modal-poster-wrap {
  margin: 1.25rem 0;
  text-align: center;
}

.agenda-modal-poster-link {
  display: inline-block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  background: #0f172a;
  max-width: 100%;
  transition: var(--transition);
}

.agenda-modal-poster-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.agenda-modal-poster-img {
  max-height: 440px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.agenda-modal-poster-link:hover .agenda-modal-poster-img {
  transform: scale(1.02);
}

.agenda-poster-zoom-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.2s ease;
}

.agenda-modal-poster-link:hover .agenda-poster-zoom-badge {
  background: var(--primary);
}

/* ==========================================================================
   PIE DE PAGINA (FOOTER)
   ========================================================================== */
.main-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
  margin-top: 0.4rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-sponsor-box {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #1e293b;
}

.footer-sponsor-box h4 {
  margin-bottom: 0.85rem;
}

.footer-sponsor-logo-link {
  display: inline-block;
  background: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-sponsor-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  padding-left: 0.75rem !important;
}

.footer-sponsor-logo-img {
  height: 34px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOVILES Y TABLETS)
   ========================================================================== */
@media (min-width: 993px) and (max-width: 1220px) {
  .nav-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.5rem;
    gap: 0.2rem;
  }
  .brand-logo-img {
    height: 90px;
  }
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  .header-inner {
    padding: 0.5rem 0;
  }
  .brand-logo-img {
    height: 75px;
  }
  .header-disclaimer-subtle {
    font-size: 0.6rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
  }
  .nav-menu.active {
    display: flex;
  }
  .weather-main-grid {
    grid-template-columns: 1fr;
  }
  .weather-current {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-right: 0;
    padding-bottom: 1rem;
  }
  .sponsor-banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .agenda-card {
    grid-template-columns: 90px 1fr;
  }
  .agenda-action {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.6rem;
  }
  .hero-subtitle-location {
    font-size: 1.05rem;
  }
  .weather-forecast-days {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TRANSICIONES FLUIDAS ENTRE SECCIONES / PÁGINAS (CON DESLIZAMIENTO)
   ========================================================================== */
html, body {
  overflow-x: hidden;
}

#page-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 55%, #eab308 100%);
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7), 0 0 4px rgba(234, 179, 8, 0.5);
  transition: width 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

#page-progress-bar.active {
  opacity: 1;
  width: 85%;
}

#page-progress-bar.finish {
  width: 100%;
  opacity: 0;
  transition: width 0.2s ease-out, opacity 0.3s ease-out 0.1s;
}

/* ==========================================================================
   SISTEMA DE DESLIZAMIENTO CONTIGUO ENTRE PÁGINAS (SIN PANTALLAZO)
   La nueva página persigue a la saliente unida al borde y se queda fija
   ========================================================================== */
#app-viewport {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

.app-page-view {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  box-sizing: border-box;
}

.app-page-view.is-sliding {
  position: absolute;
  top: 0;
  width: 100%;
  will-change: transform;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #page-progress-bar {
    display: none !important;
  }
  .app-page-view.is-sliding {
    transition: none !important;
    transform: none !important;
  }
}

/* ==========================================================================
   STYLES FROM: agenda.html
   ========================================================================== */
.agenda-filter-bar {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.25rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
    }
    .agenda-filter-pill {
      background: #f1f5f9;
      color: #475569;
      border: none;
      padding: 0.45rem 1.15rem;
      border-radius: 9999px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .agenda-filter-pill:hover {
      background: #e2e8f0;
      color: var(--primary);
    }
    .agenda-filter-pill.active {
      background: var(--primary);
      color: #ffffff;
    }
    .propose-box {
      background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
      border: 1px solid #bbf7d0;
      border-radius: var(--radius);
      padding: 2rem;
      margin-top: 3.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1.5rem;
    }

    /* Estilos del Calendario Tradicional de Fiestas */
    .fiestas-tradicionales-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.5rem;
      margin-top: 1.5rem;
    }
    .fiesta-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }
    .fiesta-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
      border-color: #cbd5e1;
    }
    .fiesta-card-header {
      padding: 1.25rem 1.5rem;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .fiesta-card-header i {
      font-size: 1.5rem;
      background: rgba(255, 255, 255, 0.2);
      width: 42px;
      height: 42px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .fiesta-card-body {
      padding: 1.5rem;
      flex-grow: 1;
      font-size: 0.9rem;
      color: #475569;
      line-height: 1.55;
    }
    .fiesta-tag-date {
      display: inline-block;
      font-size: 0.78rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.03em;
      opacity: 0.95;
    }

    .header-sansalvador { background: linear-gradient(135deg, #b45309 0%, #d97706 100%); }
    .header-rosario { background: linear-gradient(135deg, #be185d 0%, #ec4899 100%); }
    .header-pascua { background: linear-gradient(135deg, #15803d 0%, #22c55e 100%); }
    .header-enramada { background: linear-gradient(135deg, #047857 0%, #10b981 100%); }
    .header-sananton { background: linear-gradient(135deg, #c2410c 0%, #f97316 100%); }
    .header-sanisidro { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); }
    .header-santaagueda { background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%); }
    .header-semanasanta { background: linear-gradient(135deg, #4338ca 0%, #6366f1 100%); }

    .poncho-banner {
      background: linear-gradient(135deg, #fefce8 0%, #fef08a 100%);
      border: 1px solid #fde047;
      border-radius: var(--radius);
      padding: 1.5rem 2rem;
      margin-top: 2rem;
      display: flex;
      align-items: center;
      gap: 1.5rem;
    }

/* ==========================================================================
   STYLES FROM: empresas.html
   ========================================================================== */
.directory-filter-bar {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.25rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      align-items: center;
      justify-content: space-between;
    }
    .filter-pills-group {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
    }
    .filter-pill {
      background: #f1f5f9;
      color: #475569;
      border: 1px solid transparent;
      padding: 0.45rem 1.15rem;
      border-radius: 9999px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .filter-pill:hover {
      background: #e2e8f0;
      color: var(--primary);
    }
    .filter-pill.active {
      background: var(--primary);
      color: #ffffff;
    }
    .search-input-wrapper {
      position: relative;
      min-width: 260px;
    }
    .search-input-wrapper input {
      width: 100%;
      padding: 0.5rem 1rem 0.5rem 2.25rem;
      border: 1px solid var(--border-color);
      border-radius: 9999px;
      font-size: 0.88rem;
      outline: none;
      transition: var(--transition);
    }
    .search-input-wrapper input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
    }
    .search-input-wrapper i {
      position: absolute;
      left: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
      font-size: 0.9rem;
    }

    /* Sponsor Feature Card */
    .sponsor-feature-card {
      background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
      color: #ffffff;
      border-radius: var(--radius);
      padding: 2rem;
      margin-bottom: 2.5rem;
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 2rem;
      align-items: center;
      box-shadow: 0 10px 25px -5px rgba(30, 58, 138, 0.3);
      border: 2px solid var(--granpico);
    }
    .sponsor-feature-logo {
      background: #ffffff;
      padding: 1rem 1.5rem;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      max-width: 220px;
    }
    .sponsor-feature-logo img {
      max-height: 70px;
      width: auto;
      object-fit: contain;
    }
    @media (max-width: 860px) {
      .sponsor-feature-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.25rem;
      }
      .sponsor-feature-logo {
        margin: 0 auto;
      }
    }

    /* Company Cards */
    .company-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 1.5rem;
      margin-bottom: 3.5rem;
    }
    .company-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.5rem;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      transition: var(--transition);
      position: relative;
    }
    .company-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-md);
      border-color: #cbd5e1;
    }
    .company-card-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.75rem;
      gap: 0.5rem;
    }
    .company-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.2rem 0.65rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.025em;
    }
    .badge-agricultura { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
    .badge-ganaderia { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
    .badge-construccion { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
    .badge-comercio { background: #fdf2f8; color: #9d174d; border: 1px solid #fbcfe8; }
    .badge-servicios { background: #f8fafc; color: #334155; border: 1px solid #e2e8f0; }
    .badge-industria { background: #f5f3ff; color: #5b21b6; border: 1px solid #ddd6fe; }

    .company-year {
      font-size: 0.78rem;
      color: #94a3b8;
      font-weight: 600;
    }
    .company-name {
      font-size: 1.2rem;
      font-weight: 800;
      color: var(--primary-dark);
      margin-bottom: 0.45rem;
      line-height: 1.3;
    }
    .company-desc {
      font-size: 0.9rem;
      color: #475569;
      line-height: 1.5;
      margin-bottom: 1.25rem;
      flex-grow: 1;
    }
    .company-meta {
      border-top: 1px solid #f1f5f9;
      padding-top: 0.85rem;
      font-size: 0.85rem;
      display: flex;
      flex-direction: column;
      gap: 0.4rem;
    }
    .meta-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      color: #64748b;
    }
    .meta-item i {
      color: var(--primary);
      width: 16px;
      text-align: center;
      font-size: 0.85rem;
    }
    .meta-item a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      word-break: break-all;
    }
    .meta-item a:hover {
      text-decoration: underline;
    }

    /* CTA Register Box */
    .register-business-box {
      background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
      border: 1px solid var(--border-color);
      border-left: 4px solid var(--primary);
      border-radius: var(--radius);
      padding: 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1.5rem;
      flex-wrap: wrap;
      box-shadow: var(--shadow-sm);
    }

/* ==========================================================================
   STYLES FROM: galeria.html
   ========================================================================== */
.filter-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-bottom: 2rem;
      justify-content: center;
    }
    .filter-btn {
      background: #ffffff;
      border: 1px solid #cbd5e1;
      color: #475569;
      padding: 0.5rem 1rem;
      border-radius: 9999px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .filter-btn:hover, .filter-btn.active {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
    }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.25rem;
    }
    .gallery-item {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      aspect-ratio: 4/3;
      background: #0f172a;
      transition: var(--transition);
    }
    .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }
    .gallery-item:hover {
      box-shadow: var(--shadow-md);
      transform: translateY(-2px);
    }
    .gallery-item:hover img { transform: scale(1.06); }
    .gallery-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(15,23,42,0.92) 0%, rgba(15,23,42,0.3) 50%, transparent 80%);
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 1.25rem 1rem 1rem;
      opacity: 0;
      transition: opacity 0.25s ease;
    }
    .gallery-item:hover .gallery-overlay,
    .gallery-item:focus .gallery-overlay { opacity: 1; }
    .gallery-overlay-badge {
      display: inline-block;
      align-self: flex-start;
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      background: rgba(30, 58, 138, 0.85);
      color: #e0f2fe;
      padding: 0.15rem 0.5rem;
      border-radius: 4px;
      margin-bottom: 0.35rem;
    }
    .gallery-overlay-title {
      color: #ffffff;
      font-size: 0.95rem;
      font-weight: 700;
      line-height: 1.3;
      margin-bottom: 0.2rem;
    }
    .gallery-overlay-sub {
      color: #cbd5e1;
      font-size: 0.78rem;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* LIGHTBOX & SLIDESHOW */
    .lightbox-overlay {
      position: fixed;
      inset: 0;
      background: rgba(8, 14, 26, 0.96);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 3000;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      padding: 1rem;
      user-select: none;
    }
    .lightbox-overlay.active { opacity: 1; visibility: visible; }

    .lightbox-progress-bar {
      position: absolute;
      top: 0;
      left: 0;
      height: 3px;
      width: 0%;
      background: linear-gradient(90deg, #38bdf8, #2563eb);
      z-index: 3010;
      opacity: 0;
      transition: opacity 0.2s ease;
    }
    .lightbox-progress-bar.animating {
      opacity: 1;
      animation: lightboxProgressAnim 4.5s linear infinite;
    }
    @keyframes lightboxProgressAnim {
      0% { width: 0%; }
      100% { width: 100%; }
    }

    .lightbox-topbar {
      position: absolute;
      top: 1rem;
      left: 1.5rem;
      right: 1.5rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 3010;
      pointer-events: none;
    }
    .lightbox-topbar-left, .lightbox-topbar-right {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      pointer-events: auto;
    }
    .lightbox-cat-badge {
      background: rgba(30, 58, 138, 0.85);
      color: #e0f2fe;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 0.3rem 0.75rem;
      border-radius: 9999px;
      border: 1px solid rgba(56, 189, 248, 0.3);
      display: none;
    }
    .lightbox-counter {
      color: #94a3b8;
      font-size: 0.85rem;
      font-weight: 700;
      background: rgba(15, 23, 42, 0.7);
      padding: 0.3rem 0.75rem;
      border-radius: 9999px;
      border: 1px solid rgba(255,255,255,0.1);
    }
    .lightbox-btn {
      background: rgba(15, 23, 42, 0.8);
      color: #e2e8f0;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 9999px;
      padding: 0.45rem 0.9rem;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      transition: all 0.2s ease;
    }
    .lightbox-btn:hover {
      background: rgba(30, 58, 138, 0.9);
      color: #ffffff;
      border-color: #38bdf8;
      transform: scale(1.03);
    }
    .lightbox-play-btn.playing {
      background: #16a34a;
      border-color: #4ade80;
      color: #ffffff;
    }
    .lightbox-close-btn {
      width: 38px;
      height: 38px;
      padding: 0;
      justify-content: center;
      font-size: 1.15rem;
    }

    .lightbox-nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: rgba(15, 23, 42, 0.75);
      color: #ffffff;
      border: 1px solid rgba(255,255,255,0.2);
      font-size: 1.3rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 3005;
      transition: all 0.2s ease;
    }
    .lightbox-nav-btn:hover {
      background: var(--primary);
      border-color: #38bdf8;
      transform: translateY(-50%) scale(1.1);
    }
    .lightbox-prev-btn { left: 1.5rem; }
    .lightbox-next-btn { right: 1.5rem; }

    .lightbox-img-wrap {
      max-width: 90vw;
      max-height: 86vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-top: 2rem;
    }
    .lightbox-img-container {
      max-width: 86vw;
      max-height: 68vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }
    .lightbox-img {
      max-width: 100%;
      max-height: 68vh;
      border-radius: 8px;
      box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
      object-fit: contain;
      transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .lightbox-caption-box {
      width: 100%;
      max-width: 780px;
      text-align: center;
      margin-top: 0.85rem;
      padding: 0.25rem 1rem;
    }
    .lightbox-title {
      color: #ffffff;
      font-size: 1.05rem;
      font-weight: 700;
      margin-bottom: 0.3rem;
      line-height: 1.3;
    }
    .lightbox-caption {
      color: #cbd5e1;
      font-size: 0.9rem;
      line-height: 1.5;
    }

    @media (max-width: 768px) {
      .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
      }
      .lightbox-prev-btn { left: 0.5rem; }
      .lightbox-next-btn { right: 0.5rem; }
      .lightbox-topbar {
        top: 0.75rem;
        left: 0.75rem;
        right: 0.75rem;
      }
      .lightbox-btn span { display: none; }
      .lightbox-img-container {
        max-width: 95vw;
        max-height: 62vh;
      }
      .lightbox-img { max-height: 62vh; }
      .lightbox-title { font-size: 0.95rem; }
      .lightbox-caption { font-size: 0.82rem; }
    }

/* ==========================================================================
   STYLES FROM: historia.html
   ========================================================================== */
.timeline-article {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 2.25rem;
      margin-bottom: 2.5rem;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
    }
    .timeline-article:hover {
      box-shadow: var(--shadow-md);
      border-color: #cbd5e1;
    }
    .timeline-badge {
      display: inline-block;
      background: #eff6ff;
      color: var(--primary);
      border: 1px solid #bfdbfe;
      padding: 0.25rem 0.85rem;
      border-radius: 9999px;
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
    }
    .timeline-title {
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--primary-dark);
      margin-bottom: 1rem;
    }
    .img-caption-box {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 0.5rem;
      padding: 0.6rem;
      margin: 1.25rem 0;
      text-align: center;
    }
    .img-caption-box img {
      max-height: 380px;
      width: 100%;
      object-fit: cover;
      margin: 0 auto;
      border-radius: 4px;
      display: block;
    }
    .img-caption-box span {
      display: block;
      font-size: 0.85rem;
      color: #64748b;
      margin-top: 0.5rem;
      font-style: italic;
    }
    .historical-quote {
      border-left: 4px solid var(--accent);
      background: #fffbeb;
      padding: 1rem 1.25rem;
      margin: 1.25rem 0;
      font-style: italic;
      color: #78350f;
      border-radius: 0 0.5rem 0.5rem 0;
      line-height: 1.6;
    }
    .historical-note {
      background: #f1f5f9;
      border-left: 4px solid var(--primary);
      padding: 1rem 1.25rem;
      margin: 1.25rem 0;
      border-radius: 0 0.5rem 0.5rem 0;
      font-size: 0.92rem;
      color: #334155;
      line-height: 1.6;
    }
    .historical-note strong {
      color: var(--primary-dark);
    }
    
    /* Vuelos aéreos grid */
    .aerial-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.25rem;
      margin-top: 1.5rem;
    }
    .aerial-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: var(--radius);
      overflow: hidden;
      text-align: center;
      transition: var(--transition);
    }
    .aerial-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-sm);
      border-color: #cbd5e1;
    }
    .aerial-card img {
      width: 100%;
      height: 180px;
      object-fit: cover;
      display: block;
    }
    .aerial-card-body {
      padding: 0.85rem;
    }
    .aerial-year {
      display: inline-block;
      background: var(--primary);
      color: #ffffff;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 0.2rem 0.6rem;
      border-radius: 9999px;
      margin-bottom: 0.4rem;
    }
    .aerial-desc {
      font-size: 0.82rem;
      color: #475569;
      line-height: 1.45;
    }

/* ==========================================================================
   STYLES FROM: legal.html
   ========================================================================== */
.legal-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 2.25rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-sm);
    }
    .legal-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      background: #eff6ff;
      color: var(--primary);
      border: 1px solid #bfdbfe;
      padding: 0.25rem 0.85rem;
      border-radius: 9999px;
      font-size: 0.8rem;
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 0.75rem;
    }
    .legal-title {
      font-size: 1.5rem;
      font-weight: 800;
      color: var(--primary-dark);
      margin-bottom: 1rem;
    }
    .legal-card p {
      color: #475569;
      line-height: 1.65;
      margin-bottom: 1rem;
      font-size: 0.95rem;
    }
    .legal-card ul {
      margin: 1rem 0 1.25rem 1.5rem;
      list-style: disc;
      color: #475569;
      line-height: 1.65;
      font-size: 0.95rem;
    }
    .legal-card li {
      margin-bottom: 0.5rem;
    }
    .legal-highlight-box {
      background: #f8fafc;
      border-left: 4px solid var(--primary);
      padding: 1rem 1.25rem;
      border-radius: 0 8px 8px 0;
      margin: 1.25rem 0;
      font-size: 0.92rem;
      color: #334155;
    }

/* ==========================================================================
   STYLES FROM: noticias.html
   ========================================================================== */
.filter-bar {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.25rem;
      margin-bottom: 2rem;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }
    .filter-top-row {
      display: grid;
      grid-template-columns: 1fr 200px;
      gap: 1rem;
    }
    .search-box { position: relative; }
    .search-box input {
      width: 100%;
      padding: 0.65rem 1rem 0.65rem 2.5rem;
      border: 1px solid #cbd5e1;
      border-radius: 0.5rem;
      font-size: 0.95rem;
      outline: none;
      transition: var(--transition);
    }
    .search-box input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    }
    .search-box i {
      position: absolute;
      left: 0.85rem;
      top: 50%;
      transform: translateY(-50%);
      color: #94a3b8;
    }
    .year-select-box select {
      width: 100%;
      padding: 0.65rem 1rem;
      border: 1px solid #cbd5e1;
      border-radius: 0.5rem;
      font-size: 0.95rem;
      background: #ffffff;
      outline: none;
    }
    .pills-container {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
    }
    .filter-pill {
      background: #f1f5f9;
      color: #475569;
      border: none;
      padding: 0.4rem 1rem;
      border-radius: 9999px;
      font-size: 0.85rem;
      font-weight: 600;
      cursor: pointer;
      transition: var(--transition);
    }
    .filter-pill:hover {
      background: #e2e8f0;
      color: var(--primary);
    }
    .filter-pill.active {
      background: var(--primary);
      color: #ffffff;
    }

/* ==========================================================================
   STYLES FROM: personajes.html
   ========================================================================== */
.personaje-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 2.25rem;
      margin-bottom: 2.5rem;
      box-shadow: var(--shadow-sm);
      display: grid;
      grid-template-columns: 210px 1fr;
      gap: 2.25rem;
      align-items: start;
      transition: var(--transition);
    }
    .personaje-card:hover {
      box-shadow: var(--shadow-md);
      border-color: #cbd5e1;
    }
    .personaje-img-box {
      border-radius: var(--radius);
      overflow: hidden;
      background: #f1f5f9;
      border: 1px solid #e2e8f0;
      text-align: center;
    }
    .personaje-img-box img {
      width: 100%;
      height: 270px;
      object-fit: cover;
      object-position: top center;
      display: block;
    }
    .personaje-years {
      padding: 0.5rem;
      font-size: 0.8rem;
      color: #64748b;
      font-weight: 700;
      background: #f8fafc;
      border-top: 1px solid #e2e8f0;
    }
    .personaje-tag {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.25rem 0.8rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      margin-bottom: 0.6rem;
    }
    .tag-jota { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
    .tag-deporte { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
    .tag-politica { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
    .tag-derechos { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
    .tag-musica { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
    .tag-ciencia { background: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; }

    .jota-box {
      background: #fafaf9;
      border-left: 3px solid var(--accent);
      padding: 0.85rem 1.25rem;
      margin: 1.25rem 0;
      font-style: italic;
      color: #44403c;
      border-radius: 0 8px 8px 0;
      line-height: 1.6;
    }
    .anecdota-box {
      background: #f8fafc;
      border-left: 3px solid var(--primary);
      padding: 0.85rem 1.25rem;
      margin: 1rem 0;
      border-radius: 0 8px 8px 0;
      font-size: 0.9rem;
      color: #334155;
      line-height: 1.55;
    }
    .anecdota-box strong {
      color: var(--primary-dark);
    }

    @media (max-width: 768px) {
      .personaje-card { grid-template-columns: 1fr; gap: 1.5rem; }
      .personaje-img-box img { height: 280px; max-height: 280px; object-position: top center; }
    }

/* ==========================================================================
   STYLES FROM: servicios.html
   ========================================================================== */
.service-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.5rem;
      box-shadow: var(--shadow-sm);
      display: flex;
      gap: 1.25rem;
      align-items: flex-start;
      transition: var(--transition);
    }
    .service-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-md);
    }
    .service-icon {
      width: 52px;
      height: 52px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      flex-shrink: 0;
    }
    .icon-blue { background: #eff6ff; color: #2563eb; }
    .icon-green { background: #f0fdf4; color: #16a34a; }
    .icon-amber { background: #fefce8; color: #d97706; }
    .icon-purple { background: #faf5ff; color: #9333ea; }
    .icon-rose { background: #fff1f2; color: #e11d48; }

    .service-title {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--primary-dark);
      margin-bottom: 0.35rem;
    }
    .contact-table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 1rem;
    }
    .contact-table th, .contact-table td {
      padding: 0.75rem 1rem;
      border-bottom: 1px solid var(--border-color);
      text-align: left;
      font-size: 0.9rem;
    }
    .contact-table th {
      background: #f8fafc;
      font-weight: 700;
      color: var(--primary-dark);
    }

    /* Estilos de Asociaciones */
    .association-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }
    .association-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
      border-color: #cbd5e1;
    }
    .association-header {
      padding: 1.25rem 1.5rem;
      color: #ffffff;
      display: flex;
      align-items: center;
      gap: 1rem;
    }
    .association-header i {
      font-size: 1.6rem;
      background: rgba(255, 255, 255, 0.2);
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 10px;
      flex-shrink: 0;
    }
    .association-body {
      padding: 1.5rem;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    .header-rondalla { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); }
    .header-amypa { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
    .header-cofradia { background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%); }
    .header-caza { background: linear-gradient(135deg, #16a34a 0%, #15803d 100%); }
    .header-futbol { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
    .header-deportes { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }
    .header-penas { background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%); }


