/* ═══════════════════════════════════════════════
   CanariasGuay — Estilo revista digital canaria
   ═══════════════════════════════════════════════ */

:root {
  --bg: #f5f3ef;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-soft: #555;
  --text-muted: #888;
  --accent: #0768A9;
  --accent-light: #0a8cd4;
  --blue: #0768A9;
  --canary-yellow: #FFCC00;
  --border: #ddd;
  --border-light: #eee;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-hover: 0 4px 16px rgba(0,0,0,.12);
  --radius: 0;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--accent);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ═══ HEADER ═══ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  max-width: 1120px;
}

.header-meta { display: flex; gap: 16px; }

.header-actions { display: flex; gap: 12px; }

.header-subscribe {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  font-weight: 600;
}

.header-brand {
  text-align: center;
  padding: 24px 20px 20px;
  max-width: 1120px;
}

.site-title {
  font-family: var(--serif);
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.site-title__canarias { font-weight: 400; color: var(--text); }
.site-title__guay { font-weight: 700; font-style: italic; color: var(--accent);
  font-weight: 700; }

.site-title__tagline {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-top: 4px;
  font-style: normal;
}

/* ═══ NAV ═══ */
.header-nav {
  background: var(--text);
  border-top: 4px solid var(--canary-yellow);
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-link {
  display: block;
  padding: 12px 20px;
  color: #ddd;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .2s;
}

.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.1); }

.nav-isla, .nav-cat { margin-left: auto; }

.nav-select {
  background: #333;
  color: #ddd;
  border: none;
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--sans);
}

.nav-select option { background: #333; color: #ddd; }

/* ═══ TABS ═══ */
.tab-panel { display: none; padding: 40px 0; }
.tab-panel.active { display: block; }

/* ═══ SECTIONS ═══ */
.section-header {
  border-bottom: 2px solid var(--text);
  margin-bottom: 24px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

/* ═══ LEAD ARTICLE ═══ */
.lead-article {
  margin-bottom: 40px;
}

.lead-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: #fff;
  padding: 0;
  cursor: pointer;
  transition: all .3s;
}

.lead-card:hover .lead-title { color: #0768A9 !important;
  color: #0768A9 !important;
  font-weight: 700; }

.lead-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.lead-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 20px 20px 0;
}

.lead-island {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
  font-weight: 600;
  margin-bottom: 12px;
}

.lead-title {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0768A9 !important;
  margin-bottom: 12px;
  transition: color .2s;
  color: #0768A9 !important;
}

.lead-summary {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 12px;
}

.lead-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
}

.lead-meta .source { font-weight: 600; color: var(--text-soft); }

/* ═══ NEWS GRID ═══ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all .25s;
  display: flex;
  flex-direction: column;
}

.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.news-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-card__body { padding: 16px 20px 20px; flex: 1; display: flex; flex-direction: column; }

.news-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.news-card__source { font-weight: 600; color: var(--blue); }

.badge--island {
  background: #e6b800;
  color: #1a1a1a;
  color: #fff;
  padding: 2px 8px;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge--canary {
  font-size: 1em;
  margin-left: 4px;
}

.news-card__title {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 8px;
  flex: 1;
}

.news-card__title a {
  color: var(--accent);
  text-decoration: none;
}

.news-card__title a:hover { color: var(--accent);
  font-weight: 700; }

.news-card__text {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 0;
}

.news-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ═══ EVENTS STRIP ═══ */
.events-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.events-strip::-webkit-scrollbar { height: 4px; }
.events-strip::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }

.event-strip-card {
  min-width: 260px;
  flex-shrink: 0;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 16px;
  cursor: pointer;
  transition: all .2s;
}

.event-strip-card:hover { box-shadow: var(--shadow-hover); }

.event-strip-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  margin-bottom: 10px;
}

.event-strip-title {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-strip-date { font-size: 0.8rem; color: var(--text-muted); }
.event-strip-type { font-size: 0.7rem; color: var(--accent);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* ═══ FESTIVALS ═══ */
.festivals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.fest-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  padding: 0;
  cursor: pointer;
  transition: all .2s;
  overflow: hidden;
}

.fest-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }

.fest-card__img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

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

.fest-card__title {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.fest-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fest-card__type {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  margin-top: 6px;
}

/* ═══ CALENDAR ═══ */
.calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.cal-filters { display: flex; gap: 8px; }

.cal-nav { display: flex; align-items: center; gap: 16px; }

.cal-nav-btn {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 6px 14px;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: var(--serif);
  transition: background .2s;
}

.cal-nav-btn:hover { background: #FFCC00;
  color: #1a1a1a; }

.cal-month-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  min-width: 140px;
  text-align: center;
}

.calendar-grid {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  margin-bottom: 40px;
}

.cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 2px solid var(--text);
}

.cal-hd {
  padding: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  text-align: center;
  font-weight: 600;
}

