:root {
  color-scheme: light;
  --navy: #062a58;
  --navy-2: #0c3f76;
  --ink: #13243b;
  --muted: #5f6d7d;
  --paper: #fffefa;
  --cream: #fbf7ef;
  --cream-2: #f3eee3;
  --line: #d8dee5;
  --teal: #119ba0;
  --cyan: #50c3dc;
  --yellow: #f8c82f;
  --orange: #ff7a1a;
  --red: #e73543;
  --pink: #e44683;
  --purple: #7b3fc6;
  --green: #4c9d63;
  --focus: #005fcc;
  --success: #157347;
  --danger: #b42335;
  --shadow-sm: 0 8px 24px rgb(6 42 88 / 8%);
  --shadow: 0 18px 48px rgb(6 42 88 / 14%);
  --radius: 1rem;
  --shell: 92rem;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.shell { width: min(calc(100% - 2.5rem), var(--shell)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 200; top: .75rem; left: .75rem; transform: translateY(-200%); border-radius: .6rem; padding: .75rem 1rem; background: var(--navy); color: white; font-weight: 800; }
.skip-link:focus { transform: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon-sprite symbol, svg { stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Mosaico porteño: patrón original CSS, no reproducción literal de una obra */
.mosaic-top,
.footer-mosaic,
.card-mosaic,
.mosaic-wave {
  background:
    linear-gradient(132deg, transparent 0 38%, rgb(255 255 255 / 38%) 39% 41%, transparent 42%) 0 0 / 5.4rem 100%,
    linear-gradient(46deg, transparent 0 43%, rgb(255 255 255 / 28%) 44% 46%, transparent 47%) 1.2rem 0 / 4.8rem 100%,
    linear-gradient(90deg,
      #0d8d92 0 9%, #0c6ba8 9% 17%, #f8c82f 17% 25%, #ff7a1a 25% 35%,
      #e73543 35% 44%, #072b59 44% 56%, #50c3dc 56% 67%, #e44683 67% 77%,
      #7b3fc6 77% 86%, #4c9d63 86% 100%);
}
.mosaic-top { height: 3.2rem; border-bottom: 1px solid rgb(6 42 88 / 15%); }

.site-header { position: relative; z-index: 30; background: rgb(255 254 250 / 96%); box-shadow: 0 1px 0 rgb(6 42 88 / 10%); }
.masthead { display: grid; min-height: 7.65rem; grid-template-columns: minmax(19rem, 1fr) minmax(30rem, .92fr); align-items: center; gap: 2rem; padding-block: 1rem; }
.brand { display: inline-flex; width: fit-content; align-items: center; gap: 1rem; color: var(--navy); text-decoration: none; }
.brand img { width: 5.4rem; height: 5.4rem; }
.brand span { display: grid; }
.brand strong { font-family: var(--serif); font-size: clamp(2rem, 3.25vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; line-height: .92; }
.brand small { margin-top: .3rem; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.85rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.header-tools { display: grid; justify-items: stretch; gap: 1rem; }
.community-links { display: flex; justify-content: flex-end; gap: 2.5rem; }
.community-links a { display: inline-flex; align-items: center; gap: .6rem; color: var(--navy); font-weight: 800; text-decoration: none; }
.community-links a:hover { color: var(--teal); }
.community-links svg { width: 1.7rem; height: 1.7rem; }
.header-search { position: relative; display: block; }
.header-search input { width: 100%; min-height: 3.2rem; border: 1px solid #bdc8d5; border-radius: .8rem; padding: .7rem 3.2rem .7rem 1rem; background: white; color: var(--ink); box-shadow: inset 0 1px 1px rgb(6 42 88 / 3%); }
.header-search svg { position: absolute; top: 50%; right: 1rem; width: 1.5rem; height: 1.5rem; color: var(--navy); transform: translateY(-50%); }
.mobile-search-toggle { display: none; border: 0; background: transparent; }
.mobile-search-toggle svg { width: 1.7rem; height: 1.7rem; }
.mobile-search-row { border-top: 1px solid var(--line); padding: .65rem 0; background: var(--paper); }

.primary-navigation { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.navigation-layout { display: flex; min-height: 3.9rem; align-items: stretch; justify-content: space-between; gap: 1rem; }
.top-sections { display: flex; align-items: stretch; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.top-sections::-webkit-scrollbar { display: none; }
.top-sections button { position: relative; flex: 0 0 auto; border: 0; padding: .75rem 1rem; background: transparent; color: var(--navy); font-size: .88rem; font-weight: 800; cursor: pointer; }
.top-sections button::after { position: absolute; right: 1rem; bottom: 0; left: 1rem; height: 3px; border-radius: 999px 999px 0 0; background: var(--teal); content: ""; opacity: 0; transform: scaleX(.35); transition: .2s ease; }
.top-sections button:hover::after,
.top-sections button[aria-pressed="true"]::after { opacity: 1; transform: scaleX(1); }
.top-filters { display: flex; align-items: center; gap: .4rem; }
.top-filters label { position: relative; display: inline-flex; align-items: center; color: var(--navy); }
.top-filters label > svg:first-child { width: 1.2rem; height: 1.2rem; margin-right: -.15rem; color: var(--teal); pointer-events: none; }
.top-filters select { min-height: 2.65rem; max-width: 12rem; appearance: none; border: 0; padding: .45rem 1.9rem .45rem .5rem; background: transparent; color: var(--navy); font-size: .82rem; font-weight: 800; cursor: pointer; }
.top-filters .chevron { position: absolute; right: .2rem; width: 1rem; height: 1rem; pointer-events: none; }

.hero { position: relative; overflow: hidden; background:
  radial-gradient(circle at 2% 10%, rgb(248 200 47 / 14%), transparent 25rem),
  radial-gradient(circle at 90% 8%, rgb(80 195 220 / 11%), transparent 28rem),
  linear-gradient(180deg, #fffefa, #fcf8ef); }
.hero-layout { display: grid; min-height: 31.5rem; grid-template-columns: minmax(0, .86fr) minmax(33rem, 1.14fr); align-items: center; gap: clamp(2.5rem, 5vw, 6rem); padding-block: clamp(2rem, 4vw, 3.75rem) 4.7rem; }
.hero-copy { position: relative; z-index: 2; padding-left: .1rem; }
.hero-kicker { margin: 0 0 .8rem; color: var(--teal); font-size: .77rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 12ch; margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(3.25rem, 5.6vw, 5.75rem); font-weight: 700; letter-spacing: -.055em; line-height: .95; }
.hero h1 span { color: var(--navy); }
.hero-lead { max-width: 33rem; margin: 1rem 0 0; color: var(--navy); font-size: clamp(1rem, 1.25vw, 1.17rem); }
.hero-lead strong { font-size: 1.18em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.35rem; }
.button { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: .9rem; padding: .7rem 1.15rem; font-weight: 850; text-decoration: none; cursor: pointer; }
.button svg { width: 1.1rem; height: 1.1rem; }
.button-primary { background: var(--navy); color: white; box-shadow: 0 8px 20px rgb(6 42 88 / 18%); }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { border-color: #9aacbf; background: transparent; color: var(--navy); }
.button-secondary:hover { border-color: var(--teal); background: white; }
.trust-list { display: flex; flex-wrap: wrap; gap: 1.2rem 1.5rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: .55rem; color: var(--navy); font-size: .8rem; font-weight: 800; line-height: 1.15; }
.trust-list svg { width: 1.65rem; height: 1.65rem; color: var(--teal); }
.trust-list li:last-child svg { color: var(--yellow); fill: rgb(248 200 47 / 28%); }
.trust-list small { font-size: .68rem; font-weight: 700; }
.hero-visual { position: relative; margin: 0; }
.hero-art-frame { position: relative; overflow: hidden; border-radius: 1.7rem .75rem 1.7rem .75rem; background: #dff2f2; box-shadow: var(--shadow); transform: rotate(-.35deg); }
.hero-art-frame::after { position: absolute; inset: 0; border: 1px solid rgb(6 42 88 / 10%); border-radius: inherit; content: ""; pointer-events: none; }
.hero-art-frame img { width: 100%; aspect-ratio: 1.85 / 1; object-fit: cover; }
.hero-dots { display: flex; justify-content: center; gap: .45rem; margin-top: 1.15rem; }
.hero-dots span { width: .55rem; height: .55rem; border-radius: 50%; background: #c5ccd4; }
.hero-dots .active { background: var(--navy); }
.mosaic-wave { position: absolute; right: -1rem; bottom: -.15rem; left: -1rem; height: 2.2rem; clip-path: polygon(0 25%, 8% 52%, 18% 33%, 30% 65%, 41% 38%, 54% 62%, 66% 31%, 79% 58%, 90% 35%, 100% 57%, 100% 100%, 0 100%); }

.status-panel { display: flex; align-items: center; gap: 1rem; margin-block: 2rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: white; }
.status-panel p { margin: .15rem 0 0; color: var(--muted); }
.loading-mark { width: 1.2rem; height: 1.2rem; border: 3px solid #d4dde7; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.featured-section { padding-block: 2.3rem 2.65rem; background: var(--paper); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.15rem; }
.title-with-icon { display: flex; align-items: center; gap: .75rem; color: var(--navy); }
.title-with-icon > svg { width: 1.55rem; height: 1.55rem; color: var(--yellow); fill: rgb(248 200 47 / 32%); }
.title-with-icon h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.45rem); letter-spacing: -.035em; }
.section-link { border: 0; padding: .4rem; background: transparent; color: var(--navy); font-size: .82rem; font-weight: 850; cursor: pointer; }
.section-link:hover { color: var(--teal); }
.featured-scroller { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.event-card { position: relative; display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #d7dde4; border-radius: .95rem; background: white; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.event-card:hover { box-shadow: 0 18px 38px rgb(6 42 88 / 13%); transform: translateY(-3px); }
.card-media { position: relative; min-height: 10.5rem; overflow: hidden; background: #dfeff6; }
.featured-scroller .card-media { min-height: 12.25rem; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.placeholder { position: absolute; inset: 0; overflow: hidden; color: white; }
.placeholder svg { width: 100%; height: 100%; stroke: none; }
.placeholder-label { position: absolute; top: .65rem; left: .65rem; z-index: 3; border-radius: 999px; padding: .25rem .55rem; background: rgb(6 42 88 / 86%); color: white; font-size: .62rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.placeholder[data-theme="musica"] { background: linear-gradient(135deg, #2c0458, #c0007c 55%, #ff6a00); }
.placeholder[data-theme="teatro"] { background: linear-gradient(135deg, #1b0b12, #8e251d 58%, #f19b2c); }
.placeholder[data-theme="cine"] { background: linear-gradient(135deg, #091832, #1f3e78 58%, #6633a8); }
.placeholder[data-theme="exposiciones"], .placeholder[data-theme="museos"] { background: linear-gradient(135deg, #f4e3c4, #d2a35d 55%, #855b35); }
.placeholder[data-theme="cursos-talleres"] { background: linear-gradient(135deg, #153548, #0b968e 58%, #efb12d); }
.placeholder[data-theme="naturaleza-montana"] { background: linear-gradient(135deg, #104f50, #3b9668 58%, #b7c94c); }
.placeholder[data-theme="deportes"] { background: linear-gradient(135deg, #0b2f65, #1d8ec1 56%, #ff9c25); }
.placeholder[data-theme="gastronomia"] { background: linear-gradient(135deg, #5e1425, #d54831 56%, #ffc04b); }
.placeholder[data-theme="ferias"] { background: linear-gradient(135deg, #34266a, #c93d77 55%, #f6bd2a); }
.placeholder[data-theme="cultura"] { background: linear-gradient(135deg, #063f62, #0fa0a1 55%, #efc43d); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: .8rem .85rem .72rem; }
.card-topline { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.pill { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: .25rem .55rem; background: #edf3f8; color: var(--navy); font-size: .62rem; font-weight: 850; line-height: 1.1; }
.pill-category { background: #dff5f2; color: #08766f; }
.card-date { margin: 0 0 .35rem; color: var(--navy); font-size: .72rem; font-weight: 750; }
.card-body h3 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 1.14rem; letter-spacing: -.025em; line-height: 1.12; }
.card-place { margin: .45rem 0 .6rem; color: var(--muted); font-size: .73rem; line-height: 1.35; }
.card-place strong { color: var(--ink); }
.card-badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .55rem; }
.change-badge { border: 1px solid #e9a5ae; border-radius: 999px; padding: .25rem .5rem; background: #fff0f2; color: var(--danger); font-size: .62rem; font-weight: 850; cursor: pointer; }
.card-actions { display: flex; align-items: end; justify-content: space-between; gap: .6rem; margin-top: auto; }
.price { display: inline-flex; border: 1px solid #6cb87e; border-radius: 999px; padding: .26rem .52rem; background: #eefbef; color: #126a38; font-size: .7rem; font-weight: 900; }
.detail-button { border: 0; padding: .25rem 0; background: transparent; color: var(--teal); font-size: .72rem; font-weight: 900; cursor: pointer; }
.card-mosaic { height: .5rem; margin: .7rem -.85rem -.72rem; }

.category-section { padding-block: 2rem 2.8rem; }
.category-shortcuts { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: .7rem; }
.category-shortcut { display: grid; min-width: 0; justify-items: center; gap: .4rem; border: 0; padding: .35rem .2rem; background: transparent; color: var(--navy); text-align: center; cursor: pointer; }
.category-symbol { display: grid; width: 3.35rem; height: 3.35rem; place-items: center; border-radius: 50%; background: #fce8ec; color: #d61f55; font-size: 1.25rem; font-weight: 900; transition: transform .18s ease; }
.category-shortcut:nth-child(10n + 2) .category-symbol { background: #fff0df; color: #e96814; }
.category-shortcut:nth-child(10n + 3) .category-symbol { background: #fff4ce; color: #c28a00; }
.category-shortcut:nth-child(10n + 4) .category-symbol { background: #dff4f3; color: #078b89; }
.category-shortcut:nth-child(10n + 5) .category-symbol { background: #e2edff; color: #2369bd; }
.category-shortcut:nth-child(10n + 6) .category-symbol { background: #eee4fb; color: #7135b5; }
.category-shortcut:nth-child(10n + 7) .category-symbol { background: #fbe4ee; color: #d72b71; }
.category-shortcut:nth-child(10n + 8) .category-symbol { background: #e9f1d9; color: #4d7e20; }
.category-shortcut:nth-child(10n + 9) .category-symbol { background: #ffeadc; color: #d45218; }
.category-shortcut:nth-child(10n + 10) .category-symbol { background: #f9dfdf; color: #b82330; }
.category-shortcut:hover .category-symbol { transform: translateY(-3px) scale(1.04); }
.category-shortcut strong { overflow: hidden; max-width: 100%; font-size: .68rem; line-height: 1.15; text-overflow: ellipsis; }
.category-shortcut small { display: none; }

.explore { padding-block: 3rem 4.5rem; background: linear-gradient(180deg, #f7f3eb, #fffefa); border-top: 1px solid #e4ded2; }
.explore-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.eyebrow { margin: 0 0 .35rem; color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.explore-heading h2 { max-width: 13ch; margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.7rem); letter-spacing: -.05em; line-height: .96; }
.explore-heading > p { margin: 0 0 .45rem; color: var(--muted); font-size: .8rem; }
.section-tabs { display: flex; gap: .5rem; overflow-x: auto; margin: 1.6rem 0 1rem; padding-bottom: .35rem; scrollbar-width: thin; }
.section-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .45rem; border: 1px solid #ccd5df; border-radius: 999px; padding: .48rem .72rem; background: white; color: var(--navy); font-size: .72rem; font-weight: 850; cursor: pointer; }
.section-tab small { display: grid; min-width: 1.3rem; height: 1.3rem; place-items: center; border-radius: 50%; background: #edf2f6; }
.section-tab[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.section-tab[aria-pressed="true"] small { background: rgb(255 255 255 / 18%); }
.filter-panel { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(9rem, .75fr)); gap: .75rem; border: 1px solid #d7dde4; border-radius: 1rem; padding: .95rem; background: white; box-shadow: var(--shadow-sm); }
.filter-title-row { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; }
.filter-title-row h3 { margin: 0; color: var(--navy); font-size: .82rem; }
.text-button { border: 0; padding: .2rem; background: transparent; color: var(--teal); font-size: .72rem; font-weight: 850; cursor: pointer; }
.filter-field { display: grid; gap: .3rem; color: var(--navy); font-size: .6rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.filter-field input,
.filter-field select { min-width: 0; min-height: 2.6rem; border: 1px solid #d7dde4; border-radius: .65rem; padding: .55rem .65rem; background: #fffdf8; color: var(--ink); font-size: .73rem; letter-spacing: 0; text-transform: none; }
.filter-toggles { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: .55rem; }
.toggle { display: inline-flex; min-height: 2rem; align-items: center; gap: .4rem; border: 1px solid #d7dde4; border-radius: 999px; padding: .35rem .65rem; color: var(--navy); font-size: .68rem; font-weight: 800; }
.toggle input { accent-color: var(--teal); }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.3rem 0 .75rem; color: var(--muted); font-size: .72rem; }
.results-heading p { margin: 0; color: var(--navy); font-weight: 850; }
.event-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.empty-state, .load-error { border: 1px dashed #b6c2cf; border-radius: 1rem; padding: 2rem; background: white; text-align: center; }
.empty-state h3 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 1.8rem; }

.site-footer { position: relative; padding: 2.7rem 0 2.2rem; background: var(--navy); color: white; }
.footer-mosaic { position: absolute; top: 0; right: 0; left: 0; height: .75rem; }
.footer-layout { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-brand p { margin: 0; font-size: .75rem; }
.footer-layout > p { margin: 0; color: #d9e3ef; font-size: .75rem; }
.footer-layout nav { display: grid; justify-items: end; gap: .25rem; font-size: .72rem; font-weight: 800; }
.mobile-nav { display: none; }

.detail-dialog { width: min(70rem, calc(100% - 2rem)); height: min(52rem, calc(100vh - 1.5rem)); height: min(52rem, calc(100dvh - 1.5rem)); max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem); overflow: hidden; border: 0; border-radius: 1.2rem; padding: 0; background: white; box-shadow: 0 28px 90px rgb(4 20 42 / 35%); }
.detail-dialog::backdrop { background: rgb(5 22 44 / 68%); backdrop-filter: blur(3px); }
.detail-layout { display: grid; height: 100%; min-height: 0; grid-template-columns: minmax(19rem, .85fr) minmax(0, 1.15fr); }
.detail-media { position: relative; min-height: 100%; }
.detail-media .card-media { position: absolute; inset: 0; min-height: 100%; }
.detail-content { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; }
.detail-header { position: relative; flex-shrink: 0; padding: 1rem 2.2rem .35rem; background: white; }
.detail-scroll { min-height: 0; flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; padding: 0 2.2rem 1.25rem; overscroll-behavior: contain; }
.detail-footer { flex-shrink: 0; border-top: 1px solid #e3e7eb; padding: .8rem 2.2rem 1rem; background: white; }
.dialog-close { position: absolute; top: 1rem; right: 1rem; z-index: 3; display: grid; width: 2.4rem; height: 2.4rem; place-items: center; border: 1px solid #d7dde4; border-radius: 50%; background: white; color: var(--navy); font-size: 1.5rem; cursor: pointer; }
.back-button { border: 0; padding: .3rem 0; background: transparent; color: var(--teal); font-size: .75rem; font-weight: 850; cursor: pointer; }
.detail-content h2 { margin: .65rem 3rem 1.2rem 0; overflow-wrap: anywhere; color: var(--navy); font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.7rem); letter-spacing: -.045em; line-height: 1; }
.detail-facts, .change-facts { display: grid; grid-template-columns: 8.5rem 1fr; gap: .45rem 1rem; margin: 1rem 0; }
.detail-facts dt, .change-facts dt { color: var(--muted); font-size: .72rem; font-weight: 800; }
.detail-facts dd, .change-facts dd { margin: 0; color: var(--ink); font-size: .82rem; }
.detail-lead { color: var(--ink); font-size: .92rem; line-height: 1.65; }
.detail-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.detail-actions a, .detail-actions button { border: 1px solid var(--navy); border-radius: .7rem; padding: .6rem .85rem; background: var(--navy); color: white; font-size: .75rem; font-weight: 850; text-decoration: none; cursor: pointer; }
.detail-actions a:nth-child(n+2), .detail-actions button { background: white; color: var(--navy); }
.change-panel { margin-top: 1rem; border-left: .35rem solid var(--orange); border-radius: .6rem; padding: 1rem; overflow-wrap: anywhere; background: #fff7e8; }
.change-panel h3 { margin: 0 0 .4rem; color: var(--navy); }
.change-panel p { margin: 0; font-size: .82rem; }
.share-status { min-height: 1.1rem; margin: .35rem 0 0; color: var(--success); font-size: .75rem; font-weight: 800; }

/* Formularios y páginas legales */
.form-shell { min-height: 100vh; background:
  radial-gradient(circle at 10% 8%, rgb(248 200 47 / 14%), transparent 25rem),
  radial-gradient(circle at 92% 16%, rgb(80 195 220 / 13%), transparent 28rem),
  var(--cream); }
.compact-header { border-bottom: 1px solid var(--line); background: white; }
.compact-header .masthead { min-height: 6rem; grid-template-columns: 1fr auto; }
.compact-header .brand img { width: 4rem; height: 4rem; }
.compact-header .brand strong { font-size: 1.8rem; }
.compact-header .brand small { font-size: 1rem; }
.form-main { padding-block: 2.3rem 4rem; }
.form-page, .legal-page { width: min(100%, 68rem); margin-inline: auto; overflow: hidden; border: 1px solid #d7dde4; border-radius: 1.2rem; padding: clamp(1rem, 4vw, 3rem); background: white; box-shadow: var(--shadow); }
.form-page::before, .legal-page::before { display: block; height: .75rem; margin: calc(clamp(1rem, 4vw, 3rem) * -1) calc(clamp(1rem, 4vw, 3rem) * -1) 2rem; background: linear-gradient(90deg, var(--teal), var(--yellow), var(--orange), var(--red), var(--purple), var(--cyan)); content: ""; }
.form-page h1, .legal-page h1 { max-width: 18ch; margin: .25rem 0 1rem; color: var(--navy); font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.4rem); letter-spacing: -.05em; line-height: .95; }
.verification-advisory { border-left: .35rem solid var(--teal); border-radius: .35rem; padding: .8rem 1rem; background: #eaf8f6; color: var(--navy); font-weight: 750; }
.public-submission-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.public-submission-form label { display: grid; gap: .35rem; color: var(--navy); font-size: .78rem; font-weight: 850; }
.public-submission-form input, .public-submission-form select, .public-submission-form textarea { min-width: 0; min-height: 2.9rem; border: 1px solid #cbd4de; border-radius: .7rem; padding: .65rem .75rem; background: #fffdf8; color: var(--ink); }
.public-submission-form textarea { min-height: 8rem; resize: vertical; }
.full-row { grid-column: 1 / -1; }
.checkbox-label { display: flex !important; min-height: 2.75rem; grid-template-columns: auto 1fr; align-items: center; gap: .55rem; }
.checkbox-label input { width: 1.1rem; min-height: auto; accent-color: var(--teal); }
.honeypot { position: absolute !important; left: -10000px; }
.button-link { width: fit-content; border: 0; border-radius: .8rem; padding: .75rem 1.1rem; background: var(--navy); color: white; font-weight: 850; cursor: pointer; }
.action-message { min-height: 1.5rem; color: var(--navy); font-weight: 800; }
.form-back { display: inline-flex; margin-top: 1rem; color: var(--teal); font-weight: 850; }
.legal-page h2 { margin-top: 1.7rem; color: var(--navy); font-family: var(--serif); }

@media (max-width: 76rem) {
  .masthead { grid-template-columns: minmax(18rem, .9fr) minmax(25rem, 1.1fr); }
  .brand strong { font-size: 2.5rem; }
  .brand small { font-size: 1.4rem; }
  .community-links { gap: 1.2rem; }
  .hero-layout { grid-template-columns: minmax(0, .92fr) minmax(28rem, 1.08fr); }
  .featured-scroller, .event-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-scroller .event-card:nth-child(n+4) { display: none; }
  .category-shortcuts { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .category-shortcut:nth-child(n+9) { display: none; }
}

@media (max-width: 62rem) {
  .mosaic-top { height: 2.2rem; }
  .masthead { min-height: 6rem; grid-template-columns: 1fr auto; }
  .brand img { width: 4rem; height: 4rem; }
  .brand strong { font-size: 1.8rem; }
  .brand small { font-size: 1rem; }
  .header-tools { display: none; }
  .mobile-search-toggle { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .7rem; }
  .navigation-layout { display: block; }
  .top-sections { padding-inline: .25rem; }
  .top-filters { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding: .5rem 0; }
  .top-filters label { border: 1px solid #d7dde4; border-radius: .7rem; background: white; }
  .top-filters select { width: 100%; max-width: none; }
  .hero-layout { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.7rem 4.8rem; }
  .hero-copy { text-align: center; }
  .hero h1 { max-width: 13ch; margin-inline: auto; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .trust-list { justify-content: center; }
  .hero-visual { width: min(100%, 46rem); margin-inline: auto; }
  .featured-scroller { display: flex; overflow-x: auto; margin-inline: -1.25rem; padding: .2rem 1.25rem 1rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .featured-scroller::-webkit-scrollbar { display: none; }
  .featured-scroller .event-card, .featured-scroller .event-card:nth-child(n) { display: flex; flex: 0 0 min(22rem, 84vw); scroll-snap-align: start; }
  .category-shortcuts { display: flex; overflow-x: auto; margin-inline: -1.25rem; padding: .1rem 1.25rem .75rem; scroll-snap-type: x proximity; scrollbar-width: none; }
  .category-shortcuts::-webkit-scrollbar { display: none; }
  .category-shortcut, .category-shortcut:nth-child(n) { display: grid; flex: 0 0 5.2rem; scroll-snap-align: start; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-layout { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-layout nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
  .detail-layout { grid-template-columns: 1fr; grid-template-rows: minmax(12rem, 16rem) minmax(0, 1fr); }
  .detail-media { min-height: 0; max-height: none; }
  .detail-media .card-media { min-height: 100%; }
}

@media (max-width: 40rem) {
  body { padding-bottom: 4.7rem; }
  .shell { width: min(calc(100% - 1.5rem), var(--shell)); }
  .mosaic-top { height: 1.4rem; }
  .masthead { min-height: 4.8rem; padding-block: .6rem; }
  .brand { gap: .55rem; }
  .brand img { width: 3.1rem; height: 3.1rem; }
  .brand strong { font-size: 1.25rem; }
  .brand small { margin-top: .1rem; font-size: .72rem; }
  .primary-navigation { border-top: 0; }
  .top-sections { display: none; }
  .top-filters { border-top: 0; padding-block: .45rem; }
  .top-filters label:first-child > svg { margin-left: .45rem; }
  .top-filters select { min-height: 2.45rem; font-size: .74rem; }
  .hero-layout { padding-block: 2rem 4rem; }
  .hero-kicker { font-size: .62rem; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 3.85rem); line-height: .97; }
  .hero-lead { font-size: .93rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45rem; }
  .trust-list li { display: grid; justify-items: center; gap: .25rem; font-size: .64rem; text-align: center; }
  .trust-list svg { width: 1.35rem; height: 1.35rem; }
  .hero-art-frame { border-radius: 1rem .45rem 1rem .45rem; }
  .mosaic-wave { height: 1.4rem; }
  .featured-section { padding-block: 1.8rem; }
  .section-title-row { align-items: end; }
  .title-with-icon { gap: .5rem; }
  .title-with-icon > svg { width: 1.25rem; height: 1.25rem; }
  .title-with-icon h2 { font-size: 1.55rem; }
  .section-link { font-size: .7rem; }
  .category-section { padding-block: 1.5rem 2rem; }
  .category-symbol { width: 3rem; height: 3rem; }
  .category-shortcut strong { font-size: .62rem; }
  .explore { padding-block: 2.2rem 2.8rem; }
  .explore-heading { align-items: start; flex-direction: column; gap: .65rem; }
  .explore-heading h2 { font-size: 2.35rem; }
  .filter-panel { grid-template-columns: 1fr; padding: .75rem; }
  .search-field { grid-column: auto; }
  .filter-toggles { display: grid; grid-template-columns: 1fr 1fr; }
  .results-heading > span { display: none; }
  .event-grid { grid-template-columns: 1fr; gap: .65rem; }
  .event-grid .event-card { display: grid; grid-template-columns: 7.5rem 1fr; }
  .event-grid .card-media { min-height: 100%; }
  .event-grid .placeholder-label { display: none; }
  .event-grid .card-body { padding: .72rem; }
  .event-grid .card-body h3 { font-size: 1rem; }
  .event-grid .card-place { display: -webkit-box; overflow: hidden; margin-bottom: .35rem; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .event-grid .card-mosaic { margin: .55rem -.72rem -.72rem; }
  .mobile-nav { position: fixed; z-index: 60; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #d7dde4; padding: .3rem env(safe-area-inset-right) calc(.3rem + env(safe-area-inset-bottom)) env(safe-area-inset-left); background: white; box-shadow: 0 -10px 30px rgb(6 42 88 / 12%); }
  .mobile-nav a { display: grid; min-width: 0; min-height: 3.9rem; place-items: center; align-content: center; gap: .1rem; color: var(--navy); font-size: .56rem; font-weight: 800; text-decoration: none; }
  .mobile-nav svg { width: 1.25rem; height: 1.25rem; }
  .detail-dialog { width: calc(100% - 1rem); height: calc(100vh - 1rem); height: calc(100dvh - 1rem); max-height: calc(100vh - 1rem); max-height: calc(100dvh - 1rem); border-radius: .8rem; }
  .detail-layout { height: 100%; min-height: 0; grid-template-rows: minmax(10rem, 13.5rem) minmax(0, 1fr); }
  .detail-media { min-height: 0; max-height: none; }
  .detail-header { padding: .75rem 1rem .25rem; }
  .detail-scroll { padding: 0 1rem .8rem; }
  .detail-footer { padding: .65rem 1rem .75rem; }
  .detail-content h2 { margin-right: 2.6rem; font-size: 2.15rem; }
  .detail-facts, .change-facts { grid-template-columns: 6.5rem 1fr; }
  .public-submission-form { grid-template-columns: 1fr; }
  .full-row { grid-column: auto; }
  .form-page, .legal-page { border-radius: .8rem; padding: 1rem; }
  .form-page::before, .legal-page::before { margin: -1rem -1rem 1.25rem; }
  .compact-header .masthead { grid-template-columns: 1fr; justify-items: start; gap: .6rem; }
  .compact-header .button { width: auto; }
}

@media (max-width: 22rem) {
  .shell { width: min(calc(100% - .8rem), var(--shell)); }
  .top-filters { grid-template-columns: 1fr; }
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
  .event-grid .event-card { grid-template-columns: 6rem 1fr; }
  .filter-toggles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.cf-turnstile { min-height: 4.2rem; }
code { border-radius: .3rem; padding: .08rem .25rem; background: #edf3f8; color: var(--navy); }
.compact-navigation { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem 1rem; }
.compact-navigation a { color: var(--navy); font-size: .78rem; font-weight: 850; text-decoration: none; }
.compact-navigation a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-underline-offset: .3rem; }
.sources-page { display: grid; gap: 1.4rem; }
.sources-intro { max-width: 58rem; }
.sources-intro h1 { max-width: 16ch; margin: .2rem 0 1rem; color: var(--navy); font-family: var(--serif); font-size: clamp(2.7rem, 6vw, 5rem); letter-spacing: -.05em; line-height: .96; }
.sources-intro > p:not(.eyebrow) { color: var(--ink); line-height: 1.65; }
.sources-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .65rem; border-left: .45rem solid var(--yellow); border-radius: .7rem; padding: 1rem 1.2rem; background: white; }
.sources-summary strong { color: var(--navy); font-family: var(--serif); font-size: 2.5rem; }
.sources-summary span:last-child { margin-left: auto; color: var(--muted); font-size: .75rem; }
.sources-filters { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(9rem, 1fr)); gap: .75rem; border: 1px solid #d7dde4; border-radius: 1rem; padding: 1rem; background: white; }
.sources-filters .filter-title-row { grid-column: 1 / -1; }
.sources-filters h2 { margin: 0; color: var(--navy); font-size: 1rem; }
.sources-result-line { margin: 0; color: var(--navy); font-weight: 850; }
.sources-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.source-card { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; border: 1px solid #d7dde4; border-radius: 1rem; padding: 1.1rem; overflow-wrap: anywhere; background: white; box-shadow: var(--shadow-sm); }
.source-card h2 { margin: .65rem 0 .35rem; color: var(--navy); font-family: var(--serif); font-size: 1.55rem; line-height: 1.05; }
.source-status { border-radius: 999px; padding: .25rem .55rem; background: #e5f6ef; color: #166846; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.source-meta, .source-verified { color: var(--muted); font-size: .75rem; }
.source-categories { display: flex; flex-wrap: wrap; gap: .35rem; margin: .3rem 0 1rem; padding: 0; list-style: none; }
.source-categories li { border-radius: 999px; padding: .25rem .5rem; background: #edf3f8; color: var(--navy); font-size: .65rem; font-weight: 800; }
.source-link { margin-top: auto; color: var(--teal); font-size: .78rem; font-weight: 900; }
@media (max-width: 62rem) {
  .sources-filters { grid-template-columns: 1fr 1fr; }
  .sources-filters .search-field { grid-column: 1 / -1; }
  .sources-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .compact-navigation { justify-content: flex-start; }
  .sources-filters, .sources-grid { grid-template-columns: 1fr; }
  .sources-filters .search-field { grid-column: auto; }
  .sources-summary span:last-child { width: 100%; margin-left: 0; }
}
@media (max-width: 62rem) {
  .featured-section, .category-section { overflow: hidden; }
}
@media (max-width: 40rem) {
  .featured-scroller, .category-shortcuts { margin-inline: -.75rem; padding-right: .75rem; padding-left: .75rem; }
}
