@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

/* White and sky blue follow the user's preferred direction.
   Shape scale: photos/panels 24px, small surfaces 12px, actions full pill.
   Layers: sticky header 10, its mobile navigation 11, skip link 20. */
:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f4f9fd;
  --card: #ffffff;
  --sky: #e6f3fc;
  --ink: #1c364b;
  --muted: #526b7e;
  --accent: #246d97;
  --accent-hover: #185779;
  --on-accent: #ffffff;
  --action: #9dd5f3;
  --action-hover: #82c8ee;
  --on-action: #183b53;
  --line: #dceaf3;
  --photo-border: #ffffff;
  --photo-shadow: 0 10px 30px rgb(38 94 132 / 10%);
  --font-display: Manrope, "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #13232f;
  --surface: #192e3d;
  --card: #203848;
  --sky: #253f53;
  --ink: #eef7fd;
  --muted: #b8cddd;
  --accent: #a2d3f0;
  --accent-hover: #c4e5f9;
  --on-accent: #13232f;
  --action: #9bd3f2;
  --action-hover: #bae2f7;
  --on-action: #15384f;
  --line: #355267;
  --photo-border: #203848;
  --photo-shadow: 0 10px 30px rgb(10 26 39 / 22%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #13232f;
    --surface: #192e3d;
    --card: #203848;
    --sky: #253f53;
    --ink: #eef7fd;
    --muted: #b8cddd;
    --accent: #a2d3f0;
    --accent-hover: #c4e5f9;
    --on-accent: #13232f;
    --action: #9bd3f2;
    --action-hover: #bae2f7;
    --on-action: #15384f;
    --line: #355267;
    --photo-border: #203848;
    --photo-shadow: 0 10px 30px rgb(10 26 39 / 22%);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button, summary, label { touch-action: manipulation; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
img { max-width: 100%; height: auto; display: block; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }
::selection { background: var(--sky); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 94px; scroll-margin-top: 0; }
.icon { width: 21px; height: 21px; flex: 0 0 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.js-only { display: none !important; }
.has-js .js-only { display: inline-flex !important; }
.skip-link { position: fixed; top: -80px; left: 20px; background: var(--accent); color: var(--on-accent); padding: 12px 22px; border-radius: 12px; z-index: 20; }
.skip-link:focus { top: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; padding: 16px 25px; border: 1px solid var(--action); border-radius: 999px; background: var(--action); color: var(--on-action); font-weight: 600; line-height: 1.2; white-space: nowrap; min-height: 54px; }
.button:hover { background: var(--action-hover); border-color: var(--action-hover); }
.button:active, .icon-button:active, .chip:active { transform: scale(.98); }
.button-small { padding: 12px 21px; font-size: 14px; min-height: 44px; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--accent); min-height: 44px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.text-link .icon { width: 18px; height: 18px; flex-basis: 18px; }
.icon-button { width: 44px; height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 50%; background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.icon-button:hover { background: var(--sky); }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 80px; }
.brand { display: inline-flex; gap: 12px; align-items: center; flex-shrink: 0; }
.brand-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.15; letter-spacing: -.6px; }
.brand-place { display: block; font-family: var(--font-body); font-size: 10px; font-weight: 600; letter-spacing: 2.2px; margin-top: 6px; }
.site-nav { display: flex; align-items: center; gap: 29px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; position: relative; }
.site-nav a::after { position: absolute; content: ""; height: 2px; width: 100%; bottom: 4px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.has-js .menu-toggle { display: none !important; }

.hero { padding-block: 70px 72px; }
.hero-grid { display: grid; grid-template-columns: .98fr 1.05fr; align-items: center; gap: 72px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 700; letter-spacing: 1.35px; color: var(--accent); margin-bottom: 26px; }
.eyebrow-line { width: 24px; height: 2px; flex-shrink: 0; background: var(--accent); }
h1 { font-size: clamp(48px, 5.4vw, 72px); font-weight: 800; letter-spacing: -3.7px; line-height: 1.09; }
h1 span { display: block; color: var(--accent); }
.hero-description { max-width: 390px; font-size: 18px; line-height: 1.7; color: var(--muted); margin-top: 26px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 31px; }
.hero-visual { position: relative; padding-bottom: 47px; min-width: 0; }
.hero-photo-frame { padding: 8px; background: var(--sky); border-radius: 30px; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 1.36; object-fit: cover; object-position: 50% 48%; border-radius: 24px; }
.hero-inset-frame { position: absolute; width: 190px; bottom: 26px; left: -34px; border: 6px solid var(--photo-border); border-radius: 19px; background: var(--photo-border); box-shadow: var(--photo-shadow); transform: rotate(-5deg); }
.hero-inset-frame img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: 12px; }
.hero-visual figcaption { display: flex; align-items: center; justify-content: flex-end; gap: 7px; font-size: 11px; line-height: 1.4; padding-top: 17px; color: var(--muted); }
.hero-visual figcaption .icon { width: 15px; height: 15px; flex-basis: 15px; }

.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 100px; }
.section-kicker { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
h2 { font-size: clamp(32px, 3.2vw, 44px); font-weight: 700; line-height: 1.2; letter-spacing: -1.75px; }
.about-heading h2 { max-width: 410px; }
.about-heading h2 span { color: var(--accent); }
.about-content > p { color: var(--muted); max-width: 510px; }
.about-content .about-lead { font-size: 20px; line-height: 1.65; color: var(--ink); margin-bottom: 18px; }
.about-values { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.about-values .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 12px; }
.about-values h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.about-values p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading > p:not(.section-kicker) { font-size: 17px; color: var(--muted); margin-top: 18px; max-width: 600px; }

.activities-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 66px; align-items: start; }
.activity-photo { position: sticky; top: 118px; }
.activity-photo img { width: 100%; height: auto; aspect-ratio: 1.15; object-fit: cover; object-position: 48% 50%; border-radius: 24px; }
.activity-photo figcaption { padding-top: 16px; font-size: 14px; color: var(--muted); }
.activity-list { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.activity { border-bottom: 1px solid var(--line); }
.activity summary { display: flex; align-items: center; gap: 18px; padding-block: 24px; font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.4; }
.activity summary:hover { color: var(--accent); }
.activity-symbol { width: 43px; height: 43px; flex: 0 0 43px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--surface); color: var(--accent); }
.disclosure-icon { margin-left: auto; }
details[open] > summary .disclosure-icon { transform: rotate(180deg); }
.activity-body { padding: 0 10px 24px 61px; }
.activity-body p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 10px; }

