:root {
  --app-paper: oklch(.193 .05 267);
  --app-ink: oklch(.969 .021 83);
  --app-accent: oklch(.849 .11 83);
  --app-line: oklch(.377 .056 265);
  --vp-night: oklch(.14 .045 266);
  --vp-panel: oklch(.245 .055 267);
  --vp-muted: oklch(.791 .035 267);
  --focus: var(--app-accent);
  color-scheme: dark;
}
body { color: var(--app-ink); background: var(--app-paper); }
:where(h1, h2, h3, p, figure) { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
::selection { color: var(--vp-night); background: var(--app-accent); }
.vp-header { background: var(--app-paper); border-bottom: 1px solid var(--app-line); }
.vp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.vp-brand { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; }
.vp-brand img { flex: none; }
.vp-footer { padding-block: 16px; border-top: 1px solid var(--app-line); color: var(--vp-muted); font-size: .86rem; }
.vp-footer-inner, .vp-footer nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
.vp-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.vp-footer strong, .vp-footer a { color: var(--app-ink); }
.vp-market, .vp-detail, .vp-directory { padding-block: 24px 42px; }
.vp-poster { overflow: clip; border: 1px solid var(--app-line); border-radius: 18px; background: var(--vp-night); }
.vp-poster-inner { position: relative; display: grid; align-content: end; isolation: isolate; padding: clamp(18px, 4vw, 55px); }
.vp-poster-photo .vp-poster-inner { min-height: clamp(330px, 30vw, 410px); padding-bottom: clamp(42px, 4vw, 55px); }
.vp-postcard { position: absolute; inset: 0; z-index: -1; }
.vp-postcard img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.vp-postcard::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--vp-night), color-mix(in oklch, var(--vp-night) 72%, transparent) 36%, transparent 83%),
    linear-gradient(to top, var(--vp-night), transparent 39%);
  pointer-events: none;
}
.vp-postcard figcaption { position: absolute; right: 14px; bottom: 8px; z-index: 1; color: var(--vp-muted); font-size: .75rem; }
.vp-poster-copy { width: min(100%, 630px); }
.vp-kicker { display: flex; align-items: center; gap: 5px; color: var(--app-accent); font-weight: 800; font-size: .84rem; }
.vp-kicker .icon { width: 17px; height: 17px; }
.vp-poster h1, .vp-section-header h1, .vp-directory h1, .vp-stall-head h1 {
  font-family: Fraunces, Georgia, serif; font-weight: 650; line-height: 1;
  letter-spacing: -.035em; overflow-wrap: anywhere;
}
.vp-poster h1 { margin-block: 5px 10px; font-size: clamp(2.6rem, 6vw, 5.65rem); text-wrap: balance; }
.vp-dates { font-weight: 750; color: var(--app-ink); }
.vp-actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.vp-poster-actions { padding: 0 clamp(14px, 4vw, 55px) 12px; }
.vp-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px;
  padding: 8px 14px; border: 1px solid transparent; border-radius: 9px;
  font-weight: 800; font-size: .91rem; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.vp-primary { background: var(--app-accent); color: var(--vp-night); }
.vp-primary:hover { background: var(--app-ink); }
.vp-outline { background: var(--vp-panel); border-color: var(--app-line); color: var(--app-ink); }
.vp-outline:hover { border-color: var(--app-accent); color: var(--app-accent); }
.vp-demo-note { margin: 0 clamp(14px, 4vw, 55px) 14px; color: var(--vp-muted); font-size: .8rem; }
.vp-demo-note strong, .vp-demo { color: var(--app-accent); }