.cal-body {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-cell {
  min-height: 100px;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 6px;
  position: relative;
}

.cal-cell:nth-child(7n) { border-right: none; }
.cal-cell--empty { background: #fafafa; min-height: 100px; }
.cal-cell--today { background: #fef9f0; }
.cal-cell--today .cal-num { background: #FFCC00;
  color: #1a1a1a; color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.cal-num { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; display: inline-block; }
.cal-event {
  font-size: 0.7rem;
  padding: 2px 4px;
  margin-bottom: 2px;
  border-radius: 2px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cal-more { font-size: 0.7rem; color: var(--blue); cursor: pointer; }
.cal-event-img { width: 100%; height: 30px; object-fit: cover; margin-bottom: 2px; display: block; border-radius: 2px; }

/* ═══ SUBSCRIBE BAND ═══ */
.subscribe-band {
  background: var(--text);
  color: #fff;
  padding: 48px 0;
}

.subscribe-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.subscribe-text h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.subscribe-text p { font-size: 0.9rem; color: #aaa; }

.subscribe-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }

.subscribe-input {
  padding: 10px 16px;
  border: none;
  font-size: 0.9rem;
  min-width: 240px;
  background: #333;
  color: #fff;
}

.subscribe-input::placeholder { color: #777; }

.subscribe-btn {
  background: #FFCC00;
  color: #1a1a1a;
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background .2s;
}

.subscribe-btn:hover { background: #e6b800;
  color: #1a1a1a; }

.subscribe-message {
  width: 100%;
  font-size: 0.8rem;
  margin-top: 4px;
}

.subscribe-message--success { color: #4caf50; }
.subscribe-message--error { color: #f44336; }

/* ═══ FOOTER ═══ */
.site-footer {
  background: #111;
  color: #888;
  padding: 40px 0 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #222;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
}

.fw-bold { font-weight: 700; font-style: italic; color: var(--accent);
  font-weight: 700; }

.footer-desc { font-size: 0.8rem; margin-top: 6px; }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  color: #555;
}

/* ═══ MODAL ═══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.open { display: flex; }

.modal-content {
  background: #fff;
  max-width: 560px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #999;
}

.modal-close:hover { color: var(--text); }

#modal-img img { width: 100%; max-height: 220px; object-fit: cover; margin-bottom: 16px; }

.modal-type { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.modal-detail { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 4px; }
.modal-desc { font-size: 0.9rem; line-height: 1.6; margin: 12px 0; color: var(--text); }
.modal-link { display: inline-block; color: var(--accent);
  font-weight: 700; font-weight: 600; }

/* ═══ LOADING ═══ */
.news-grid__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #999;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: var(--accent);
  font-weight: 700;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
  .lead-card { grid-template-columns: 1fr; }
  .lead-img { height: 240px; }
  .lead-body { padding: 20px; }
  .lead-title { font-size: 1.5rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .festivals-grid { grid-template-columns: repeat(2, 1fr); }
  .site-title { font-size: 2rem; }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .festivals-grid { grid-template-columns: 1fr; }
  .calendar-toolbar { flex-direction: column; align-items: flex-start; }
  .site-title { font-size: 1.6rem; }
  .header-top { flex-direction: column; gap: 4px; }
  .nav-list { flex-wrap: wrap; gap: 0; }
  .nav-link { padding: 10px 14px; font-size: 0.72rem; }
  .nav-isla, .nav-cat { margin-left: 0; }
  .subscribe-inner { flex-direction: column; text-align: center; }
  .subscribe-input { min-width: 100%; }
  .subscribe-form { width: 100%; }
  .subscribe-btn { width: 100%; }
}

/* Toggle sarcasmo */
.header-sarcasmo {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: 0.2s;
}
.header-sarcasmo:hover {
  background: var(--accent-dark);
}

.badge--sarcasmo {
  display: inline-block;
  font-size: 0.9rem;
  margin-left: 3px;
}

/* ===== LEAD CARD - FULL CONTENT (Blog canario) ===== */

.lead-card--full {
  grid-template-columns: 1fr;
  gap: 0;
  cursor: default;
}

.lead-card--full .lead-img {
  height: 420px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.lead-card--full .lead-body {
  padding: 0;
}

.lead-title--large {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 16px;
}

.lead-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft, #444);
  margin-bottom: 24px;
}

.lead-content p {
  margin-bottom: 16px;
  text-align: justify;
}

.lead-content p:first-child {
  margin-top: 8px;
}

.lead-original-link {
  display: inline-block;
  margin-top: 8px;
  color: #0768A9;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity .2s;
}

.lead-original-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.badge--canary-lg {
  display: inline-block;
  font-size: 1.5em;
  margin-left: 6px;
  vertical-align: middle;
}

.badge--original {
  display: inline-block;
  font-size: 0.7em;
  background: #ffd70020;
  color: #b8860b;
  padding: 2px 5px;
  border-radius: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .lead-card--full .lead-img {
    height: 240px;
  }
  .lead-title--large {
    font-size: 1.6rem;
  }
  .lead-content {
    font-size: 0.95rem;
  }
}

.site-title-link { text-decoration: none !important; color: inherit; }
.site-title-link:hover { opacity: 0.9; }

/* ===== EVENTOS Y FIESTAS - FORMATO LISTA ===== */
.events-fiestas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.events-fiestas-col {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
}

.events-fiestas-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #0768A9;
}

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

.events-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #eee;
}

.events-list-item:last-child {
  border-bottom: none;
}

.events-list-item:hover {
  background: #eef4ff;
}

.events-list-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.events-list-title {
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.events-list-date {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.events-list-location {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #0768A9;
  background: #0768A920;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Boton ver todas las noticias */
.btn-ver-todas {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #0768A9;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-ver-todas:hover {
  background: #054f83;
  transform: translateY(-1px);
}

.btn-ver-todas:active {
  transform: translateY(0);
}

/* ===== EVENTOS Y FIESTAS - FORMATO LISTA ===== */
.events-fiestas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.events-fiestas-col {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
}

.events-fiestas-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #0768A9;
}

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

.events-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #eee;
}

.events-list-item:last-child {
  border-bottom: none;
}

.events-list-item:hover {
  background: #eef4ff;
}

.events-list-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.events-list-title {
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.events-list-date {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.events-list-location {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #0768A9;
  background: #0768A920;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Boton ver todas las noticias */
.btn-ver-todas {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #0768A9;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-ver-todas:hover {
  background: #054f83;
  transform: translateY(-1px);
}

.btn-ver-todas:active {
  transform: translateY(0);
}

/* ===== EVENTOS Y FIESTAS - FORMATO LISTA ===== */
.events-fiestas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}

.events-fiestas-col {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
}

.events-fiestas-subtitle {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #0768A9;
}

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

.events-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #eee;
}

.events-list-item:last-child {
  border-bottom: none;
}

.events-list-item:hover {
  background: #eef4ff;
}

.events-list-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.events-list-title {
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.3;
}

.events-list-date {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  color: #888;
  white-space: nowrap;
  flex-shrink: 0;
}

.events-list-location {
  font-family: "Inter", sans-serif;
  font-size: 0.75rem;
  color: #0768A9;
  background: #0768A920;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Boton ver todas las noticias */
.btn-ver-todas {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: #0768A9;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-ver-todas:hover {
  background: #054f83;
  transform: translateY(-1px);
}

.btn-ver-todas:active {
  transform: translateY(0);
}

/* ========== Portada expandida: 6+5+5+10 ========== */
.news-subsection {
  margin: 28px 0 10px;
}
.news-subsection-title {
  font-family: "Playfair Display", serif;
  font-size: 0.95rem;
  border-bottom: 2px solid #0768A9;
  padding-bottom: 4px;
}
.news-subsection-title span {
  background: #0768A9;
  color: #fff;
  padding: 3px 12px;
  border-radius: 4px 4px 0 0;
  font-size: 0.8rem;
  display: inline-block;
}
.news-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.news-card-sm {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  cursor: pointer;
}
.news-card-sm:hover { box-shadow: 0 2px 10px rgba(0,0,0,.14); }
.news-card-sm__img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
.news-card-sm__body {
  padding: 8px 10px 10px;
}
.news-card-sm__title {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  line-height: 1.3;
  margin: 4px 0;
  color: #1a1a1a;
}
.news-card-sm__text {
  font-size: 0.72rem;
  color: #666;
  line-height: 1.4;
  margin: 4px 0;
}
.news-grid-5 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.news-card-xs {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  cursor: pointer;
}
.news-card-xs:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.news-card-xs__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.news-card-xs__body {
  padding: 5px 7px 7px;
  font-size: 0.72rem;
}
.news-card-xs__title {
  font-family: "Playfair Display", serif;
  font-size: 0.72rem;
  line-height: 1.3;
  margin: 2px 0;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.6em;
}
.news-list-10 {
  margin-bottom: 24px;
}
.news-list-10 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.news-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}
.news-list-item:hover { background: #f5f8ff; }
.news-list-bullet {
  color: #0768A9;
  font-size: 0.5rem;
  flex-shrink: 0;
  line-height: 1;
}
.news-list-title {
  flex: 1;
  font-size: 0.85rem;
  color: #1a1a1a;
}
.news-list-date {
  font-size: 0.72rem;
  color: #999;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .news-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .news-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .news-card-sm__text { display: none; }
  .news-card-xs__title { font-size: 0.7rem; }
  .news-card-sm__title { font-size: 0.8rem; }
  .news-card-xs__img { aspect-ratio: 1/1; }
}

/* 📱 MOVIL: Eventos arriba, Fiestas debajo (en vez de columnas lado a lado) */
@media (max-width: 768px) {
  .events-fiestas-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}


/* 📱 MOVIL: Eventos arriba, Fiestas debajo (en vez de columnas lado a lado) */