.agenda { background: var(--surface); }
.agenda .section-heading { margin-bottom: 30px; }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-group:empty { display: none; }
.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 10px 21px; min-height: 44px; font-weight: 500; font-size: 14px; line-height: 1.5; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { color: var(--on-action); background: var(--action); border-color: var(--action); }
.agenda-list { border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding-block: 25px; border-bottom: 1px solid var(--line); }
.event-date { text-align: center; border-radius: 12px; background: var(--sky); padding: 11px 8px 10px; }
.event-date strong { display: block; font-family: var(--font-display); font-size: 31px; font-weight: 700; line-height: 1.15; letter-spacing: -1px; }
.event-date span { display: block; color: var(--muted); font-size: 11px; letter-spacing: 1px; font-weight: 600; margin-top: 2px; }
.event-category { color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.4; margin-bottom: 4px; }
.event-copy h3 { font-size: 20px; letter-spacing: -.45px; margin-bottom: 7px; line-height: 1.4; }
.event-copy p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.event-meta { margin-top: 6px; }
.event-link { border: 1px solid var(--line); border-radius: 999px; padding: 10px 17px; gap: 14px; }
.event-link:hover { border-color: var(--accent); text-decoration: none; background: var(--sky); }
.agenda-note { font-size: 13px; line-height: 1.6; color: var(--muted); margin-top: 23px; }
.empty-state { padding-block: 36px; color: var(--muted); grid-column: 1 / -1; }
.empty-state > .icon { width: 32px; height: 32px; margin-bottom: 14px; color: var(--accent); }
.empty-state p { max-width: 560px; margin-bottom: 10px; }

.join { padding-block: 92px; }
.join-panel { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 80px; background: var(--sky); padding: 56px 60px; border-radius: 24px; }
.join-symbol { width: 42px; height: 42px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.join-copy h2 { max-width: 420px; font-size: 39px; }
.join-copy h2 span { color: var(--accent); }
.join-copy p { color: var(--muted); max-width: 350px; margin-top: 22px; line-height: 1.7; }
.join-options fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
.join-options legend { font-size: 15px; font-weight: 600; margin-bottom: 17px; }
.join-option { display: flex; align-items: flex-start; gap: 13px; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); margin-bottom: 10px; cursor: pointer; }
.join-option:has(input:checked) { background: var(--paper); border-color: var(--accent); }
.join-option:hover { border-color: var(--accent); }
.join-option input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin: 4px 0 0; }
.join-option strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
.join-option span > span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.join-options > .button { width: 100%; margin-top: 7px; }
.join-options > .button > .icon:last-child { margin-left: auto; }