body:not(:has(#explorar[data-view="plano"], #plano:target, #plano .map-pin:target)) #plano,
body:not(:has(#explorar[data-view="puestos"], #puestos:target)) .catalogue-screen { display: none; }
body:has(#explorar[data-view="plano"], #plano:target, #plano .map-pin:target) .edition-discovery,
body:has(#explorar[data-view="puestos"], #puestos:target) :is(.vp-poster, .edition-discovery, .vp-market-context, .vp-participate) { display: none; }
.vp-catalogue { scroll-margin-top: 80px; }
.vp-discovery { margin-top: 24px; }
.vp-section-header { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 12px; }
.vp-section-header h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.45rem, 2.6vw, 2.24rem); line-height: 1.12; letter-spacing: -.02em; }
.vp-section-header > a:not(.vp-button) { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; color: var(--app-accent); font-weight: 800; white-space: nowrap; }
.vp-section-header h1, .vp-directory h1, .vp-stall-head h1 { margin-top: 4px; font-size: clamp(2rem, 4vw, 3.7rem); }
.vp-filters { margin-block: 16px 14px; }
.market-search {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 7px;
  max-width: 610px; padding: 4px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--vp-panel);
}
.market-search > .icon { margin-left: 6px; color: var(--app-accent); }
.market-search input { width: 100%; min-width: 0; min-height: 44px; padding: 0 4px; border: 0; color: var(--app-ink); background: transparent; }
.market-search input::placeholder { color: var(--vp-muted); }
.market-refine { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.market-refine :is(select, label) {
  min-height: 44px; padding: 5px 10px; border: 1px solid var(--app-line); border-radius: 8px;
  color: var(--app-ink); background: var(--vp-panel); font-size: .9rem;
}
.market-refine select { max-width: 100%; }
.market-refine label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.market-refine input { margin: 0; accent-color: var(--app-accent); }
.market-refine a { display: inline-flex; align-items: center; min-height: 44px; color: var(--app-accent); }
.vp-total { font-weight: 750; }
.vp-catalogue-note { color: var(--vp-muted); font-size: .84rem; }
.vp-gifts, .vp-agenda, .vp-detail .product-list, .vp-detail .contact-links { list-style: none; margin: 0; padding: 0; }
.vp-gifts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vp-catalogue .vp-gifts { margin-top: 14px; }
.vp-gift { display: grid; align-content: start; height: 100%; min-width: 0; border: 1px solid var(--app-line); border-radius: 12px; background: var(--vp-panel); text-decoration: none; }
.vp-gift-media { overflow: clip; border-radius: 11px 11px 0 0; }
.vp-gift-media img { width: 100%; height: auto; aspect-ratio: 1.34; object-fit: cover; }
.vp-gift-copy { display: grid; justify-items: start; gap: 4px; padding: 10px; overflow-wrap: anywhere; }
.vp-gift-copy h3 { font-size: clamp(1rem, 1.55vw, 1.35rem); line-height: 1.14; }
.vp-gift:hover h3, .vp-agenda-item:hover h2 { text-decoration: underline; }
.vp-gift-meta { font-size: .75rem; font-weight: 750; color: var(--vp-muted); line-height: 1.2; }
.vp-gift-stall { color: var(--vp-muted); font-size: .87rem; line-height: 1.25; }
.vp-price-text, .vp-feature-title strong, .vp-detail .product-list li > strong { color: var(--app-accent); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vp-price-text { font-size: 1.1rem; }
.vp-offer { color: var(--vp-muted); font-size: .75rem; }
.vp-offer .icon { width: 14px; height: 14px; }
.vp-empty { padding-block: 24px; }
.vp-empty a { margin-top: 8px; }
.pager { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pager a { display: inline-flex; align-items: center; min-height: 44px; color: var(--app-accent); }
.vp-market-context, .vp-participate { padding-top: 16px; margin-top: 26px; border-top: 1px solid var(--app-line); }
.vp-market-context h2, .vp-participate h2 { font-size: 1.28rem; line-height: 1.16; }
.vp-market-context p { margin-block: 6px 10px; max-width: 66ch; color: var(--vp-muted); }
.vp-participate .vp-button { margin-top: 8px; }

.vp-back, .vp-video-link, .vp-contact-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--app-accent); font-weight: 750; }
.vp-back { margin-bottom: 10px; }
.vp-feature { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: clamp(12px, 4vw, 46px); align-items: center; }
.vp-feature-no-photo { grid-template-columns: 1fr; }
.vp-stall-photo img, .vp-detail-image img { width: 100%; height: auto; max-height: 440px; aspect-ratio: 1.44; object-fit: cover; border-radius: 14px; }
.vp-stall-head h1 { margin: 6px 0 12px; }
.vp-stall-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; color: var(--vp-muted); font-size: .85rem; }
.vp-caseta { padding: 3px 6px; border-radius: 5px; color: var(--vp-night); background: var(--app-accent); font-weight: 800; }
.vp-feature-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-block: 12px; font-size: 1.1rem; }
.vp-feature-title h2 { font-size: inherit; }
.vp-feature-title strong { font-size: 1.43rem; }
.vp-stall-description { margin-top: 12px; max-width: 66ch; color: var(--vp-muted); }
.vp-stall-description p + p { margin-top: 6px; }
.vp-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; margin-top: 26px; align-items: start; }
.vp-inventory { display: grid; gap: 22px; min-width: 0; }
.vp-inventory h2, .vp-contact h2 { margin-bottom: 8px; font-size: clamp(1.28rem, 2.5vw, 1.65rem); line-height: 1.15; }
.vp-detail .product-list li { display: flex; justify-content: space-between; gap: 10px; padding-block: 11px; border-top: 1px solid var(--app-line); }
.vp-detail .product-list h3 { font-size: 1.03rem; }
.vp-detail .product-list p, .vp-detail .product-list small { color: var(--vp-muted); }
.vp-promotions, .vp-contact { padding: 16px; border: 1px solid var(--app-line); border-radius: 12px; background: var(--vp-panel); }
.vp-contact { scroll-margin-top: 16px; overflow-wrap: anywhere; }
.vp-contact .contact-venue { display: flex; gap: 6px; margin-bottom: 8px; }
.vp-contact .contact-venue .icon, .vp-promotions h2 { color: var(--app-accent); }
.vp-contact .contact-venue span { display: block; color: var(--vp-muted); }
.vp-contact .contact-links a { display: flex; align-items: center; gap: 5px; min-height: 44px; border-top: 1px solid var(--app-line); }
.vp-video iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.vp-directory-header { margin-bottom: 18px; }
.vp-directory-header p { margin-top: 8px; color: var(--vp-muted); }
.vp-agenda { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vp-agenda-item { display: block; height: 100%; border: 1px solid var(--app-line); border-radius: 14px; background: var(--vp-panel); text-decoration: none; }
.vp-agenda-item img { width: 100%; height: clamp(140px, 24vw, 290px); object-fit: cover; object-position: center 60%; border-radius: 13px 13px 0 0; }
.vp-agenda-info { padding: 13px; }
.vp-agenda-info h2 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.24rem, 2.6vw, 2rem); line-height: 1.12; }
.vp-agenda-info p { color: var(--vp-muted); font-size: .9rem; }
.vp-agenda-action { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: var(--app-accent); font-weight: 750; }

