/* ============================================================
   Chiquito Plan — style.css
   Web pública — mobile-first, dark premium
   ============================================================ */

/* Fuentes: se cargan desde el <head> de cada página (sin @import,
   que obligaba a descargarlas en cadena y bloqueaba el pintado). */

/* ── Reset & tokens ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0C1A2E;
  --surface:   #1A3050;
  --surface2:  #213d63;
  --text:      #E8F0FB;
  --text-dim:  rgba(232,240,251,.66);  /* antes .5: poco contraste para leer en el móvil */
  --orange:    #F97316;
  --yellow:    #FCD34D;
  --ocean:     #0EA5E9;
  --r-card:    1rem;
  --r-badge:   999px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
  --transition: .2s ease;
  --header-h:  64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ── Typography ──────────────────────────────────────────── */
.font-serif { font-family: 'Playfair Display', serif; }
.font-mono  { font-family: 'JetBrains Mono', monospace; }

/* ── Layout helpers ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: .5rem;
  line-height: 1.2;
}

.section-sub {
  color: var(--text-dim);
  font-size: .95rem;
  margin-bottom: 2rem;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(12,26,46,.85);
  border-bottom: 1px solid rgba(232,240,251,.07);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo__sun {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(249,115,22,.6);
  animation: sun-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}

.logo__icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  animation: sun-pulse 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(249,115,22,.4));
}

@keyframes sun-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(249,115,22,.6); filter: drop-shadow(0 0 4px rgba(249,115,22,.4)); }
  50%      { box-shadow: 0 0 0 10px rgba(249,115,22,0); filter: drop-shadow(0 0 12px rgba(249,115,22,.7)); }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
}

/* Oculto por defecto en móvil — sólo se muestra con .open */
@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h, 56px);
    left: 0; right: 0;
    background: rgba(12,26,46,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    border-bottom: 1px solid rgba(232,240,251,.07);
    z-index: 99;
    margin-left: 0;
  }
  .main-nav.open {
    display: flex;
  }
}

.main-nav a {
  padding: .45rem .85rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }

/* ── Header right area ───────────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}

.header-fav-btn {
  position: relative;
  background: rgba(232,240,251,.07);
  border: 1px solid rgba(232,240,251,.12);
  color: var(--text-dim);
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.header-fav-btn:hover,
.header-fav-btn.has-favs {
  color: #EC4899;
  border-color: rgba(236,72,153,.35);
  background: rgba(236,72,153,.1);
}
.header-fav-count {
  position: absolute;
  top: -5px; right: -5px;
  background: #EC4899;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

.island-select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(232,240,251,.12);
  border-radius: 8px;
  padding: .45rem .75rem;
  font-size: .85rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}

.island-select:focus { border-color: var(--orange); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r-badge);
  padding: .85rem 1.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(249,115,22,.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(249,115,22,.55);
}

.hero__cta-secondary {
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.hero__cta-secondary:hover {
  color: var(--text);
  border-color: rgba(232,240,251,.3);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  color: var(--text-dim);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
}
.hero__scroll-hint svg { animation: hero-bounce 1.8s ease-in-out infinite; }
@keyframes hero-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

@media (max-width: 900px) {
  .hero__scroll-hint { display: none; }
}
@media (max-width: 640px) {
  .hero__cta-row { margin-top: 1.5rem; gap: .75rem; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h, 80px);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 60% at 0% 100%, rgba(249,115,22,.28) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 100% 0%,   rgba(14,165,233,.2) 0%, transparent 60%),
    linear-gradient(100deg, rgba(12,26,46,.94) 0%, rgba(12,26,46,.72) 40%, rgba(12,26,46,.4) 70%, rgba(12,26,46,.65) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero__badge {
  display: inline-block;
  background: rgba(249,115,22,.15);
  border: 1px solid rgba(249,115,22,.35);
  color: var(--orange);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .35rem .85rem;
  border-radius: var(--r-badge);
  margin-bottom: 1.5rem;
  animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

.hero__h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.25rem;
  letter-spacing: -.02em;
}

.hero__h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--yellow);
  line-height: 1;
}

.stat__label {
  font-size: .8rem;
  color: var(--text-dim);
  margin-top: .25rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* Wave divider */
.hero__wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  overflow: hidden;
}

.hero__wave svg { width: 100%; height: 100%; }

/* ── Filters bar ─────────────────────────────────────────── */
.filters-section {
  padding: 1.25rem 0 .5rem;
  position: sticky;
  top: var(--header-h, 64px);
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid rgba(232,240,251,.06);
}

.filters-top-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}

/* Search */
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}
.search-icon {
  position: absolute;
  left: .85rem;
  top: 50%; transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid rgba(232,240,251,.12);
  border-radius: var(--r-badge);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  padding: .55rem 2.5rem .55rem 2.4rem;
  outline: none;
  transition: border-color var(--transition);
}
.search-input:focus { border-color: var(--orange); }
.search-input::placeholder { color: var(--text-dim); }
.search-clear {
  position: absolute;
  right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--text-dim); font-size: .9rem;
  cursor: pointer; padding: .25rem;
  transition: color var(--transition);
}
.search-clear:hover { color: var(--text); }