.contact { padding-top: 12px; padding-bottom: 88px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.contact-copy > p { color: var(--muted); max-width: 440px; margin-top: 18px; }
.contact-copy address { font-style: normal; margin-top: 31px; }
.contact-item { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 25px; }
.contact-item > .icon { margin-top: 3px; color: var(--accent); }
.contact-item strong { font-size: 14px; font-weight: 600; }
.contact-item p { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 5px; }
.contact-item .text-link { font-size: 13px; margin-top: 2px; }
.contact-email { display: block; font-size: 14px; color: var(--muted); margin-top: 7px; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--accent); text-decoration: underline; }
.facebook-link { font-size: 14px; }
.faq { padding-top: 8px; }
.faq h3 { font-size: 19px; font-weight: 700; margin-bottom: 23px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding-block: 21px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--muted); font-size: 14px; padding: 0 30px 24px 0; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.footer-main { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 48px; padding-block: 52px 44px; }
.footer-main .brand-logo { width: 46px; height: 46px; }
.footer-main .brand-name { font-size: 18px; }
.footer-brand > p { font-size: 14px; color: var(--muted); max-width: 330px; margin-top: 18px; }
.footer-social { display: flex; gap: 4px; margin-top: 14px; margin-left: -10px; color: var(--accent); }
.footer-main h2 { font-size: 14px; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links a { font-size: 14px; color: var(--muted); padding-block: 5px; }
.footer-links a:hover, .footer-email:hover, .footer-bottom a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact p { font-size: 14px; color: var(--muted); }
.footer-email { display: inline-block; font-size: 14px; color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; }
.footer-bottom { display: flex; gap: 24px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block: 14px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }

/* Páginas internas, directorio de feriantes, calendario, socios y novedades. */
.section-tight { padding-block: 24px 94px; }
.button-secondary { background: transparent; color: var(--accent); border-color: var(--line); }
.button-secondary:hover { background: var(--sky); border-color: var(--accent); }
.form-error { color: var(--accent); font-size: 14px; }
.page-hero { padding-block: 64px 70px; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-hero-compact { padding-block: 60px 56px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.page-hero h1 { font-size: clamp(40px, 4.2vw, 56px); letter-spacing: -2.4px; }
.page-lead { max-width: 560px; font-size: 18px; line-height: 1.7; color: var(--muted); margin-top: 22px; }
.page-hero-photo { padding: 8px; background: var(--sky); border-radius: 30px; }
.page-hero-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: 24px; }
.page-hero-photo.is-portrait { justify-self: end; width: min(100%, 380px); transform: rotate(2deg); }
.page-hero-photo.is-portrait img { aspect-ratio: 4 / 5; object-position: 50% 40%; }
.page-hero-grid:has(.is-portrait) { grid-template-columns: 1.4fr 1fr; }
.page-hero:has(.is-portrait) { padding-block: 48px 52px; }

.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--sky) 50%, var(--surface) 70%); background-size: 300% 100%; border-radius: 16px; }
.skeleton-row { height: 118px; border-radius: 12px; margin-block: 14px; }
.skeleton-card { min-height: 380px; border-radius: 24px; }
.skeleton-member { aspect-ratio: .82; border-radius: 24px; }
.skeleton-title { display: block; height: 1.1em; width: min(560px, 100%); }
.photo-placeholder { display: flex; align-items: center; justify-content: center; background: var(--sky); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -1px; width: 100%; height: 100%; }
.photo-placeholder .icon { width: 40px; height: 40px; }
.card-category { color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.4; }
.card-owner { color: var(--muted); font-size: 14px; margin-top: 2px; }
.card-text { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--on-action); background: var(--action); padding: 3px 10px 3px 7px; border-radius: 999px; }
.badge .icon { width: 14px; height: 14px; flex-basis: 14px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-button { border: 1px solid var(--line); color: var(--accent); }
.contact-button:hover { background: var(--sky); border-color: var(--accent); }
.event-row.is-past .event-date { opacity: .6; }
.event-past { font-size: 13px; color: var(--muted); padding: 10px 17px; border: 1px dashed var(--line); border-radius: 999px; white-space: nowrap; }
.event-meta { display: flex; align-items: center; gap: 6px; }
.event-meta .icon { width: 16px; height: 16px; flex-basis: 16px; color: var(--accent); }

/* Inicio */
.about-content .text-link { margin-top: 16px; }
.agenda-preview { display: grid; grid-template-columns: .7fr 1.3fr; gap: 72px; align-items: start; }
.agenda-preview-heading { position: sticky; top: 118px; }
.agenda-preview-heading p { color: var(--muted); margin-block: 16px 28px; max-width: 340px; }
.featured-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.featured-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.featured-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.featured-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.featured-photo { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.featured-card .photo-placeholder { aspect-ratio: 5 / 4; height: auto; }
.featured-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 18px; }
.featured-body h3 { font-size: 19px; letter-spacing: -.4px; line-height: 1.35; margin-top: 4px; }
.featured-body .contact-buttons { margin-top: auto; padding-top: 16px; margin-left: -4px; }
.news { background: var(--surface); }
.news-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px 40px; }
.news-layout .is-featured { grid-row: span 2; }
.news-card { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start; }
.news-card.is-featured { grid-template-columns: 1fr; }
.news-media { display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky); }
.news-card.is-featured .news-media { aspect-ratio: 16 / 10; border-radius: 24px; }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-placeholder { height: 100%; }
.news-date { font-size: 13px; color: var(--muted); }
.news-title { font-size: 19px; letter-spacing: -.4px; line-height: 1.35; margin-top: 4px; }
.news-card.is-featured .news-title { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -1px; }
.news-title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.news-summary { color: var(--muted); font-size: 15px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-layout.is-page { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.news-layout.is-page .news-card { grid-template-columns: 1fr; gap: 16px; }
.news-layout.is-page .is-featured { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.pagination { display: flex; justify-content: center; margin-top: 48px; }
.partners { padding-bottom: 30px; }
.partners-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; border-top: 1px solid var(--line); padding-top: 56px; }
.partners-panel p { color: var(--muted); margin-block: 14px 8px; max-width: 360px; }
.partners-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 24px 16px; }
.partner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.partner-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--sky); font-size: 22px; margin-bottom: 6px; }
.partner.is-org .partner-photo { border-radius: 18px; object-fit: contain; background: var(--paper); padding: 6px; }
.partner-name { font-size: 13px; font-weight: 600; line-height: 1.35; }
.partner-role { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* Feriantes */
.directory { padding-top: 54px; }
.directory-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 36px; }
.search-field { display: flex; align-items: center; gap: 10px; min-width: min(340px, 100%); flex: 0 1 380px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); }
.search-field:focus-within { border-color: var(--accent); }
.search-field input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: transparent; color: var(--ink); font-size: 15px; outline: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.vendor-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.vendor-card { display: flex; flex-direction: column; min-width: 0; }
.vendor-media { display: block; padding: 0; border: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky); }
.vendor-media img { width: 100%; height: 100%; object-fit: cover; }
.vendor-media:hover img { transform: scale(1.03); }
.vendor-body { display: flex; flex-direction: column; flex: 1; padding: 18px 4px 0; }
.vendor-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.vendor-body h3 { font-size: 20px; letter-spacing: -.45px; line-height: 1.35; margin-top: 4px; }
.vendor-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.vendor-footer .text-link { background: none; border: 0; padding: 0; font-size: 14px; }
.vendor-dialog { width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 24px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgb(19 35 47 / 28%); }
.vendor-dialog::backdrop { background: rgb(19 35 47 / 55%); }
.dialog-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.dialog-media { min-height: 320px; background: var(--sky); }
.dialog-media img { width: 100%; height: 100%; object-fit: cover; }
.dialog-media .photo-placeholder { height: 100%; font-size: 56px; }
.dialog-body { padding: 44px 36px 34px; }
.dialog-body h2 { font-size: 30px; letter-spacing: -1px; margin-top: 4px; }
.dialog-text { margin-block: 18px 22px; color: var(--muted); font-size: 15px; }
.dialog-text p + p { margin-top: 10px; }
.dialog-close { position: absolute; top: 12px; right: 12px; background: var(--card); border: 1px solid var(--line); z-index: 1; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px 48px; border-radius: 24px; background: var(--sky); }
.cta-band h2 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -1.2px; }
.cta-band p { color: var(--muted); margin-top: 8px; }