@media (max-width: 800px) {
  .vp-header-inner { min-height: 60px; }
  .vp-market, .vp-directory, .vp-detail { padding-top: 12px; }
  .vp-market.shell, .vp-detail.shell, .vp-directory.shell { width: calc(100% - 32px); }
  .vp-poster { border-radius: 15px; }
  .vp-poster-inner { padding: 14px; }
  .vp-poster-photo .vp-poster-inner { min-height: clamp(275px, 79vw, 380px); padding-bottom: 32px; }
  .vp-poster h1 { font-size: clamp(2.16rem, 8.4vw, 3.15rem); margin-bottom: 6px; }
  .vp-postcard img { object-position: center 60%; }
  .vp-postcard::after { background: linear-gradient(to top, var(--vp-night) 4%, color-mix(in oklch, var(--vp-night) 78%, transparent) 35%, transparent 74%); }
  .vp-postcard figcaption { bottom: 6px; right: 12px; font-size: .72rem; }
  .vp-dates { font-size: .89rem; }
  .vp-poster-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vp-poster-actions .vp-button:only-child { grid-column: 1 / -1; }
  .vp-poster-actions .vp-button { padding-inline: 8px; }
  .vp-discovery { margin-top: 14px; }
  .vp-section-header { align-items: center; margin-bottom: 8px; }
  .vp-gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vp-feature, .vp-detail-grid, .vp-agenda { grid-template-columns: 1fr; }
  .vp-stall-photo img { max-height: 250px; aspect-ratio: 1.5; }
  .vp-back { margin-bottom: 6px; }
}
@media (max-width: 360px) {
  .vp-poster-actions .icon, .vp-section-header .vp-button .icon { width: 16px; height: 16px; }
  .vp-poster-copy .vp-kicker { font-size: .78rem; }
  .market-refine { gap: 6px; }
  .market-refine :is(select, label) { padding-inline: 7px; font-size: .82rem; }
  .vp-discovery .vp-section-header > a { font-size: .82rem; }
}