/* Date filter pills */
.date-filters {
  display: flex;
  gap: .4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.date-filters::-webkit-scrollbar { display: none; }
.date-btn {
  padding: .45rem .85rem;
  border-radius: var(--r-badge);
  border: 1px solid rgba(232,240,251,.12);
  background: var(--surface);
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.date-btn:hover { color: var(--text); border-color: rgba(232,240,251,.3); }
.date-btn.active {
  background: rgba(14,165,233,.18);
  border-color: rgba(14,165,233,.4);
  color: #0EA5E9;
  font-weight: 600;
}

.filters-scroll {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  scrollbar-width: none;
}

.filters-scroll::-webkit-scrollbar { display: none; }

.filter-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border-radius: var(--r-badge);
  border: 1px solid rgba(232,240,251,.12);
  background: var(--surface);
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}

.filter-btn:hover { color: var(--text); border-color: rgba(232,240,251,.3); }

.filter-btn.active {
  background: var(--active-bg, var(--orange));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.filter-btn[data-filter="todos"].active           { --active-bg: #F97316; }
.filter-btn[data-filter="festivos"].active        { --active-bg: #EF4444; }
.filter-btn[data-filter="romerias"].active        { --active-bg: #92400E; }
.filter-btn[data-filter="carnavales"].active      { --active-bg: #A855F7; }
.filter-btn[data-filter="conciertos"].active      { --active-bg: #0EA5E9; }
.filter-btn[data-filter="mercadillos"].active     { --active-bg: #22C55E; }
.filter-btn[data-filter="deportes"].active        { --active-bg: #F97316; }

/* ── Section spacing ─────────────────────────────────────── */
.section { padding: 4rem 0; }
.section:nth-child(even) { background: rgba(255,255,255,.02); }

/* ── Featured cards ──────────────────────────────────────── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feat-card {
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid rgba(232,240,251,.07);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  cursor: pointer;
}

.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(249,115,22,.3);
}

.feat-card__cta {
  font-size: .78rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: .02em;
  margin-top: .25rem;
  opacity: 0;
  transition: opacity .2s;
}
.feat-card:hover .feat-card__cta { opacity: 1; }

.feat-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  border-bottom: 1px solid rgba(232,240,251,.06);
}

.feat-card__emoji {
  font-size: 4rem;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.4));
}

.badge-soon {
  position: absolute;
  top: .75rem; right: .75rem;
  background: #22C55E;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: var(--r-badge);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.feat-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.feat-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

.feat-card__desc {
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feat-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  margin-top: .25rem;
}

.feat-card__isla  { color: var(--text-dim); }
.feat-card__date  {
  font-family: 'JetBrains Mono', monospace;
  color: var(--orange);
}

/* ── Category badge ──────────────────────────────────────── */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .65rem;
  border-radius: var(--r-badge);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  background: color-mix(in srgb, var(--bc) 18%, transparent);
  color: var(--bc);
  border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent);
  white-space: nowrap;
}

/* ── Event counter ───────────────────────────────────────── */
.ev-counter {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}

.ev-counter__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  color: var(--yellow);
}

.ev-counter__label {
  color: var(--text-dim);
  font-size: .9rem;
}

/* ── Events grid ─────────────────────────────────────────── */
.ev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  width: 100%;
  min-width: 0;
}

.ev-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid rgba(232,240,251,.06);
  display: flex;
  gap: 1rem;
  padding: 1rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: pointer;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.ev-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(249,115,22,.3);
}

.ev-card__cta {
  display: none;
  font-size: .72rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: .03em;
  margin-top: .1rem;
}

.ev-card:hover .ev-card__cta { display: block; }

.ev-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: .625rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid transparent;
}

.ev-card__body {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.ev-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev-card__desc {
  font-size: .8rem;
  color: var(--text-dim);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ev-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .25rem;
  font-size: .75rem;
  margin-top: auto;
}

.ev-card__isla { color: var(--text-dim); flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-card__date {
  font-family: 'JetBrains Mono', monospace;
  color: var(--orange);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Card animation ──────────────────────────────────────── */
.anim-entry {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .4s ease, transform .4s ease;
}
.anim-entry.visible { opacity: 1; transform: translateY(0); }

.no-results {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-dim);
  padding: 3rem;
  font-size: 1rem;
}

/* ── SEO text section ────────────────────────────────────── */
.seo-section {
  background: var(--surface);
  border-top: 1px solid rgba(232,240,251,.07);
  border-bottom: 1px solid rgba(232,240,251,.07);
}

.seo-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.seo-section p {
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  max-width: 900px;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.seo-link {
  background: rgba(249,115,22,.1);
  border: 1px solid rgba(249,115,22,.25);
  color: var(--orange);
  padding: .35rem .85rem;
  border-radius: var(--r-badge);
  font-size: .82rem;
  font-weight: 500;
  transition: background var(--transition);
  cursor: pointer;
}
.seo-link:hover { background: rgba(249,115,22,.2); }

/* ── Float button ────────────────────────────────────────── */
.float-btn {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r-badge);
  padding: .75rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(249,115,22,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  align-items: center;
  gap: .45rem;
}

.float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(249,115,22,.6);
}

/* ── Modal ───────────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

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

.modal {
  background: var(--surface);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 520px;
  max-height: 90svh;
  overflow-y: auto;
  border: 1px solid rgba(232,240,251,.1);
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  animation: modal-in .2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(.96) translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0;
}

.modal__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.modal__sub {
  color: var(--text-dim);
  font-size: .85rem;
  margin-top: .25rem;
}

.modal__close {
  background: rgba(232,240,251,.08);
  border: none;
  color: var(--text);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  flex-shrink: 0;
}
.modal__close:hover { background: rgba(232,240,251,.15); }

.modal__body { padding: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(232,240,251,.06);
  border: 1px solid rgba(232,240,251,.12);
  border-radius: .625rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  padding: .65rem .85rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--orange); }

.form-group textarea { resize: vertical; min-height: 90px; }

.form-group select option { background: #1A3050; color: var(--text); }

.form-submit {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: .75rem;
  padding: .85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: .5rem;
  transition: opacity var(--transition), transform var(--transition);
}

.form-submit:hover:not(:disabled) { opacity: .9; transform: translateY(-1px); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; }

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1A3050;
  border: 1px solid rgba(232,240,251,.12);
  color: var(--text);
  padding: .85rem 1.5rem;
  border-radius: var(--r-badge);
  font-size: .9rem;
  z-index: 999;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  white-space: nowrap;
  box-shadow: var(--shadow);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast--success { border-color: rgba(34,197,94,.4); }
.toast--error   { border-color: rgba(239,68,68,.4); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #070F1C;
  border-top: 1px solid rgba(232,240,251,.07);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: .875rem;
  margin-top: .75rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }

.footer-col ul a {
  color: var(--text-dim);
  font-size: .875rem;
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--orange); }

.footer-islands {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem;
}

.isla-chip {
  background: var(--surface);
  border: 1px solid rgba(232,240,251,.1);
  color: var(--text-dim);
  padding: .3rem .7rem;
  border-radius: var(--r-badge);
  font-size: .78rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.isla-chip:hover {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(232,240,251,.06);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-dim);
  font-size: .8rem;
}

.footer-seo {
  color: var(--text-dim);
  font-size: .75rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ── Event detail modal ──────────────────────────────────── */
.modal--detail {
  max-width: 560px;
  padding: 0;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  max-height: 90svh;
  -webkit-overflow-scrolling: touch;
}

.modal__close--abs {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  background: rgba(12,26,46,.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(232,240,251,.15);
  border-radius: 50%;
  width: 36px; height: 36px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal__close--abs:hover { background: rgba(249,115,22,.3); }

.evd-hero {
  padding: 1.75rem 1.75rem 1.25rem;
}

.evd-top-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.evd-emoji-wrap {
  width: 56px; height: 56px;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.evd-emoji { font-size: 2rem; line-height: 1; }

.evd-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.evd-badge-prox {
  background: rgba(34,197,94,.15);
  color: #22C55E;
  border: 1px solid rgba(34,197,94,.3);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: var(--r-badge);
  letter-spacing: .03em;
}

.evd-badge-past {
  background: rgba(232,240,251,.08);
  color: var(--text-dim);
  border: 1px solid rgba(232,240,251,.15);
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: var(--r-badge);
}

.evd-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .5rem;
}

.evd-isla-date {
  font-size: .85rem;
  color: var(--text-dim);
}

.evd-date-mono {
  font-family: 'JetBrains Mono', monospace;
  color: var(--orange);
}

.evd-body {
  padding: 1.5rem 1.75rem 2rem;
}

.evd-desc {
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.evd-info-grid {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1.75rem;
  background: rgba(232,240,251,.04);
  border: 1px solid rgba(232,240,251,.08);
  border-radius: .875rem;
  padding: 1.1rem 1.25rem;
}

.evd-info-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.evd-info-icon { font-size: 1.15rem; line-height: 1.5; flex-shrink: 0; }

.evd-info-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  margin-bottom: .15rem;
}

.evd-info-value {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.45;
}

.evd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.evd-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.2rem;
  border-radius: .75rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  flex-shrink: 0;
}

.evd-btn--map {
  background: rgba(14,165,233,.12);
  color: #0EA5E9;
  border: 1px solid rgba(14,165,233,.25);
}
.evd-btn--map:hover { background: rgba(14,165,233,.22); }

.evd-btn--web {
  background: rgba(232,240,251,.08);
  color: var(--text);
  border: 1px solid rgba(232,240,251,.15);
}
.evd-btn--web:hover { background: rgba(232,240,251,.14); }

/* Botones (no enlaces): sin el fondo blanco por defecto del navegador */
button.evd-btn { font-family: inherit; line-height: inherit; cursor: pointer; }
.evd-btn--cal,
.evd-btn--share {
  background: rgba(232,240,251,.08);
  color: var(--text);
  border: 1px solid rgba(232,240,251,.15);
}
.evd-btn--cal:hover,
.evd-btn--share:hover { background: rgba(232,240,251,.14); }
.evd-btn--cal:focus-visible,
.evd-btn--share:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.evd-btn--tickets {
  background: var(--orange);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.evd-btn--tickets:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(249,115,22,.5);
}

/* ── Comentarios y valoraciones (evd-comments) ───────────── */
.evd-comments {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232,240,251,.1);
}

.evd-comments__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .85rem;
}

.evd-comments__loading,
.evd-comments__empty,
.evd-comments__error {
  color: var(--text-dim);
  font-size: .85rem;
  padding: .5rem 0 1rem;
}

.evd-comments__error { color: #F87171; }

.evd-comments__avg {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.evd-comments__avg-stars svg { margin-right: 1px; }
.evd-comments__avg-num { font-weight: 700; font-size: .95rem; }
.evd-comments__avg-count { color: var(--text-dim); font-size: .82rem; }

.evd-comment-form {
  background: rgba(232,240,251,.04);
  border: 1px solid rgba(232,240,251,.08);
  border-radius: .875rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
}

.evd-comment-form__stars {
  display: flex;
  gap: .25rem;
  margin-bottom: .75rem;
}

.evd-star-btn {
  background: none;
  border: none;
  padding: .15rem;
  cursor: pointer;
  line-height: 0;
  transition: transform .15s;
}
.evd-star-btn:hover { transform: scale(1.15); }

.evd-comment-form__name,
.evd-comment-form__text {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(232,240,251,.15);
  border-radius: .6rem;
  color: var(--text);
  font: inherit;
  padding: .6rem .8rem;
  margin-bottom: .6rem;
  resize: vertical;
}
.evd-comment-form__name:focus,
.evd-comment-form__text:focus { outline: none; border-color: var(--orange); }
.evd-comment-form__name::placeholder,
.evd-comment-form__text::placeholder { color: var(--text-dim); }

.evd-comment-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.evd-comment-form__hint {
  color: #F87171;
  font-size: .78rem;
}

.evd-comments__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.evd-comment-item {
  background: rgba(232,240,251,.03);
  border: 1px solid rgba(232,240,251,.07);
  border-radius: .75rem;
  padding: .85rem 1rem;
}

.evd-comment-item__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .35rem;
}

.evd-comment-item__name { font-weight: 600; font-size: .85rem; }
.evd-comment-item__stars svg { margin-right: 1px; }

.evd-comment-item__text {
  color: var(--text-dim);
  font-size: .85rem;
  line-height: 1.55;
  margin-bottom: .35rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.evd-comment-item__time {
  color: var(--text-dim);
  opacity: .7;
  font-size: .72rem;
}

/* ── CTA hacia el artículo "Qué hacer este finde" ────────── */
.finde-cta-strip {
  padding: 0 0 1.5rem;
}
.finde-cta-link {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, rgba(249,115,22,.14), rgba(252,211,77,.08));
  border: 1px solid rgba(249,115,22,.3);
  border-radius: .875rem;
  padding: .85rem 1.25rem;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s;
}
.finde-cta-link:hover {
  background: linear-gradient(135deg, rgba(249,115,22,.22), rgba(252,211,77,.14));
  border-color: rgba(249,115,22,.5);
}

/* ── Artículo "Qué hacer este finde" ─────────────────────── */
#eventos-finde .ev-header { text-align: center; justify-content: center; }
#eventos-finde .section-title { width: 100%; }

.finde-intro {
  color: var(--text-dim);
  font-size: .95rem;
  line-height: 1.7;
  max-width: 62ch;
  text-align: center;
  margin: 0 auto 2rem;
}

#findeGrid .no-results { text-align: center; margin: 0 auto; max-width: 50ch; }

.finde-day-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(232,240,251,.1);
}
.finde-day-heading:first-child { margin-top: 0; }

/* ── Event grid header + tabs ────────────────────────────── */
.ev-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.ev-tabs {
  display: flex;
  gap: .35rem;
  background: var(--surface);
  padding: .3rem;
  border-radius: 12px;
  border: 1px solid rgba(232,240,251,.08);
}

.ev-tab {
  padding: .45rem 1rem;
  border-radius: 9px;
  border: none;
  background: none;
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; gap: .4rem;
  white-space: nowrap;
}
.ev-tab:hover { color: var(--text); }
.ev-tab.active {
  background: rgba(249,115,22,.15);
  color: var(--orange);
  font-weight: 600;
}
.tab-fav-badge {
  background: #EC4899;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ── Favourite button (on cards) ─────────────────────────── */
.fav-btn {
  position: absolute;
  top: .6rem; right: .6rem;
  background: rgba(12,26,46,.65);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(232,240,251,.15);
  color: var(--text-dim);
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 2;
}
.fav-btn:hover { color: #EC4899; border-color: rgba(236,72,153,.4); background: rgba(236,72,153,.12); }
.fav-btn.active { color: #EC4899; border-color: rgba(236,72,153,.5); background: rgba(236,72,153,.15); }

.feat-card__visual { position: relative; }

.fav-btn--card {
  position: absolute;
  top: .5rem; right: .5rem;
  background: rgba(12,26,46,.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(232,240,251,.12);
  color: var(--text-dim);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
  z-index: 2;
  opacity: 0;
}
.ev-card { position: relative; }
.ev-card:hover .fav-btn--card { opacity: 1; }
.fav-btn--card.active { opacity: 1; color: #EC4899; border-color: rgba(236,72,153,.45); }
.fav-btn--card:hover { color: #EC4899; border-color: rgba(236,72,153,.4); }

/* ── Fav button in detail modal ──────────────────────────── */
.evd-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: var(--r-badge);
  border: 1px solid rgba(232,240,251,.15);
  background: rgba(232,240,251,.07);
  color: var(--text-dim);
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition: all .2s;
}
.evd-fav-btn:hover { color: #EC4899; border-color: rgba(236,72,153,.4); background: rgba(236,72,153,.1); }
.evd-fav-btn.active { color: #EC4899; border-color: rgba(236,72,153,.45); background: rgba(236,72,153,.12); }

/* ── Newsletter section ──────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, rgba(249,115,22,.12) 0%, rgba(14,165,233,.08) 100%);
  border-top: 1px solid rgba(249,115,22,.2);
  border-bottom: 1px solid rgba(249,115,22,.15);
  padding: 3rem 0;
}

.nl-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.nl-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  min-width: 240px;
}

.nl-icon { font-size: 2.5rem; flex-shrink: 0; }

.nl-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: .25rem;
}

.nl-sub {
  color: var(--text-dim);
  font-size: .875rem;
}

.nl-form {
  display: flex;
  gap: .5rem;
  flex: 1;
  min-width: 280px;
  max-width: 440px;
}

.nl-input {
  flex: 1;
  background: rgba(232,240,251,.08);
  border: 1px solid rgba(232,240,251,.18);
  border-radius: var(--r-badge);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  padding: .7rem 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.nl-input:focus { border-color: var(--orange); }
.nl-input::placeholder { color: var(--text-dim); }

.nl-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--r-badge);
  padding: .7rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.nl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(249,115,22,.5); }

/* ── PWA install banner ──────────────────────────────────── */
.pwa-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  width: calc(100% - 2rem);
  max-width: 480px;
  animation: pwa-slide-up .4s ease;
}

@keyframes pwa-slide-up {
  from { opacity:0; transform: translateX(-50%) translateY(20px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

.pwa-banner__inner {
  background: var(--surface);
  border: 1px solid rgba(249,115,22,.3);
  border-radius: 1rem;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.pwa-banner__title {
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
}

.pwa-banner__sub {
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: .1rem;
}

.pwa-install-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: .625rem;
  padding: .5rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity var(--transition);
}
.pwa-install-btn:hover { opacity: .9; }

.pwa-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: .9rem;
  padding: .25rem;
  flex-shrink: 0;
  transition: color var(--transition);
}
.pwa-dismiss-btn:hover { color: var(--text); }

/* ── Event detail modal fav btn top row tweak ────────────── */
.evd-top-row {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .nl-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .nl-form { max-width: 100%; min-width: 0; width: 100%; }
}

/* ── Tablet (max 768px) ──────────────────────────────────── */
@media (max-width: 768px) {
  .ev-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
}

/* ── Mobile (max 640px) ──────────────────────────────────── */
@media (max-width: 640px) {

  :root { --header-h: 56px; }

  /* Header */
  .header-inner {
    height: 56px;
    gap: .75rem;
  }

  .logo {
    font-size: 1.05rem;
  }

  .logo__icon {
    width: 28px;
    height: 28px;
  }

  .menu-toggle { display: flex; }

  .main-nav a { padding: .75rem 1rem; border-radius: 8px; font-size: .95rem; }

  .island-select { display: none; }

  .header-fav-btn {
    display: flex;
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 4rem;
  }

  .hero__content {
    padding-top: 2.5rem;
  }

  .hero__badge {
    font-size: .75rem;
    padding: .28rem .7rem;
    margin-bottom: 1rem;
  }

  .hero__h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .hero__sub {
    font-size: .9rem;
    margin-bottom: 1.75rem;
  }

  .hero__stats {
    gap: 1.25rem;
    flex-wrap: nowrap;
  }

  .stat__num {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .stat__label {
    font-size: .7rem;
  }

  /* Filters */
  .filters-section {
    top: 56px;
    padding: .85rem 0 .35rem;
  }

  .filters-top-row {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    margin-bottom: .65rem;
  }

  .search-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .search-input {
    font-size: .875rem;
    padding: .6rem 2.4rem .6rem 2.2rem;
  }

  .date-filters {
    gap: .3rem;
    padding-bottom: .25rem;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .date-btn {
    padding: .38rem .65rem;
    font-size: .72rem;
    flex-shrink: 0;
  }

  .filters-scroll {
    gap: .4rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .35rem;
  }

  .filter-btn {
    padding: .45rem .85rem;
    font-size: .78rem;
    gap: .3rem;
    flex-shrink: 0;
  }

  /* Events grid */
  .ev-grid { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }

  .ev-header {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1.25rem;
  }

  .ev-tabs {
    align-self: flex-start;
    width: 100%;
  }

  .ev-tab {
    flex: 1;
    justify-content: center;
    font-size: .8rem;
    padding: .4rem .75rem;
  }

  /* Event cards — better mobile layout */
  .ev-card {
    padding: .85rem;
    gap: .85rem;
  }

  .ev-card__thumb {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
    border-radius: .5rem;
  }

  .ev-card__name {
    font-size: .95rem;
  }

  /* Featured cards */
  .feat-card__visual { height: 120px; }
  .feat-card__emoji { font-size: 3.25rem; }
  .feat-card__body { padding: 1rem; gap: .5rem; }
  .feat-card__name { font-size: 1.05rem; }

  /* Newsletter */
  .newsletter-section { padding: 2.25rem 0; }

  .nl-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .nl-left {
    gap: .85rem;
    min-width: 0;
  }

  .nl-icon { font-size: 2rem; }

  .nl-title {
    font-size: 1.1rem;
  }

  .nl-form {
    flex-direction: column;
    gap: .5rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .nl-input {
    width: 100%;
    font-size: .9rem;
    padding: .75rem 1rem;
  }

  .nl-btn {
    width: 100%;
    padding: .75rem 1rem;
    font-size: .9rem;
  }

  /* Sections */
  .section { padding: 2.5rem 0; }

  .section-title { font-size: clamp(1.4rem, 5vw, 1.9rem); }

  /* Modal */
  .modal {
    max-width: 100%;
    border-radius: 1rem 1rem 0 0;
    max-height: 92svh;
    margin-top: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-backdrop {
    align-items: flex-end;
    padding: 0;
    /* Evitar que el backdrop en sí haga scroll */
    overflow: hidden;
  }

  .modal__header { padding: 1.25rem 1.25rem 0; }
  .modal__body { padding: 1.25rem; }

  .modal--detail {
    border-radius: 1rem 1rem 0 0;
    max-height: 92svh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .evd-hero { padding: 1.25rem 1.25rem 1rem; }
  .evd-body { padding: 1.25rem 1.25rem 1.75rem; }

  .evd-title { font-size: 1.25rem; }

  .evd-actions { gap: .5rem; }
  .evd-btn {
    padding: .55rem .9rem;
    font-size: .8rem;
  }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero__stats { gap: 1.5rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .site-footer { padding: 2.5rem 0 1.75rem; margin-top: 2.5rem; }

  /* Float btn — lift above PWA banner */
  .float-btn {
    bottom: 1.25rem;
    right: 1rem;
    padding: .65rem 1.15rem;
    font-size: .85rem;
    gap: .35rem;
  }

  /* PWA banner */
  .pwa-banner {
    bottom: .75rem;
    width: calc(100% - 1.5rem);
  }

  /* Toast */
  .toast {
    bottom: 4.5rem;
    font-size: .82rem;
    padding: .75rem 1.25rem;
    max-width: calc(100vw - 2rem);
    white-space: normal;
    text-align: center;
  }

  /* SEO section */
  .seo-section { padding: 2rem 0; }
  .seo-section h2 { font-size: 1.3rem; }
  .seo-section p { font-size: .875rem; }
  .seo-links { gap: .4rem; }
  .seo-link { font-size: .78rem; padding: .3rem .7rem; }

  /* Map */
  .evd-leaflet-map { height: 180px; }
}

/* ============================================================
   LEAFLET MAP — modal integrado
   ============================================================ */

.evd-map-wrap {
  margin: 1.5rem 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 4px 24px rgba(0,0,0,.4);
}

.evd-leaflet-map {
  height: 220px;
  width: 100%;
  background: #0C1A2E;
  z-index: 1;
}

/* Override Leaflet dark theme */
.evd-leaflet-map .leaflet-popup-content-wrapper {
  background: #1a2a3e;
  color: #e2e8f0;
  border: 1px solid rgba(249,115,22,.3);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: .85rem;
}
.evd-leaflet-map .leaflet-popup-tip { background: #1a2a3e; }
.evd-leaflet-map .leaflet-control-zoom a {
  background: #1a2a3e;
  color: #e2e8f0;
  border-color: rgba(255,255,255,.1);
}
.evd-leaflet-map .leaflet-control-zoom a:hover { background: #243348; }
.leaflet-attribution-flag { display: none !important; }





















#evDetailContent { position: relative; }


/* ── Prevenir desbordamiento horizontal en móvil ─────────── */
@media (max-width: 640px) {
  html, body {
    overflow-x: hidden;
  }

  /* Filtros: scroll horizontal interno con padding lateral */
  .filters-section .container {
    padding-inline: 0;
  }

  .filters-top-row {
    padding-inline: clamp(1rem, 5vw, 1.25rem);
  }

  .date-filters {
    padding-inline: clamp(1rem, 5vw, 1.25rem);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
  }

  .filters-scroll {
    padding-inline: clamp(1rem, 5vw, 1.25rem);
    -webkit-mask-image: linear-gradient(to right, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, black 90%, transparent 100%);
  }

  /* Float btn: sube para no tapar el contenido */
  .float-btn {
    bottom: 5rem;
    right: 1rem;
    padding: .6rem 1rem;
    font-size: .82rem;
    gap: .3rem;
  }

  /* Newsletter: espacio para que el float-btn no tape el botón */
  .newsletter-section {
    padding-bottom: 4.5rem;
  }
}

/* ── Cambios v2 ─────────────────────────────────────────── */

/* Hero más compacto en móvil */
@media (max-width: 640px) {
  .hero {
    padding-top: calc(var(--header-h) + 1rem);
    padding-bottom: 1rem;
  }
  .hero__sub {
    display: none;
  }
  .hero__stats {
    margin-bottom: .5rem;
  }
  .hero__content {
    padding-bottom: .5rem;
  }
}

/* Chips de isla — fila scrollable */
.island-chips-row {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .6rem 0 .4rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.island-chips-row::-webkit-scrollbar { display: none; }
.island-chip {
  background: rgba(232,240,251,.06);
  border: 1px solid rgba(232,240,251,.12);
  color: rgba(232,240,251,.5);
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  flex-shrink: 0;
}
.island-chip:hover,
.island-chip.active {
  background: rgba(249,115,22,.15);
  border-color: rgba(249,115,22,.4);
  color: #F97316;
}

/* Botón WhatsApp en tarjetas */
.wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.28);
  color: #22c55e;
  font-size: .72rem;
  font-family: 'DM Sans', sans-serif;
  padding: .28rem .72rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s;
  margin-top: .4rem;
}
.wa-btn:hover {
  background: rgba(37,211,102,.2);
  color: #22c55e;
}

/* ============================================================
   SKELETON SCREENS — carga percibida instantánea
   ============================================================ */

@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    rgba(232,240,251,.06) 25%,
    rgba(232,240,251,.13) 50%,
    rgba(232,240,251,.06) 75%
  );
  background-size: 600px 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-feat-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid rgba(232,240,251,.07);
  overflow: hidden;
}
.skeleton-feat-card .sk-visual {
  height: 140px;
}
.skeleton-feat-card .sk-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.skeleton-feat-card .sk-title  { height: 20px; width: 75%; }
.skeleton-feat-card .sk-desc1  { height: 13px; width: 100%; }
.skeleton-feat-card .sk-desc2  { height: 13px; width: 60%; }
.skeleton-feat-card .sk-meta   { height: 12px; width: 45%; margin-top: .25rem; }

.skeleton-ev-card {
  background: var(--surface);
  border-radius: var(--r-card);
  border: 1px solid rgba(232,240,251,.06);
  display: flex;
  gap: 1rem;
  padding: 1rem;
}
.skeleton-ev-card .sk-thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: .625rem; }
.skeleton-ev-card .sk-body  { flex: 1; display: flex; flex-direction: column; gap: .5rem; justify-content: center; }
.skeleton-ev-card .sk-name  { height: 17px; width: 70%; }
.skeleton-ev-card .sk-desc  { height: 13px; width: 90%; }
.skeleton-ev-card .sk-foot  { height: 12px; width: 45%; }

/* ============================================================
   HERO PRÓXIMOS EVENTOS — strip urgente
   ============================================================ */

.hero__upcoming {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.hero__upcoming-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: .2rem;
}

.hero-ev-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(232,240,251,.06);
  border: 1px solid rgba(232,240,251,.1);
  border-radius: .75rem;
  padding: .55rem .9rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-align: left;
  max-width: 460px;
}
.hero-ev-pill:hover {
  background: rgba(249,115,22,.1);
  border-color: rgba(249,115,22,.35);
  transform: translateX(3px);
}
.hero-ev-pill__emoji { font-size: 1.3rem; flex-shrink: 0; }
.hero-ev-pill__info  { flex: 1; min-width: 0; }
.hero-ev-pill__name  { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-ev-pill__when  { font-size: .75rem; color: var(--text-dim); margin-top: .1rem; }
.hero-ev-pill__date  { font-family: 'JetBrains Mono', monospace; color: var(--orange); font-size: .72rem; flex-shrink: 0; }
.hero-ev-pill__arrow { color: var(--text-dim); font-size: .85rem; flex-shrink: 0; }

@media (max-width: 640px) {
  .hero__upcoming { margin-top: 1.25rem; }
  .hero-ev-pill   { max-width: 100%; }
}

/* ============================================================
   PUSH NOTIFICATION PROMPT — banner elegante
   ============================================================ */

.push-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 310;
  width: calc(100% - 2rem);
  max-width: 480px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  pointer-events: none;
}
.push-banner.show {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.push-banner__inner {
  background: var(--surface);
  border: 1px solid rgba(14,165,233,.3);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(14,165,233,.1);
}

.push-banner__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  line-height: 1;
}
.push-banner__text { flex: 1; min-width: 0; }
.push-banner__title { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.push-banner__sub { font-size: .75rem; color: var(--text-dim); margin-top: .15rem; }

.push-banner__btns { display: flex; gap: .5rem; flex-shrink: 0; }

.push-yes {
  background: #0EA5E9;
  color: #fff;
  border: none;
  border-radius: .625rem;
  padding: .45rem .85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s;
}
.push-yes:hover { opacity: .88; }

.push-no {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: .85rem;
  padding: .25rem;
  transition: color .2s;
}
.push-no:hover { color: var(--text); }

/* ============================================================
   NAVEGACIÓN RÁPIDA ENTRE ISLAS — home + páginas de isla
   ============================================================ */
.islands-nav {
  padding: 1.15rem 0;
  border-top: 1px solid rgba(232,240,251,.06);
  border-bottom: 1px solid rgba(232,240,251,.06);
}
.islands-nav__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-bottom: .7rem;
}
.islands-nav__row {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: .3rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.islands-nav__row::-webkit-scrollbar { display: none; }

.isla-nav-card {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid rgba(232,240,251,.1);
  border-radius: .9rem;
  padding: .6rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.isla-nav-card:hover {
  border-color: rgba(249,115,22,.4);
  background: var(--surface2);
  transform: translateY(-2px);
}
.isla-nav-card__emoji { font-size: 1.15rem; line-height: 1; }

@media (max-width: 640px) {
  .islands-nav { padding: .9rem 0; }
  .isla-nav-card { padding: .55rem .9rem; font-size: .84rem; }
}

/* ============================================================
   ISLA PAGES — páginas por isla (SEO)
   ============================================================ */

.isla-page-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  background: var(--bg);
}
.isla-page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: .75rem;
}
.isla-page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.isla-page-hero p {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 1.5rem;
}
.isla-back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-dim);
  font-size: .85rem;
  transition: color .2s;
  margin-bottom: 1.5rem;
}
.isla-back-link:hover { color: var(--orange); }


/* ============================================================
   UPGRADE VISUAL — Glow / Glass / Microinteracciones
   (estilo componentes modernos: glassmorphism, glow borders,
   texto degradado animado, tilt 3D en tarjetas)
   ============================================================ */

/* ── Texto de titular con degradado animado ─────────────────── */
.hero__h1 em,
.isla-page-hero h1 em,
.rom-hero h1 em {
  background: linear-gradient(110deg, var(--orange) 0%, var(--yellow) 35%, #22D3EE 65%, var(--orange) 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ch-gradient-flow 7s ease-in-out infinite;
}
@keyframes ch-gradient-flow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Badge con leve resplandor ────────────────────────────────── */
.hero__badge,
.rom-hero__badge {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 22px rgba(249,115,22,.22);
}

/* ── Barra de filtros como "dock" flotante de cristal ───────────── */
.filters-top-row {
  background: rgba(26,48,80,.5);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(232,240,251,.08);
  border-radius: 1.25rem;
  padding: .85rem 1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.search-input,
.date-btn,
.filter-btn {
  background: rgba(255,255,255,.045);
}
.filters-section {
  background: rgba(12,26,46,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ── Chips de isla — brillo al activarse ──────────────────────── */
.island-chip.active {
  box-shadow: 0 0 16px rgba(249,115,22,.5);
}

/* ── Botones CTA con barrido de luz al pasar el ratón ───────────── */
.float-btn,
.nl-btn,
.form-submit {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.float-btn::before,
.nl-btn::before,
.form-submit::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(255,255,255,.55) 12%, transparent 24%);
  animation: ch-glow-spin 2.6s linear infinite;
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
}
.float-btn:hover::before,
.nl-btn:hover::before,
.form-submit:hover::before { opacity: .7; }
@keyframes ch-glow-spin { to { transform: rotate(360deg); } }

/* ── Tarjetas: cristal + borde con brillo que sigue al cursor ───── */
.feat-card,
.ev-card,
.rom-card {
  position: relative;
  background: rgba(26,48,80,.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  transform: translateY(0) perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .18s ease-out, box-shadow .25s ease, border-color .25s ease;
}
.feat-card::after,
.ev-card::after,
.rom-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(280px circle at var(--mx) var(--my), rgba(249,115,22,.95), transparent 62%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.feat-card:hover::after,
.ev-card:hover::after,
.rom-card:hover::after { opacity: 1; }
.feat-card:hover,
.ev-card:hover,
.rom-card:hover {
  transform: translateY(-4px) perspective(700px) rotateX(var(--rx)) rotateY(var(--ry));
}

/* ── Movimiento continuo: se respeta prefers-reduced-motion ─────── */
@media (prefers-reduced-motion: reduce) {
  .hero__h1 em,
  .isla-page-hero h1 em,
  .rom-hero h1 em { animation: none; }
  .float-btn::before,
  .nl-btn::before,
  .form-submit::before { animation: none; }
  .hero__scroll-hint svg { animation: none; }
}

/* ============================================================
   FOTOS DE AMBIENTE POR CATEGORÍA — tarjetas destacadas
   (generadas a medida con IA; el emoji queda como sello encima)
   ============================================================ */
.feat-card__visual {
  background-size: cover;
  background-position: center;
  position: relative;
}
.feat-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,26,46,.15) 0%, rgba(12,26,46,.75) 100%);
}
.feat-card__emoji {
  position: relative;
  z-index: 1;
  background: rgba(12,26,46,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 999px;
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem !important;
}
.badge-soon { z-index: 2; }
.fav-btn { z-index: 2; }

article.feat-card[data-cat="festivos"]    .feat-card__visual { background-image: url('assets/img/card-festivos.webp'); }
article.feat-card[data-cat="romerias"]    .feat-card__visual { background-image: url('assets/img/card-romerias.webp'); }
article.feat-card[data-cat="carnavales"]  .feat-card__visual { background-image: url('assets/img/card-carnavales.webp'); }
article.feat-card[data-cat="conciertos"]  .feat-card__visual { background-image: url('assets/img/card-conciertos.webp'); }
article.feat-card[data-cat="mercadillos"] .feat-card__visual { background-image: url('assets/img/card-mercadillos.webp'); }
article.feat-card[data-cat="deportes"]    .feat-card__visual { background-image: url('assets/img/card-deportes.webp'); }
article.feat-card[data-cat="orgullo"]     .feat-card__visual { background-image: url('assets/img/card-orgullo.webp'); }


/* === Chiquito Plan — enlaces a las fichas de evento === */

/* Cada evento tiene ahora su propia página en /evento/<slug>.html.
   El "Ver ficha completa →" de la tarjeta es el camino hasta ella, así
   que no puede seguir escondido detrás de un :hover: en el móvil no
   hay hover y el enlace era invisible. */
.ev-card__cta,
.feat-card__cta {
  display: block;
  opacity: 1;
  text-decoration: none;
}
.ev-card:hover .ev-card__cta,
.feat-card:hover .feat-card__cta {
  display: block;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* El título de la tarjeta también enlaza a la ficha, pero debe seguir
   leyéndose como un título, no como un enlace suelto. */
.ev-card__name a,
.feat-card__name a {
  color: inherit;
  text-decoration: none;
}
.ev-card__name a:hover,
.feat-card__name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ev-card__name a:focus-visible,
.feat-card__name a:focus-visible,
.ev-card__cta:focus-visible,
.feat-card__cta:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Listado de eventos relacionados de las fichas */
.ev-rel-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ev-rel-list a { color: var(--orange); text-decoration: none; }
.ev-rel-list a:hover { text-decoration: underline; text-underline-offset: 3px; }


/* ============================================================
   FASE 3 · noviembre 2026
   Mejoras de móvil, accesibilidad y estilos de las páginas
   generadas por build.js (fichas, guías, legales, cookies).
   ============================================================ */

/* ── Hero: fecha y nombre ya no se pisan ─────────────────── */
.hero-ev-pill__name,
.hero-ev-pill__when { display: block; }
.hero-ev-pill__name { font-size: .95rem; }
.hero-ev-pill__when { font-size: .82rem; }
.hero-ev-pill__date { font-size: .8rem; white-space: nowrap; }
.hero__upcoming-label { font-size: .8rem; }

/* ── Tamaños de letra mínimos (público de 45-64 años) ────── */
.cat-badge, .badge-soon, .ev-card__footer, .feat-card__meta,
.wa-btn, .isla-chip, .islands-nav__label, .evd-info-label,
.evd-badge-prox, .evd-badge-past, .evd-comment-item__time,
.evd-comment-form__hint, .pwa-banner__sub { font-size: .82rem; }
.ev-card__cta, .feat-card__cta { font-size: .88rem; }

/* ── Botón "Ver más eventos" del listado ─────────────────── */
.ev-more-btn {
  display: block;
  margin: 1.75rem auto 0;
  min-height: 48px;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(249,115,22,.5);
  background: rgba(249,115,22,.12);
  color: var(--text);
  font: 600 .95rem 'DM Sans', sans-serif;
  cursor: pointer;
}
.ev-more-btn:hover { background: rgba(249,115,22,.22); }

/* ── Móvil ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Hero compacto: los eventos aparecen antes */
  .hero { min-height: auto; padding-top: calc(var(--header-h, 64px) + 1.5rem); padding-bottom: 2.5rem; }
  .hero__badge { margin-bottom: .9rem; animation: none; }
  .hero__h1 { font-size: clamp(1.9rem, 8.4vw, 2.5rem); margin-bottom: .8rem; }
  .hero__sub { margin-bottom: 1.1rem; font-size: 1rem; }
  .hero__stats { gap: 1.5rem; }
  .stat__num { font-size: 1.6rem; }
  .stat__label { font-size: .78rem; }
  .hero__wave { height: 40px; }

  /* Zonas táctiles de al menos 44 px */
  .date-btn, .filter-btn, .island-chip, .isla-chip, .seo-link,
  .ev-tab, .wa-btn, .hero__cta-secondary, .finde-cta-link,
  .footer-legal a, .footer-legal__btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .date-btn, .filter-btn, .island-chip { font-size: .88rem; padding-left: 1rem; padding-right: 1rem; }
  .seo-link { font-size: .9rem; padding: .5rem .9rem; }
  .fav-btn, .fav-btn--card { width: 44px; height: 44px; }
  .menu-toggle { min-width: 44px; min-height: 44px; }
  .ev-card__cta, .feat-card__cta { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-ev-pill { min-height: 56px; }

  /* Menos cosas antes del primer evento */
  .hero__stats, .hero__cta-secondary { display: none; }
  button.hero-ev-pill:nth-of-type(n+3) { display: none; }
  .hero__upcoming { margin-top: .5rem; }
  .hero__cta-row { margin-top: 1rem; }
}

/* En pantallas táctiles no hay "hover": el enlace a la ficha se ve siempre */
@media (hover: none) {
  .ev-card__cta { display: inline-flex; }
  .fav-btn--card { opacity: 1; }
}

/* ── Pie: enlaces legales ────────────────────────────────── */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem 1.25rem;
  padding: 1.25rem 0 .5rem;
  font-size: .88rem;
}
.footer-legal a, .footer-legal__btn {
  color: var(--text-dim);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.footer-legal a:hover, .footer-legal__btn:hover { color: var(--orange); }

/* ── Aviso de cookies ────────────────────────────────────── */
.consent {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 400;
  width: calc(100% - 2rem);
  max-width: 560px;
  background: #13243d;
  border: 1px solid rgba(232,240,251,.18);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
}
.consent__text { flex: 1 1 260px; font-size: .9rem; line-height: 1.5; margin: 0; }
.consent__text a { color: var(--orange); }
.consent__btns { display: flex; gap: .5rem; flex: 0 0 auto; }
.consent__btn {
  min-height: 44px;
  padding: .55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--orange);
  background: var(--orange);
  color: #0C1A2E;
  font: 600 .92rem 'DM Sans', sans-serif;
  cursor: pointer;
}
.consent__btn--ghost { background: transparent; color: var(--text); border-color: rgba(232,240,251,.35); }

/* ── Fichas de evento y páginas de contenido ─────────────── */
.ev-detail { max-width: 760px; margin: 0 auto; padding: calc(var(--header-h, 64px) + 2.25rem) clamp(1rem, 5vw, 2rem) 2.5rem; }
.ev-detail__crumbs { font-size: .88rem; color: var(--text-dim); margin-bottom: 1.25rem; }
.ev-detail__crumbs a { color: var(--orange); }
.ev-detail h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.15; margin: .4rem 0 .6rem; }
.ev-detail__when { color: var(--yellow); font-weight: 600; margin: 0 0 1rem; }
.ev-detail__lead { font-size: 1.08rem; line-height: 1.65; }
.ev-detail__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1rem; margin: 1.5rem 0 .5rem; background: var(--surface); }
.ev-detail h2 { font-size: 1.4rem; margin: 2.25rem 0 .75rem; }
.ev-detail h3 { font-size: 1.15rem; margin: 1.75rem 0 .5rem; }
.ev-detail p, .ev-detail li { line-height: 1.7; }
.ev-detail p { margin: 0 0 1rem; }
.ev-detail a { color: var(--orange); }
.ev-facts { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.ev-facts th, .ev-facts td { text-align: left; padding: .75rem .25rem; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.ev-facts th { width: 34%; font-weight: 600; color: var(--text-dim); font-size: .92rem; }
.ev-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 1rem; }
.ev-detail .ev-actions a { display: inline-flex; align-items: center; min-height: 44px; padding: .6rem 1.1rem; border-radius: 999px; background: var(--orange); color: #0C1A2E; font-weight: 600; text-decoration: none; font-size: .95rem; }
.ev-detail .ev-actions a.ghost { background: transparent; border: 1px solid rgba(255,255,255,.28); color: var(--text); }
.ev-tips { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .4rem; }
.ev-note { font-size: .92rem; color: var(--text-dim); }
.ev-faq details { border-bottom: 1px solid rgba(255,255,255,.12); padding: .2rem 0; }
.ev-faq summary { cursor: pointer; font-weight: 600; padding: .7rem 0; min-height: 44px; }
.ev-faq details p { margin: 0 0 .9rem; }
.ev-more-links { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 2rem; font-weight: 600; }
.ev-past { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); border-radius: 12px; padding: .85rem 1.1rem; margin-bottom: 1.5rem; font-size: .95rem; }
.ev-rel { padding: 2rem clamp(1rem, 5vw, 2.5rem); }
.ev-rel a { color: var(--orange); }
.ev-rel-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .55rem; }
.ev-rel-date { color: var(--text-dim); font-size: .9rem; }
.ev-rel-list--cards { gap: .6rem; }
.ev-rel-list--cards li { display: flex; flex-direction: column; gap: .15rem; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; background: rgba(255,255,255,.03); }
.ev-empty { color: var(--text-dim); font-style: italic; }

.page-content h2 { font-family: 'Playfair Display', serif; }
.page-byline { color: var(--text-dim); font-size: .92rem; margin-bottom: 1.5rem; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.page-content th, .page-content td { text-align: left; padding: .6rem .4rem; border-bottom: 1px solid rgba(255,255,255,.12); vertical-align: top; }
.page-content ul, .page-content ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.page-content .callout { border-left: 3px solid var(--orange); background: rgba(249,115,22,.08); padding: .9rem 1.1rem; border-radius: 0 .75rem .75rem 0; margin: 1.5rem 0; }
.page-content .placeholder { background: rgba(252,211,77,.18); color: var(--yellow); padding: 0 .3rem; border-radius: .25rem; }
.guias-list { list-style: none; padding: 0 !important; display: grid; gap: .8rem; }
.guias-list li { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.1); border-radius: .9rem; background: rgba(255,255,255,.03); }
.guias-list span { color: var(--text-dim); font-size: .95rem; }

/* ── Páginas de isla: fiestas por municipio ──────────────── */
.mun-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem 2rem; margin-top: 1.5rem; }
.mun-block h3 { font-size: 1.05rem; margin: 0 0 .4rem; }
.mun-block ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.mun-block li { font-size: .93rem; line-height: 1.4; }
.mun-block li a { color: var(--text); text-decoration: none; border-bottom: 1px solid rgba(232,240,251,.2); }
.mun-block li.is-next a { color: var(--orange); border-color: rgba(249,115,22,.4); }
.mun-block li span { color: var(--text-dim); font-size: .85rem; white-space: nowrap; }

.hoy-fecha { font-size: 1.05rem; }
.hoy-finde-link { margin-top: 1.5rem; font-weight: 600; }
.hoy-finde-link a { color: var(--orange); }


/* ============================================================
   FASE 4 · Guías: calendarios y tarjetas
   ============================================================ */
.cal { margin: 1rem 0 2rem; }
.cal__mes { font-size: 1.1rem; margin: 1.6rem 0 .5rem; padding-bottom: .35rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.cal__list { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: .45rem; }
.cal__list li { line-height: 1.45; }
.cal__fecha { display: inline-block; min-width: 6.5rem; font-family: 'JetBrains Mono', monospace; font-size: .85rem; color: var(--text-dim); }
.cal__list li.is-next .cal__fecha { color: var(--yellow); }
.cal__lugar { color: var(--text-dim); font-size: .88rem; }
.cal__prox { display: inline-block; font-size: .75rem; font-weight: 700; color: #0C1A2E; background: var(--yellow); border-radius: 999px; padding: .05rem .5rem; margin-left: .25rem; vertical-align: middle; }

.guia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .9rem; margin-top: 1rem; }
.guia-card { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem; border: 1px solid rgba(249,115,22,.3); border-radius: .9rem; background: rgba(249,115,22,.06); color: var(--text); text-decoration: none; min-height: 44px; }
.guia-card strong { color: var(--orange); font-size: 1rem; line-height: 1.3; }
.guia-card span { color: var(--text-dim); font-size: .9rem; line-height: 1.45; }
.guia-card:hover { background: rgba(249,115,22,.12); }
.guias-mini { display: grid; gap: .4rem; }
.ev-guia { margin-top: 1.5rem; padding: .8rem 1rem; border-radius: .75rem; background: rgba(249,115,22,.08); border: 1px solid rgba(249,115,22,.3); font-weight: 600; }
.page-content--art .ev-detail__lead { font-size: 1.12rem; }
.page-content--art h2 { margin-top: 2.5rem; }

/* Fechas previstas (calculadas a partir de la edición anterior) */
.ev-prev { background: rgba(252,211,77,.1); border: 1px solid rgba(252,211,77,.4); border-radius: 12px; padding: .85rem 1.1rem; margin-bottom: 1.5rem; font-size: .95rem; }
.cal__prev { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--yellow); border: 1px solid rgba(252,211,77,.5); border-radius: 999px; padding: .02rem .5rem; margin-left: .25rem; vertical-align: middle; }

/* ============================================================
   IDIOMAS — páginas /en/, /de/, /fr/, /it/ y selector de idioma
   ============================================================ */
.nav-langs { display: flex; align-items: center; gap: .05rem; margin-left: .4rem; font-size: .85rem; color: var(--text-dim); }
.main-nav .nav-langs a, .nav-langs .is-current { padding: .35rem .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; border-radius: 6px; }
.nav-langs .is-current { color: var(--orange); }
@media (max-width: 640px) {
  .nav-langs { margin: .4rem 0 0; padding: .6rem .85rem 0; border-top: 1px solid rgba(232,240,251,.08); flex-wrap: wrap; }
  .main-nav .nav-langs a, .nav-langs .is-current { padding: .5rem .55rem; font-size: .9rem; }
}
.footer-langs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; padding: .25rem 0 .5rem; font-size: .88rem; color: var(--text-dim); }
.footer-langs a { color: var(--text-dim); }
.footer-langs a:hover { color: var(--orange); }
.footer-langs .is-current { color: var(--text); font-weight: 600; }

.lx-hero { padding-bottom: 1.5rem; }
.lx-hero p { max-width: 680px; }
.lx-aviso { font-size: .92rem; background: rgba(14,165,233,.08); border: 1px solid rgba(14,165,233,.3); border-radius: 12px; padding: .75rem 1rem; }
.isla-page-hero .lx-aviso { color: var(--text); }
.lx-jump { display: flex; flex-wrap: wrap; gap: .5rem; }
.lx-jump a { padding: .5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid rgba(232,240,251,.12); font-size: .9rem; font-weight: 600; color: var(--text); transition: border-color var(--transition); }
.lx-jump a:hover { border-color: rgba(249,115,22,.5); }
.lx-sec { padding: 2.25rem 0; scroll-margin-top: var(--header-h); }
.lx-sec .section-title { font-size: clamp(1.4rem, 3.5vw, 2rem); }
.lx-fecha { color: var(--orange); font-weight: 600; margin-bottom: 1rem; }
.lx-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: .75rem; }
.lx-ev { display: flex; gap: .85rem; align-items: flex-start; background: var(--surface); border: 1px solid rgba(232,240,251,.08); border-radius: var(--r-card); padding: .9rem 1rem; }
.lx-ev__emoji { font-size: 1.6rem; line-height: 1.1; flex-shrink: 0; }
.lx-ev__body { min-width: 0; }
.lx-ev__name { display: block; font-weight: 700; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.lx-ev__name:hover { color: var(--orange); }
.lx-ev__meta { font-size: .86rem; color: var(--text-dim); margin-top: .3rem; line-height: 1.45; }
.lx-ev__tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.lx-tag { font-size: .74rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: rgba(232,240,251,.08); color: var(--text-dim); }
.lx-tag--free { background: rgba(34,197,94,.15); color: #4ADE80; }
.lx-tag--prev { background: rgba(252,211,77,.12); color: var(--yellow); }
.lx-tag--hoy { background: rgba(249,115,22,.18); color: var(--orange); }
.lx-vacio { color: var(--text-dim); background: var(--surface); border-radius: var(--r-card); padding: 1rem 1.1rem; }
.lx-islas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr)); gap: .75rem; }
.lx-isla { display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid rgba(232,240,251,.1); border-radius: var(--r-card); padding: 1rem 1.1rem; color: var(--text); transition: border-color var(--transition), transform var(--transition); }
.lx-isla:hover { border-color: rgba(249,115,22,.5); transform: translateY(-2px); }
.lx-isla__emoji { font-size: 1.6rem; line-height: 1.1; }
.lx-isla__nombre { font-weight: 700; font-size: 1.05rem; }
.lx-isla__n { font-size: .8rem; color: var(--text-dim); }

/* Aviso «esta página está en español» para visitantes de otros idiomas */
.lang-toast { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 399; width: max-content; max-width: calc(100% - 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .75rem; background: #13243d; border: 1px solid rgba(14,165,233,.5); border-radius: 1rem; box-shadow: var(--shadow); padding: .55rem .5rem .55rem 1rem; font-size: .92rem; }
.lang-toast__btn { background: var(--ocean); color: #0C1A2E; font-weight: 700; padding: .45rem 1rem; border-radius: 999px; white-space: nowrap; }
.lang-toast__x { background: none; border: 0; color: var(--text-dim); font-size: 1rem; cursor: pointer; min-width: 40px; min-height: 40px; }
.lang-toast__x:hover { color: var(--text); }


/* ============================================================
   FOTOS POR TEMA (contenido/imagenes.json)
   Cada evento lleva la foto de su tema; el emoji queda como sello.
   ============================================================ */
.ev-card__thumb--foto {
  position: relative;
  background-size: cover;
  background-position: center;
  border-color: rgba(232,240,251,.12) !important;
}
.ev-card__thumb--foto .ev-card__emoji {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 2px solid var(--surface);
  border-radius: 999px;
}
.lx-ev__emoji--foto {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: .6rem;
  background-size: cover;
  background-position: center;
  font-size: 0;
}
.lx-ev__emoji--foto::after {
  content: attr(data-e);
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1rem;
  line-height: 1.75rem;
  text-align: center;
  background: var(--bg);
  border: 2px solid var(--surface);
  border-radius: 999px;
}
.ev-detail__fig { margin: 1.5rem 0 .75rem; }
.ev-detail__fig .ev-detail__img { margin: 0; }
.ev-credit { font-size: .74rem; color: var(--text-dim); margin-top: .4rem; line-height: 1.4; overflow-wrap: anywhere; }
.ev-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.evd-hero--foto { min-height: 190px; }
@media (max-width: 600px) {
  .lx-ev__emoji--foto { width: 54px; height: 54px; }
}

/* Vídeos de YouTube: miniatura con botón; el reproductor se carga al pulsar */
.video-yt { margin: 1.25rem 0; }
.video-yt__btn, .video-yt__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 1rem; overflow: hidden; background: #000; border: 0;
}
.video-yt__btn img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: opacity .2s, transform .3s; }
.video-yt__btn:hover img { opacity: 1; transform: scale(1.02); }
.video-yt__play {
  position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
  background: #E11D2E; border-radius: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.45);
}
.video-yt__play::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}

/* Mapa del evento: teselas de OpenStreetMap oscurecidas para el tema oscuro
   (el marcador y los controles no se ven afectados) */
#evdLeafletMap .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.8); }
#evdLeafletMap { background: #1a2433; }
.nl-legal{margin:.45rem 0 0;font-size:.78rem;line-height:1.45;color:var(--text-dim)}
.nl-legal a{color:inherit;text-decoration:underline}

/* ── Caja de newsletter en fichas y guías (build.js → nlBox) ── */
.nl-box{margin:2rem 0 .5rem;padding:1.25rem 1.25rem 1rem;border-radius:var(--r-card,14px);border:1px solid rgba(249,115,22,.3);background:linear-gradient(135deg,rgba(249,115,22,.12) 0%,rgba(14,165,233,.08) 100%)}
.nl-box__t{margin:0 0 .3rem;font-family:'Playfair Display',serif;font-weight:700;font-size:1.15rem;line-height:1.3;color:var(--text)}
.nl-box__s{margin:0 0 .85rem;font-size:.9rem;color:var(--text-dim)}
.nl-box .nl-form{max-width:460px;min-width:0;width:100%}
.nl-box .nl-input{min-width:0}
.nl-msg{margin:.5rem 0 0;font-size:.9rem;font-weight:600}
.nl-msg:empty{display:none}
.nl-box--ok .nl-form,.nl-box--ok .nl-legal{display:none}
.nl-msg--ok{color:#22c55e}
.nl-msg--err{color:#f87171}
@media (max-width:420px){.nl-box .nl-form{flex-direction:column}.nl-box .nl-btn{width:100%}}

/* ── Páginas de conciertos (build.js → concPage) ── */
.conc-list .conc-tix{display:inline-block;margin-top:.35rem;padding:.2rem .6rem;border-radius:999px;border:1px solid rgba(249,115,22,.45);color:var(--orange);font-size:.78rem;font-weight:700;text-decoration:none;width:max-content}
.conc-list .conc-tix:hover{background:rgba(249,115,22,.12)}

/* ── «Próximos planes en <isla>» arriba de las fichas (build.js → proxHtml) ── */
.prox{margin:1.25rem 0 1.75rem;padding:1rem;border:1px solid rgba(249,115,22,.28);border-radius:1rem;background:rgba(249,115,22,.06)}
.prox .prox__t,.ev-detail .prox__t{margin:0 0 .75rem;font-size:1.1rem;line-height:1.3}
.prox__list{list-style:none;margin:0;padding:0;display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.prox__card{display:flex;align-items:center;gap:.75rem;padding:.5rem;border-radius:.75rem;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:var(--text);text-decoration:none;min-height:64px}
.prox__card:hover{border-color:rgba(249,115,22,.5);background:rgba(249,115,22,.08)}
.prox__card img{flex:0 0 64px;width:64px;height:64px;border-radius:.6rem;object-fit:cover;background:rgba(255,255,255,.06)}
.prox__txt{display:flex;flex-direction:column;gap:.15rem;min-width:0}
.prox__name{font-weight:700;font-size:.95rem;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.prox__meta{color:var(--text-dim);font-size:.82rem}
.prox__all{display:inline-block;margin-top:.75rem;color:var(--orange);font-weight:700;text-decoration:none}
.prox__all:hover{text-decoration:underline;text-underline-offset:3px}

/* ── Calendarios suscribibles (build.js → calBloqueIsla / calendariosHtml) ── */
.cal-box{padding:1.1rem 1.2rem;border:1px solid rgba(252,211,77,.3);border-radius:1rem;background:rgba(252,211,77,.06)}
.cal-box .cal-box__t,.ev-detail .cal-box__t{margin:0 0 .35rem;font-size:1.15rem;line-height:1.3}
.cal-box__s{margin:0 0 .8rem;color:var(--text-dim);font-size:.95rem;line-height:1.5}
.cal-box__mas{margin:.75rem 0 0;font-size:.9rem}
.cal-box__mas a{color:var(--orange);font-weight:700;text-decoration:none}
.cal-subs{display:flex;flex-wrap:wrap;gap:.45rem}
.cal-btn{display:inline-flex;align-items:center;padding:.45rem .8rem;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.05);color:var(--text);font:inherit;font-size:.86rem;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.2}
.cal-btn:hover{border-color:var(--orange);color:var(--orange)}
.cal-list{list-style:none;margin:0 0 1.5rem;padding:0;display:grid;gap:.6rem}
.cal-row{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem .75rem;padding:.7rem .9rem;border:1px solid rgba(255,255,255,.1);border-radius:.8rem;background:rgba(255,255,255,.03)}
.cal-row>strong{flex:1 1 12rem}
.cal-row__n{color:var(--text-dim);font-size:.82rem}
.cal-row__n::after{content:' 🗓️'}

/* Las píldoras «Próximamente» ahora son enlaces a la ficha (antes botones) */
a.hero-ev-pill { color: var(--text); text-decoration: none; font: inherit; }

/* ── Mapa de la ficha (build.js → mapaHtml, site.js → initMapas) ── */
.ev-map-sec{margin:1.5rem 0 1.75rem}
.ev-map{margin:0}
.ev-map__lienzo{height:280px;border-radius:1rem;overflow:hidden;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04)}
.ev-map__lienzo .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.8)}
.ev-map__lienzo .leaflet-popup-content-wrapper,.ev-map__lienzo .leaflet-popup-tip{background:#1a2a3e;color:var(--text)}
.ev-map__lienzo .leaflet-control-zoom a{background:#1a2a3e;color:var(--text);border-color:rgba(255,255,255,.15)}
.ev-map__lienzo .leaflet-control-attribution{background:rgba(12,26,46,.8);color:var(--text-dim)}
.ev-map__lienzo .leaflet-control-attribution a{color:var(--text-dim)}
.ev-map__pin{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;border:2px solid #fff;box-shadow:0 2px 10px rgba(0,0,0,.45)}
.ev-map__pie{margin-top:.5rem;color:var(--text-dim);font-size:.85rem;line-height:1.5}
.ev-map__pie a{color:var(--orange);font-weight:700;text-decoration:none}
.ev-map--error .ev-map__lienzo{display:none}
@media (max-width:600px){.ev-map__lienzo{height:220px}}

/* Menú: en pantallas anchas, cada enlace en una sola línea («Planes por email», «Enviar evento») */
@media (min-width: 1280px) { .main-nav a { white-space: nowrap; } }

/* Canal de WhatsApp (sale solo si build.js tiene WHATSAPP_CANAL) */
.nl-wa { margin: .6rem 0 0; font-size: .9rem; color: var(--text-dim); }
.nl-wa a { color: #25D366; font-weight: 600; text-decoration: none; }
.nl-wa a:hover { text-decoration: underline; }
.nl-wa--home { margin-top: .4rem; }
/* Aviso del canal de WhatsApp en las fichas, junto a los botones */
.ev-wa { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0 0 1.25rem; padding: .75rem 1rem; border: 1px solid rgba(37,211,102,.35); background: rgba(37,211,102,.08); border-radius: var(--r-card); font-size: .95rem; color: var(--text); }
.ev-wa span { flex: 1 1 14rem; }
.ev-detail .ev-wa a { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; background: #25D366; color: #0C1A2E; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ev-detail .ev-wa a:hover { background: #3EE07A; }

/* Portada: bloque «Hoy» + «Este finde» (tarjetas con foto) */
.ahora-home { padding-top: 2rem; padding-bottom: .5rem; }
.ahora-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 1.4rem 0 .8rem; flex-wrap: wrap; }
.ahora-cab h3 { margin: 0; font-size: 1.15rem; }
.ahora-cab a { color: var(--orange); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.ahora-cab a:hover { text-decoration: underline; }
.ahora-fila { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.ahora-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid rgba(232,240,251,.08); border-radius: var(--r-card); overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; min-width: 0; }
.ahora-card:hover { transform: translateY(-3px); border-color: rgba(249,115,22,.5); }
.ahora-card__img { position: relative; display: block; aspect-ratio: 16 / 10; background: #1b2a42 center / cover no-repeat; }
.ahora-card__emoji { position: absolute; left: .6rem; bottom: .6rem; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(12,26,46,.75); font-size: 1rem; }
.ahora-card__cuando { position: absolute; top: .55rem; left: .55rem; padding: .2rem .55rem; border-radius: 999px; background: var(--orange); color: #fff; font-size: .75rem; font-weight: 700; }
.ahora-card__cuando::first-letter { text-transform: uppercase; }
.ahora-card__body { display: flex; flex-direction: column; gap: .25rem; padding: .7rem .8rem .85rem; }
.ahora-card__body strong { font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ahora-card__body span { font-size: .8rem; color: var(--text-dim); }
.ahora-fila .ev-empty { grid-column: 1 / -1; }
@media (max-width: 900px) { .ahora-fila { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }

/* Listas de definiciones en las guías (glosario) */
.page-content dl { margin: 1rem 0 1.5rem; }
.page-content dt { font-weight: 700; color: var(--text); margin-top: 1.1rem; font-size: 1.02rem; }
.page-content dt:first-child { margin-top: 0; }
.page-content dd { margin: .3rem 0 0; color: var(--text-dim); line-height: 1.6; }