/* Agenda */
.agenda-page { padding-top: 48px; }
.agenda-page .agenda-filters { margin-bottom: 30px; }
.agenda-layout { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 56px; align-items: start; }
.calendar { position: sticky; top: 112px; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.calendar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-title { font-size: 19px; letter-spacing: -.4px; }
.calendar-header .icon-button { border-color: var(--line); }
.calendar-header .icon-button:disabled { opacity: .35; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calendar-weekdays span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding-block: 6px; }
.calendar-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; aspect-ratio: 1; min-height: 40px; border: 1px solid transparent; border-radius: 12px; background: transparent; font-size: 14px; padding: 0; }
.calendar-day.is-past { color: var(--muted); }
.calendar-day.is-today .calendar-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); }
.calendar-day.has-events { background: var(--sky); font-weight: 700; color: var(--ink); }
.calendar-day.has-events.is-past { opacity: .7; }
.calendar-day.has-events:hover { border-color: var(--accent); }
.calendar-day[aria-pressed="true"] { background: var(--action); color: var(--on-action); }
.calendar-marks { display: flex; gap: 3px; }
.calendar-mark { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.calendar-day[aria-pressed="true"] .calendar-mark { background: var(--on-action); }
.calendar-help { font-size: 12px; color: var(--muted); margin-top: 12px; }
.agenda-results-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.agenda-results-header h2 { font-size: 24px; letter-spacing: -.7px; }
.agenda-results-header .text-link { background: none; border: 0; padding: 0; }

/* Socios */
.member-group + .member-group { margin-top: 64px; }
.member-group-title { font-size: 26px; letter-spacing: -.8px; margin-bottom: 28px; }
.member-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 26px; }
.member-card { display: flex; flex-direction: column; align-items: flex-start; }
.member-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; font-size: 44px; }
.member-photo.photo-placeholder { height: auto; }
.member-card.is-org .member-photo { object-fit: contain; background: var(--paper); border: 1px solid var(--line); padding: 18px; }
.member-body { padding-top: 16px; }
.member-body h3 { font-size: 18px; letter-spacing: -.35px; line-height: 1.35; }
.member-role { color: var(--accent); font-size: 13px; font-weight: 600; margin-top: 2px; }
.member-text { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.member-body .text-link { font-size: 14px; }

/* Nosotros */
.values-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.values-layout h2 span { color: var(--accent); }
.values-lead { font-size: 18px; color: var(--muted); margin-top: 20px; max-width: 420px; }
.values-list { list-style: none; margin: 0; padding: 0; }
.values-list li { display: flex; gap: 20px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.values-list li:first-child { padding-top: 0; }
.values-list .icon { width: 28px; height: 28px; flex-basis: 28px; color: var(--accent); margin-top: 2px; }
.values-list h3 { font-size: 18px; margin-bottom: 4px; }
.values-list p { color: var(--muted); font-size: 15px; }
.lines { background: var(--surface); }
.lines-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.line-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; padding: 28px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.line-card:hover { border-color: var(--accent); }
.line-card.is-tinted { background: var(--sky); border-color: transparent; }
.line-photo { grid-row: span 2; min-height: 520px; border: 0; color: #fff; }
.line-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(19 35 47 / 0%) 30%, rgb(19 35 47 / 82%) 100%); }
.line-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.line-copy > .icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 4px; }
.line-photo .line-copy > .icon, .line-photo .line-link { color: #fff; }
.line-copy strong { font-family: var(--font-display); font-size: 21px; letter-spacing: -.5px; line-height: 1.3; }
.line-copy > span { font-size: 14px; line-height: 1.6; color: var(--muted); }
.line-photo .line-copy > span { color: rgb(255 255 255 / 88%); }
.line-copy > .line-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-top: 4px; }
.line-link .icon { width: 18px; height: 18px; flex-basis: 18px; }
.lines-grid .line-card:last-child { grid-column: span 2; }
.sede-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.sede-panel img { width: 100%; aspect-ratio: 1.35; object-fit: cover; border-radius: 24px; }
.sede-panel p { color: var(--muted); font-size: 17px; margin-top: 16px; }
.sede-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }

/* Nota */
.article-inner { max-width: 760px; }
.back-link { margin-bottom: 20px; }
.article-header h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -2px; margin-top: 6px; }
.article-photo { margin-block: 36px; }
.article-photo img { width: 100%; border-radius: 24px; }
.article-body { font-size: 17px; line-height: 1.8; margin-top: 30px; }
.article-body p + p { margin-top: 18px; }
.article-body a, .faq a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact .faq h2 { font-size: 19px; letter-spacing: -.4px; margin-bottom: 23px; }

