/* Salchi-Fest Popayán (salchifest.html). Usa los tokens y piezas de styles.css. */

.fest-portada { position: relative; overflow: hidden; background: #6d3fa0; color: #fff; padding: 24px 0 52px; }
.fest-patron { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px; padding: 20px; opacity: .1; pointer-events: none; }
.fest-patron svg { width: 110px; height: 110px; justify-self: center; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fest-patron svg:nth-child(odd) { transform: rotate(-12deg); }
.fest-patron svg:nth-child(even) { transform: rotate(14deg); }
.fest-patron svg .r { fill: #fff; fill-opacity: .14; stroke: none; }
.fest-portada-contenido { position: relative; }
.fest-logo { color: #fff; text-decoration: none; }
.fest-logo em { color: #ffd23f; }
.fest-fecha { display: table; margin: 30px 0 0; padding: 8px 16px; border-radius: 999px; background: #ffd23f; color: #3a1f5c; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.fest-portada h1 { font-family: "Fraunces", serif; font-weight: 800; font-size: clamp(48px, 10vw, 96px); line-height: .95; letter-spacing: -.03em; margin: 14px 0 12px; }
.fest-portada h1 em { font-style: normal; color: #ffd23f; }
.fest-lema { font-size: clamp(17px, 2.4vw, 21px); color: #efe4ff; max-width: 52ch; margin: 0; }
.fest-datos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fest-datos span { padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .14); font-weight: 600; }
.fest-datos b { font-size: 22px; font-weight: 800; color: #ffd23f; margin-right: 4px; }
.fest-boton { display: inline-flex; margin-top: 22px; padding: 14px 24px; border-radius: 999px; background: #fff; color: #6d3fa0; font-weight: 800; text-decoration: none; transition: transform .15s; }
.fest-boton:hover { transform: translateY(-2px); }
.fest-acciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fest-acciones .fest-boton { margin-top: 0; }
.fest-boton-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #833ab4); color: #fff; }
.fest-organiza { margin: 14px 0 0; color: #efe4ff; font-size: 14px; }
.fest-organiza a { color: #ffd23f; font-weight: 700; }

.fest-main { padding-bottom: 56px; }
.fest-h2 { font-family: "Fraunces", serif; font-size: clamp(24px, 4vw, 30px); margin: 40px 0 14px; }
.fest-mapa { height: 420px; border-radius: 22px; overflow: hidden; border: 1px solid var(--borde); z-index: 0; scroll-margin-top: 16px; }
.pin-fest { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #6d3fa0; color: #fff; font: 800 15px "Inter", sans-serif; border: 3px solid #ffd23f; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.fest-zonas .chip[aria-pressed="true"] { background: #6d3fa0; border-color: #6d3fa0; color: #fff; }

.fest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 6px; }
.fest-tarjeta {
  display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 20px; background: var(--superficie); border: 1px solid var(--borde);
  animation: aparecer .45s calc(var(--i, 0) * 35ms) cubic-bezier(.2, .8, .2, 1) backwards;
}
.fest-cabeza { display: flex; align-items: center; gap: 12px; }
.fest-sello { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #ebe2f6; color: #6d3fa0; display: grid; place-items: center; font: 800 24px "Fraunces", serif; }
.fest-sello img { width: 100%; height: 100%; object-fit: cover; }
.fest-cabeza div { flex: 1; min-width: 0; }
.fest-cabeza h3 { margin: 0; font-family: "Fraunces", serif; font-size: 19px; line-height: 1.15; }
.fest-cabeza p { margin: 4px 0 0; color: var(--tinta-suave); font-size: 14px; }
.fest-aprox { display: block; margin-top: 4px; color: #a0522d; font-size: 12px; font-weight: 600; }
.fest-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #833ab4); color: #fff; border-color: transparent; }
.fest-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #6d3fa0; color: #fff; font-weight: 800; font-size: 14px; }
.fest-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.fest-botones > * { flex: 1 1 auto; min-height: 42px; padding: 0 14px; font-size: 14px; text-decoration: none; }

.fest-cierre { margin-top: 48px; padding: 26px; border-radius: 24px; background: #ebe2f6; }
.fest-cierre h2 { font-family: "Fraunces", serif; margin: 0 0 8px; }
.fest-cierre p { color: var(--tinta-suave); margin: 0 0 14px; }
.fest-cierre-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fest-cierre-botones .accion { text-decoration: none; padding: 0 18px; }
.fest-cierre a:not([class]) { color: #6d3fa0; font-weight: 700; }

@media (max-width: 600px) {
  .fest-mapa { height: 320px; }
  .fest-cierre { padding: 20px; }
}
