/* Arepa-Fest Popayán (arepafest.html). Misma estructura que el Salchi-Fest, en colores de maíz. */

.af-portada { position: relative; overflow: hidden; background: #6b4a00; color: #fff; padding: 24px 0 52px; }
.af-patron { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 36px; padding: 20px; opacity: .1; pointer-events: none; }
.af-patron svg { width: 110px; height: 110px; justify-self: center; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.af-patron svg:nth-child(odd) { transform: rotate(-12deg); }
.af-patron svg:nth-child(even) { transform: rotate(14deg); }
.af-patron svg .r { fill: #fff; fill-opacity: .14; stroke: none; }
.af-contenido { position: relative; }
.af-logo { color: #fff; text-decoration: none; }
.af-logo em { color: #ffd23f; }
.af-estado { display: table; margin: 30px 0 0; padding: 8px 16px; border-radius: 999px; background: #ffd23f; color: #3d2a00; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.af-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; }
.af-portada h1 em { font-style: normal; color: #ffd23f; }
.af-lema { font-size: clamp(17px, 2.4vw, 21px); color: #fff3d1; max-width: 52ch; margin: 0; }
.af-datos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.af-datos span { padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .14); font-weight: 600; }
.af-datos b { font-size: 22px; font-weight: 800; color: #ffd23f; margin-right: 4px; }
.af-boton { display: inline-flex; margin-top: 22px; padding: 14px 24px; border-radius: 999px; background: #fff; color: #6b4a00; font-weight: 800; text-decoration: none; transition: transform .15s; }
.af-boton:hover { transform: translateY(-2px); }

.af-main { padding-bottom: 56px; }
.af-h2 { font-family: "Fraunces", serif; font-size: clamp(24px, 4vw, 30px); margin: 40px 0 6px; }
.af-sub { color: var(--tinta-suave); margin: 0 0 16px; }
.af-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.af-tarjeta {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--superficie); border: 1px solid var(--borde);
  color: var(--tinta); text-decoration: none; animation: aparecer .45s calc(var(--i, 0) * 35ms) cubic-bezier(.2, .8, .2, 1) backwards;
}
a.af-tarjeta:hover { border-color: #d9b44a; }
.af-sello { flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fbefc2; color: #6b4a00; display: grid; place-items: center; font: 800 22px "Fraunces", serif; }
.af-sello img { width: 100%; height: 100%; object-fit: cover; }
.af-tarjeta h3 { margin: 0; font-family: "Fraunces", serif; font-size: 18px; line-height: 1.15; }
.af-tarjeta p { margin: 3px 0 0; color: var(--tinta-suave); font-size: 13px; }
.af-precio { margin-left: auto; flex: none; padding: 6px 10px; border-radius: 999px; background: #fbefc2; color: #6b4a00; font-weight: 800; font-size: 13px; }

.af-pronto { margin-top: 28px; padding: 22px; border-radius: 22px; border: 2px dashed #d9b44a; background: #fffaf0; }
.af-pronto h2 { font-family: "Fraunces", serif; font-size: 22px; margin: 0 0 6px; }
.af-pronto p { margin: 0; color: var(--tinta-suave); }

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

@media (max-width: 600px) { .af-cierre, .af-pronto { padding: 18px; } }

/* Mapa y tarjetas con datos (cuando ya se conocen las direcciones) */
.af-mapa { height: 420px; border-radius: 22px; overflow: hidden; border: 1px solid var(--borde); z-index: 0; scroll-margin-top: 16px; }
.pin-af { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #6b4a00; color: #fff; font: 800 15px "Inter", sans-serif; border: 3px solid #ffd23f; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }
.af-zonas { margin-bottom: 12px; }
.af-zonas .chip[aria-pressed="true"] { background: #6b4a00; border-color: #6b4a00; color: #fff; }
.af-grid:has(.af-tarjeta-larga) { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.af-tarjeta-larga { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; border-radius: 20px; }
.af-cabeza { display: flex; align-items: flex-start; gap: 12px; }
.af-cabeza > div { flex: 1; min-width: 0; }
.af-cabeza .estado { display: inline-block; margin-top: 6px; font-size: 12.5px; }
.af-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #6b4a00; color: #fff; font-weight: 800; font-size: 14px; }
.af-botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.af-botones > * { flex: 1 1 auto; min-height: 42px; padding: 0 14px; font-size: 14px; text-decoration: none; }
@media (max-width: 600px) { .af-mapa { height: 320px; } }