@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: shimmer 1.4s ease-in-out infinite; }
  .vendor-media img { transition: transform 300ms cubic-bezier(.16, 1, .3, 1); }
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .button, .icon-button, .chip, .join-option, .event-link, .contact-button, .line-card, .vendor-media img, .featured-card { transition: background-color 160ms, border-color 160ms, transform 160ms; }
  .disclosure-icon, .site-nav a::after { transition: transform 180ms; }
  .button:hover .icon:last-child, .text-link:hover .icon:last-child { transform: translate(2px, -1px); }
  .button .icon, .text-link .icon { transition: transform 180ms; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 1440px) {
  .hero { padding-block: 80px 86px; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 64px); }
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; order: 3; justify-content: center; padding-bottom: 12px; }
  .has-js .header-inner { flex-wrap: nowrap; }
  .has-js .site-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; padding: 12px 32px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 18px rgb(38 94 132 / 8%); z-index: 11; }
  .has-js .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .has-js .site-nav a { padding-block: 12px; font-size: 16px; }
  .has-js .site-nav a::after { bottom: 8px; max-width: 36px; }
  .has-js .menu-toggle { display: inline-flex !important; }
  .brand-name { font-size: 17px; }
  .brand-logo { width: 47px; height: 47px; }
  .header-inner { gap: 18px; }
  .header-actions { gap: 3px; }
  .hero-grid { gap: 48px; }
  h1 { font-size: clamp(45px, 5.9vw, 64px); letter-spacing: -3px; }
  .eyebrow { font-size: 9px; letter-spacing: .9px; gap: 8px; }
  .hero-actions { gap: 20px; }
  .hero-description { font-size: 17px; }
  .hero-inset-frame { width: 160px; left: -22px; bottom: 30px; }
  .hero-visual figcaption { font-size: 10px; }
  .about-grid { gap: 60px; }
  .activities-grid { gap: 45px; }
  .activity summary { font-size: 17px; }
  .join-panel { gap: 48px; padding: 44px; }
  .join-copy h2 { font-size: 34px; }
  .contact-grid { gap: 60px; }
}
@media (max-width: 900px) {
  .header-actions { gap: 8px; }
  .hero { padding-block: 54px 58px; }
  .hero-grid { gap: 36px; }
  h1 { font-size: 49px; letter-spacing: -2.6px; }
  .hero-visual { padding-bottom: 46px; }
  .hero-inset-frame { width: 145px; bottom: 40px; }
  .hero-photo { aspect-ratio: 1.05; }
  .hero-visual figcaption { max-width: 200px; margin-left: auto; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .about-grid { gap: 45px; }
  .about-content .about-lead { font-size: 18px; }
  .about-values { gap: 22px; }
  .activity-body { padding-left: 0; }
  .activity-symbol { display: none; }
  .activity summary { padding-block: 21px; }
  .activity-photo img { aspect-ratio: .95; }
  .join-panel { gap: 32px; padding: 36px; }
  .join-copy h2 { font-size: 32px; }
  .contact-grid { gap: 40px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 62px; }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-logo { width: 43px; height: 43px; }
  .brand-name { font-size: 16px; letter-spacing: -.45px; }
  .brand-place { font-size: 9px; margin-top: 5px; }
  .header-contact { display: none; }
  .header-actions { gap: 1px; }
  .icon-button { width: 40px; height: 44px; }
  .site-nav { gap: 20px; flex-wrap: wrap; }
  .has-js .site-nav { padding-inline: 24px; }
  .hero { padding-block: 43px 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 43px; }
  .eyebrow { font-size: 9px; letter-spacing: .85px; margin-bottom: 21px; }
  .eyebrow-line { width: 19px; }
  h1 { font-size: clamp(45px, 12vw, 64px); letter-spacing: -2.7px; line-height: 1.1; }
  .hero-description { font-size: 17px; margin-top: 23px; max-width: 430px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 17px; margin-top: 25px; }
  .hero-actions .button { padding: 14px 20px; min-height: 52px; font-size: 14px; gap: 13px; }
  .hero-actions .text-link { font-size: 13px; gap: 7px; }
  .hero-visual { margin-left: 13px; padding-bottom: 39px; }
  .hero-photo-frame { padding: 6px; border-radius: 26px; }
  .hero-photo { aspect-ratio: 1.36; border-radius: 20px; }
  .hero-inset-frame { width: 143px; left: -13px; bottom: 36px; border-width: 5px; border-radius: 17px; }
  .hero-visual figcaption { font-size: 10px; max-width: 190px; padding-top: 13px; }
  .about-grid, .activities-grid, .join-panel, .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 29px; }
  h2 { font-size: 34px; letter-spacing: -1.4px; }
  .section-kicker { font-size: 13px; margin-bottom: 15px; }
  .about-heading h2 { max-width: 390px; }
  .about-content .about-lead { font-size: 18px; }
  .about-content > p { font-size: 15px; }
  .about-values { gap: 25px; margin-top: 30px; }
  .section-heading { margin-bottom: 31px; }
  .section-heading > p:not(.section-kicker) { font-size: 16px; margin-top: 17px; }
  .activities-grid { gap: 30px; }
  .activity-photo { position: static; }
  .activity-photo img { aspect-ratio: 1.3; }
  .activity-photo figcaption { font-size: 12px; }
  .activity-symbol { display: flex; }
  .activity summary { font-size: 17px; padding-block: 19px; gap: 14px; }
  .activity-body { padding: 0 7px 21px 57px; }
  .activity-body p { font-size: 14px; }
  .agenda-filters { gap: 7px; margin-bottom: 25px; }
  .agenda-filters button { padding: 10px 16px; font-size: 13px; }
  .event-row { grid-template-columns: 64px minmax(0, 1fr); gap: 16px 19px; align-items: start; padding-block: 22px; }
  .event-date { padding: 11px 5px; }
  .event-date strong { font-size: 28px; }
  .event-date span { font-size: 10px; }
  .event-copy h3 { font-size: 18px; }
  .event-copy p { font-size: 13px; }
  .event-link, .event-past { grid-column: 2; justify-self: start; font-size: 13px; min-height: 44px; padding: 9px 15px; }
  .agenda-note { font-size: 12px; }
  .join-panel { width: calc(100% - 40px); gap: 34px; padding: 31px 24px; border-radius: 24px; }
  .join-copy h2 { font-size: 33px; }
  .join-symbol { width: 36px; height: 36px; margin-bottom: 18px; }
  .join-copy p { font-size: 15px; margin-top: 19px; max-width: 380px; }
  .join-option { padding: 13px 12px; gap: 11px; }
  .contact { padding-top: 0; }
  .contact-grid { gap: 40px; }
  .contact-copy > p { font-size: 15px; }
  .faq { padding-top: 0; }
  .faq h3 { font-size: 18px; margin-bottom: 11px; }
  .faq summary { font-size: 14px; }
  .footer-main .brand-name { font-size: 15px; }
  .footer-main .brand-logo { width: 40px; height: 40px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0; font-size: 11px; padding-block: 16px 8px; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 32px); }
  .brand-name { font-size: 14px; }
  .brand-logo { width: 39px; height: 39px; }
  h1 { font-size: 43px; letter-spacing: -2.5px; }
  .hero-actions { gap: 10px; }
  .hero-actions .button { padding-inline: 15px; }
  .hero-actions .text-link { font-size: 12px; gap: 3px; }
  .hero-inset-frame { width: 122px; }
  .hero-visual figcaption { max-width: 166px; }
  .eyebrow { font-size: 8px; }
  .join-panel { padding-inline: 20px; }
}


/* Páginas nuevas: adaptación a tablet y celular. */
@media (max-width: 1100px) {
  .vendor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agenda-layout { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 36px; }
  .agenda-preview { gap: 44px; }
  .footer-main { grid-template-columns: 1.2fr .8fr 1fr; gap: 32px; }
  .values-layout { gap: 56px; }
}
@media (max-width: 900px) {
  .page-hero-grid, .values-layout, .sede-panel, .partners-panel { grid-template-columns: 1fr; gap: 36px; }
  .agenda-preview { grid-template-columns: 1fr; gap: 26px; }
  .agenda-preview-heading { position: static; }
  .agenda-layout { grid-template-columns: 1fr; }
  .calendar { position: static; max-width: 460px; }
  .news-layout, .news-layout.is-page { grid-template-columns: 1fr 1fr; }
  .news-layout .is-featured { grid-column: 1 / -1; grid-row: auto; }
  .news-card { grid-template-columns: 1fr; gap: 14px; }
  .news-layout.is-page .is-featured { grid-template-columns: 1fr; gap: 16px; }
  .lines-grid { grid-template-columns: 1fr 1fr; }
  .line-photo { grid-row: auto; grid-column: 1 / -1; min-height: 360px; }
  .lines-grid .line-card:last-child { grid-column: auto; }
  .dialog-inner { grid-template-columns: 1fr; }
  .dialog-media { min-height: 0; aspect-ratio: 4 / 3; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .section-tight { padding-block: 8px 62px; }
  .page-hero, .page-hero-compact { padding-block: 40px 44px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 48px); letter-spacing: -1.8px; }
  .page-lead { font-size: 16px; margin-top: 16px; }
  .page-hero-photo { padding: 6px; border-radius: 26px; }
  .page-hero-photo img { border-radius: 20px; }
  .featured-heading { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
  .featured-track { grid-auto-columns: 78%; gap: 14px; margin-right: -20px; padding-right: 20px; }
  .news-layout, .news-layout.is-page { grid-template-columns: 1fr; gap: 32px; }
  .partners-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; }
  .directory { padding-top: 32px; }
  .directory-toolbar { margin-bottom: 26px; }
  .search-field { flex-basis: 100%; }
  .chip-group { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px; padding-bottom: 4px; scrollbar-width: none; }
  .chip { flex-shrink: 0; padding: 9px 16px; font-size: 13px; }
  .vendor-grid { grid-template-columns: 1fr; gap: 34px; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .member-photo { font-size: 32px; }
  .member-group-title { font-size: 22px; margin-bottom: 20px; }
  .dialog-body { padding: 26px 22px 24px; }
  .dialog-body h2 { font-size: 25px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .agenda-page { padding-top: 32px; }
  .calendar { padding: 16px 12px 14px; max-width: none; }
  .calendar-day { min-height: 38px; font-size: 13px; border-radius: 10px; }
  .agenda-results-header h2 { font-size: 21px; }
  .lines-grid { grid-template-columns: 1fr; gap: 14px; }
  .line-photo { min-height: 320px; }
  .line-card { min-height: 0; padding: 24px 22px; }
  .values-list li { gap: 16px; padding-block: 20px; }
  .article-body { font-size: 16px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-block: 36px 28px; }
}

/* Galería: grilla tipo mosaico, visor a pantalla completa y vista previa en la portada. */
.gallery-page { padding-top: 48px; }
.gallery-grid { list-style: none; margin: 0; padding: 0; columns: 3 300px; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin-bottom: 18px; }
.gallery-button { display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: var(--sky); cursor: zoom-in; }
.gallery-button img { width: 100%; height: auto; }
.gallery-caption { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 8px 4px 0; }
.gallery-skeleton { width: 100%; border-radius: 20px; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(9 19 27 / 94%); color: #fff; }
.lightbox::backdrop { background: rgb(9 19 27 / 70%); }
.lightbox-inner { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; height: 100%; padding: 56px 20px 24px; }
.lightbox-figure { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lightbox-figure img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.lightbox-figure figcaption { display: flex; justify-content: space-between; gap: 20px; width: min(100%, 900px); font-size: 14px; color: rgb(255 255 255 / 86%); }
.lightbox-count { margin-left: auto; white-space: nowrap; color: rgb(255 255 255 / 64%); }
.lightbox .icon-button { color: #fff; background: rgb(255 255 255 / 10%); }
.lightbox .icon-button:hover { background: rgb(255 255 255 / 20%); }
.lightbox-nav { justify-self: center; width: 52px; height: 52px; }
.lightbox-close { position: absolute; top: 12px; right: 16px; }
.lightbox.is-single .lightbox-nav { visibility: hidden; }
.home-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 210px; gap: 14px; }
.home-gallery.tiene-3 { grid-template-columns: 2fr 1fr; }
.home-gallery.tiene-1 { grid-template-columns: 1fr; grid-auto-rows: 380px; }
.home-gallery a { display: block; border-radius: 20px; overflow: hidden; background: var(--sky); }
.home-gallery a:first-child { grid-row: span 2; }
.home-gallery.tiene-1 a:first-child { grid-row: auto; }
.home-gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .gallery-button img, .home-gallery img { transition: transform 400ms cubic-bezier(.16, 1, .3, 1); }
  .gallery-button:hover img, .home-gallery a:hover img { transform: scale(1.03); }
}
@media (max-width: 1280px) and (min-width: 1101px) {
  .site-nav { gap: 20px; }
}
@media (max-width: 767px) {
  .gallery-page { padding-top: 28px; }
  .gallery-grid { columns: 2; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .gallery-button, .gallery-skeleton { border-radius: 14px; }
  .gallery-caption { font-size: 12px; padding-top: 6px; }
  .lightbox-inner { grid-template-columns: minmax(0, 1fr); padding: 60px 12px 88px; }
  .lightbox-figure img { max-height: calc(100dvh - 190px); }
  .lightbox-nav { position: absolute; bottom: 20px; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
  .home-gallery, .home-gallery.tiene-3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .home-gallery a:first-child { grid-column: 1 / -1; grid-row: auto; }
  .home-gallery.tiene-1 { grid-auto-rows: 240px; grid-template-columns: 1fr; }
  .home-gallery a { border-radius: 14px; }
}

/* ==========================================================================
   Distribución inspirada en sociedadcivilenred.org.ar (pedido del cliente),
   con la paleta, tipografías y fotos propias de Creciendo Juntos.
   ========================================================================== */
:root {
  --band: #1d4f73;
  --band-card: #2a6b95;
  --band-dark: #102c42;
  --on-band: #ffffff;
  --shadow-card: 0 14px 34px rgb(28 54 75 / 11%);
}
:root[data-theme="dark"] {
  --band: #173c56;
  --band-card: #22506f;
  --band-dark: #0b1d2a;
  --shadow-card: 0 14px 34px rgb(0 0 0 / 32%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --band: #173c56;
    --band-card: #22506f;
    --band-dark: #0b1d2a;
    --shadow-card: 0 14px 34px rgb(0 0 0 / 32%);
  }
}

.blob { position: absolute; display: block; pointer-events: none; }
.button-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.button-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button-outline-light { background: transparent; color: #fff; border: 2px solid #fff; }
.button-outline-light:hover { background: #fff; border-color: #fff; color: #1c364b; }
.centered-heading { max-width: 700px; margin: 0 auto 42px; text-align: center; }
.centered-heading > p { color: var(--muted); font-size: 17px; margin-top: 14px; }
.centered-action { display: flex; justify-content: center; margin-top: 40px; }

/* Cabecera: redes en una píldora oscura, como la referencia. */
.social-pill { display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px; border-radius: 999px; background: var(--ink); }
.social-pill a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--paper); }
.social-pill a:hover { background: color-mix(in srgb, var(--paper) 16%, transparent); }
.social-pill .icon { width: 19px; height: 19px; flex-basis: 19px; }

/* Portada */
.hero-ref { position: relative; overflow: hidden; padding: 64px 0 120px; }
.hero-ref-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-ref h1 { font-size: clamp(46px, 5.2vw, 70px); }
.hero-ref h1 .resaltado { display: inline-block; margin-top: 8px; padding: 0 .28em .08em; color: var(--on-action); background: var(--action); border-radius: 46% 54% 42% 58% / 62% 48% 52% 38%; }
.blob-hero-left { left: -70px; top: -50px; width: 190px; height: 250px; background: var(--action); border-radius: 0 64% 58% 0 / 0 52% 62% 0; opacity: .85; }
.hero-blobs { position: relative; aspect-ratio: 1 / .92; }
.hero-blobs .blob { z-index: 0; }
.blob-a { width: 34%; aspect-ratio: 1; top: -4%; right: 2%; background: var(--action); border-radius: 58% 42% 63% 37% / 41% 55% 45% 59%; }
.blob-b { width: 18%; aspect-ratio: 1; top: 38%; right: -5%; background: var(--accent); border-radius: 50%; }
.blob-c { width: 46%; aspect-ratio: 1.2; bottom: -6%; right: 8%; background: var(--sky); border-radius: 40% 60% 35% 65% / 60% 40% 60% 40%; }
.blob-d { width: 9%; aspect-ratio: 1; top: 4%; left: 12%; background: var(--accent); border-radius: 50%; }
.blob-e { width: 6%; aspect-ratio: 1; bottom: 20%; right: 0; background: var(--ink); border-radius: 50%; }
.blob-photo { position: absolute; z-index: 1; inset: 6% 8% 12% 10%; overflow: hidden; border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%; box-shadow: var(--shadow-card); }
.blob-photo img, .blob-photo-small img { width: 100%; height: 100%; object-fit: cover; }
.blob-photo-small { position: absolute; z-index: 2; left: 0; bottom: 0; width: 32%; aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 6px solid var(--paper); box-shadow: var(--shadow-card); }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 64px; fill: var(--surface); }

.about-ref { background: var(--surface); padding-bottom: 0; text-align: center; }
.about-ref-inner { max-width: 860px; }
.about-ref p { max-width: 640px; margin: 18px auto 28px; color: var(--muted); font-size: 17px; }
.about-ref-photo { margin-top: 48px; }
.about-ref-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 30px 30px 0 0; }

.lines-ref { position: relative; padding-bottom: 94px; }
.lines-ref-band { position: relative; overflow: hidden; padding: 84px 0 170px; background: var(--band); color: var(--on-band); text-align: center; }
.lines-ref-band h2 { color: var(--on-band); }
.lines-ref-band p { max-width: 620px; margin: 16px auto 0; color: rgb(255 255 255 / 82%); font-size: 17px; }
.lines-ref-heading { position: relative; }
.blob-band { left: -120px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%; background: rgb(255 255 255 / 6%); }
.lines-ref-cards { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: -120px; }
.line-ref-card { display: block; padding: 34px 34px 30px; border-radius: 24px; background: var(--band-card); color: var(--on-band); box-shadow: var(--shadow-card); }
.line-ref-card .icon { width: 38px; height: 38px; flex-basis: 38px; margin-bottom: 18px; stroke-width: 1.5; }
.line-ref-card h3 { font-size: 22px; letter-spacing: -.4px; margin-bottom: 8px; color: var(--on-band); }
.line-ref-card p { color: rgb(255 255 255 / 84%); font-size: 15px; line-height: 1.6; }

.agenda-ref { background: var(--paper); padding-top: 24px; }
.agenda-ref-list { max-width: 940px; margin: 0 auto; padding: 4px 34px; border-top: 0; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); }
.agenda-ref-list .event-row:last-child { border-bottom: 0; }
.agenda-ref-list .empty-state { padding: 30px 0; }

.ref-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; }
.ref-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); }
.ref-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 24px 24px 0 0; background: var(--sky); }
.ref-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ref-card-media .photo-placeholder { height: 100%; }
.ref-tag { position: relative; z-index: 1; align-self: flex-start; margin: -16px 0 0 22px; padding: 6px 14px; border-radius: 999px; background: var(--action); color: var(--on-action); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; box-shadow: 0 6px 14px rgb(28 54 75 / 16%); }
.ref-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 24px 22px; }
.ref-card-title { font-size: 18px; font-weight: 800; letter-spacing: -.3px; line-height: 1.35; }
.ref-card-title a:hover { color: var(--accent); }
.ref-card-text { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ref-date { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-top: 12px; }
.ref-date .icon { width: 15px; height: 15px; flex-basis: 15px; }
.ref-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.ref-more { margin-left: auto; color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
.ref-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.news-ref { background: var(--surface); }
.home-gallery-section { background: var(--surface); }
.partners-ref .partners-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px 20px; }
.partners-ref .partner { width: 116px; }

.banner-section { padding-top: 70px; }
.banner-ref { position: relative; display: flex; align-items: center; min-height: 320px; overflow: hidden; border-radius: 30px; background: var(--band); box-shadow: var(--shadow-card); }
.banner-ref img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-ref::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(16 44 66 / 94%) 0%, rgb(16 44 66 / 78%) 52%, rgb(16 44 66 / 40%) 100%); }
.banner-ref-line { position: absolute; z-index: 1; right: -70px; top: -90px; width: 300px; height: 300px; border: 2px solid rgb(255 255 255 / 45%); border-radius: 50%; }
.banner-ref-copy { position: relative; z-index: 2; max-width: 560px; padding: 56px 64px; color: #fff; }
.banner-ref-copy h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); }
.banner-ref-copy p { color: rgb(255 255 255 / 86%); font-size: 17px; margin: 14px 0 28px; }

/* Pie: franja de color con una barra oscura redondeada. */
.footer-ref { position: relative; overflow: hidden; padding: 72px 0 34px; border-top: 0; background: var(--band); color: var(--on-band); }
.blob-footer-a { left: -140px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: rgb(255 255 255 / 6%); }
.blob-footer-b { left: 6%; bottom: -90px; width: 190px; height: 190px; border-radius: 50%; background: rgb(255 255 255 / 7%); }
.footer-ref-inner { position: relative; }
.footer-ref-top { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; text-align: center; }
.footer-ref .brand-name, .footer-ref .brand-place { color: #fff; }
.footer-ref-top > p { color: rgb(255 255 255 / 80%); font-size: 15px; max-width: 520px; }
.footer-ref-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 22px; }
.footer-ref-links a { display: inline-flex; align-items: center; min-height: 40px; color: rgb(255 255 255 / 88%); font-size: 14px; font-weight: 500; }
.footer-ref-links a:hover, .footer-ref-admin:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-ref-top > .footer-ref-address { max-width: none; }
.footer-ref-address { display: flex; align-items: center; justify-content: center; gap: 8px; color: rgb(255 255 255 / 72%); font-size: 13px; }
.footer-ref-address .icon { width: 16px; height: 16px; flex-basis: 16px; }
.footer-ref-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 46px; padding: 12px 22px 12px 32px; border-radius: 999px; background: var(--band-dark); box-shadow: 0 16px 34px rgb(0 0 0 / 22%); color: rgb(255 255 255 / 78%); font-size: 13px; }
.footer-ref-bar .footer-social { margin: 0; color: #fff; }
.footer-ref-bar .icon-button:hover { background: rgb(255 255 255 / 12%); }
.footer-ref-admin { display: inline-flex; align-items: center; min-height: 44px; color: rgb(255 255 255 / 78%); }

/* Páginas internas con el mismo lenguaje: formas de color, tarjetas con sombra. */
.page-hero { position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; left: -80px; top: -70px; width: 200px; height: 240px; background: var(--action); border-radius: 0 64% 58% 0 / 0 52% 62% 0; opacity: .7; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border-radius: 50%; background: var(--sky); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero-compact { text-align: center; }
.page-hero-compact .page-lead { margin-inline: auto; }
.vendor-card { border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); }
.vendor-media { border-radius: 24px 24px 0 0; }
.vendor-body { padding: 0 22px 20px; }
.vendor-top { margin-top: -16px; position: relative; z-index: 1; }
.vendor-top .card-category { padding: 6px 14px; border-radius: 999px; background: var(--action); color: var(--on-action); font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; box-shadow: 0 6px 14px rgb(28 54 75 / 16%); }
.vendor-top .badge { background: var(--card); color: var(--accent); border: 1px solid var(--line); }
.vendor-body h3 { margin-top: 10px; }
.member-card { overflow: hidden; border-radius: 24px; background: var(--card); box-shadow: var(--shadow-card); }
.member-photo { border-radius: 0; }
.member-body { padding: 16px 20px 22px; }
.calendar { box-shadow: var(--shadow-card); border-color: transparent; }
.cta-band { position: relative; overflow: hidden; background: var(--band); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / 82%); }
.cta-band::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border: 2px solid rgb(255 255 255 / 35%); border-radius: 50%; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }

@media (prefers-reduced-motion: no-preference) {
  .line-ref-card, .ref-card { transition: transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms; }
  .line-ref-card:hover, .ref-card:hover { transform: translateY(-3px); }
}
@media (max-width: 1280px) and (min-width: 1101px) {
  .site-nav { gap: 18px; }
  .social-pill a { width: 32px; height: 32px; }
}
@media (max-width: 1100px) {
  .ref-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-ref-grid { gap: 36px; }
}
@media (max-width: 900px) {
  .hero-ref-grid { grid-template-columns: 1fr; }
  .hero-blobs { max-width: 520px; width: 100%; margin: 0 auto; }
  .lines-ref-cards { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .social-pill { display: none; }
  .hero-ref { padding: 40px 0 90px; }
  .hero-ref h1 { font-size: clamp(42px, 11vw, 56px); }
  .blob-hero-left { width: 120px; height: 160px; left: -60px; }
  .wave { height: 40px; }
  .about-ref p { font-size: 16px; }
  .about-ref-photo { margin-top: 34px; }
  .about-ref-photo img { aspect-ratio: 4 / 3; border-radius: 22px 22px 0 0; }
  .lines-ref-band { padding: 60px 0 130px; }
  .lines-ref-band p { font-size: 15px; }
  .lines-ref-cards { margin-top: -96px; gap: 14px; }
  .line-ref-card { padding: 26px 22px 22px; }
  .line-ref-card h3 { font-size: 19px; }
  .lines-ref { padding-bottom: 62px; }
  .centered-heading { margin-bottom: 30px; }
  .centered-heading > p { font-size: 15px; }
  .agenda-ref-list { padding: 0 18px; }
  .ref-cards { grid-template-columns: 1fr; gap: 26px; }
  .banner-section { padding-top: 40px; }
  .banner-ref { min-height: 0; border-radius: 24px; }
  .banner-ref-copy { padding: 40px 26px; }
  .banner-ref-copy p { font-size: 15px; }
  .banner-ref::after { background: rgb(16 44 66 / 82%); }
  .footer-ref { padding: 54px 0 24px; }
  .footer-ref-bar { flex-direction: column; justify-content: center; text-align: center; border-radius: 24px; padding: 18px 20px; }
  .page-hero::before { width: 120px; height: 150px; left: -60px; }
  .page-hero::after { width: 140px; height: 140px; }
}
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-state p { margin-inline: auto; }
