:root {
  color-scheme: light;
  --blue: #082b83;
  --blue-hover: #173e9c;
  --navy: #0e1a3a;
  --navy-soft: #1b2a50;
  --yellow: #e6c15a;
  --yellow-hover: #edcd74;
  --yellow-logo: #e0a93b;
  --yellow-pale: #f7ecc4;
  --yellow-softer: #fbf4dc;
  --cta-bg: #f4e7b8;
  /* Dorado oscurecido para cumplir contraste 4.5:1 sobre el fondo claro. */
  --gold: #8a6500;
  --red: #d52b1e;
  --cyan: #16bce5;
  /* #128C4B da 4.3:1 con texto blanco; #107A41 llega a 5.4:1. */
  --green: #107a41;
  --green-hover: #0d6a38;
  --green-pale: #e8f5ed;
  --paper: #faf9f6;
  --white: #fff;
  --ink: #151e34;
  --field-border: #c9cedb;
  --muted: #536078;
  --line: #e3e5ea;
  --pale-blue: #eaf0fc;
  --error: #9e1723;
  --radius: 16px;
  --shadow: 0 15px 42px rgba(16, 29, 56, 0.08);
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --font-heading: Montserrat, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Deja espacio para la cabecera fija al saltar a #como-funciona o #buscar. */
html { scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.025em;
}
p { margin: 0; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
img { max-width: 100%; }

[data-scroll-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--scroll-reveal-delay, 0ms);
}
[data-scroll-reveal].is-revealed { opacity: 1; transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) {
  [data-scroll-reveal], [data-scroll-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

:focus-visible {
  outline: 3px solid var(--blue-hover);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus, h3[tabindex="-1"]:focus { outline: none; }

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .icon-fill { fill: currentColor; stroke: none; }

.container {
  width: min(100% - 72px, 1220px);
  margin-inline: auto;
}

.skip-link, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link:focus {
  z-index: 50;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip-path: none;
  border-radius: 8px;
  background: var(--white);
}

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--line); }
.flag-line { height: 6px; background: linear-gradient(90deg,var(--yellow) 0 50%,var(--blue) 50% 75%,var(--red) 75%); }
.topbar { background: var(--navy); color: #e6ecf8; font-size: .86rem; }
.marquee { position: relative; display: flex; height: 40px; overflow: hidden; }
.marquee-track { display: flex; flex: 0 0 auto; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: 0 0 auto; align-items: center; min-width: 100vw; margin: 0; padding: 0; list-style: none; }
.marquee-group li { display: inline-flex; align-items: center; height: 40px; white-space: nowrap; font-weight: 600; letter-spacing: .01em; }
.marquee-group li::after { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-inline: 22px; border-radius: 50%; background: var(--yellow); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { justify-content: flex-start; }
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  min-height: 82px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--blue);
  text-decoration: none;
}
.wordmark-logo { display: block; width: 136px; height: auto; }

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
  align-self: stretch;
}
.site-nav > a, .nav-dropdown-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 0;
  background: none;
  color: #3b4763;
  text-decoration: none;
  font: 700 .95rem/1.2 var(--font-heading);
  white-space: nowrap;
}
.site-nav > a:hover, .nav-dropdown-toggle:hover,
.site-nav > a[aria-current="page"], .nav-dropdown-toggle.is-current { color: var(--blue); }
.site-nav > a[aria-current="page"]::after, .nav-dropdown-toggle.is-current::after {
  position: absolute;
  content: "";
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px 3px 0 0;
}
.nav-chevron { display: inline-flex; transition: transform .18s ease; }
.nav-chevron .icon { width: 15px; height: 15px; }
.nav-dropdown { position: relative; display: flex; }
.nav-dropdown.is-open .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 6px);
  left: -10px;
  display: none;
  width: min(318px, calc(100vw - 32px));
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(14, 27, 61, .16);
}
.nav-dropdown.is-open .nav-dropdown-menu { display: grid; gap: 2px; }
.nav-dropdown-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.nav-dropdown-menu a strong { font: 700 .93rem/1.25 var(--font-heading); color: var(--navy); }
.nav-dropdown-menu a span { color: var(--muted); font-size: .8rem; }
.nav-dropdown-menu a:hover, .nav-dropdown-menu a:focus-visible { background: var(--yellow-softer); }
.nav-dropdown-menu a:hover strong { color: var(--blue); }

.menu-toggle { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); font-weight: 700; }
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 0; content: ""; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

/* ---------- Botones ---------- */
.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.25;
  text-align: center;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.button:hover { background: var(--pale-blue); border-color: #9db3dd; }
.button-outline { color: var(--blue); border-color: #c3cde1; }
.button-primary { color: var(--white); background: var(--blue); border-color: var(--blue); }
.button-primary:hover { color: var(--white); background: var(--blue-hover); border-color: var(--blue-hover); }
.button-accent { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.button-accent:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); color: var(--navy); }
.button-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.button-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }
.button-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.button-dark:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--white); }
.button-whatsapp { background: var(--green); border-color: var(--green); color: var(--white); }
.button-whatsapp:hover { background: var(--green-hover); border-color: var(--green-hover); color: var(--white); }
.button-whatsapp [data-icon], .button-whatsapp > .icon { display: inline-flex; }
.public-site .button { font-family: var(--font-heading); font-size: .95rem; }
.button-large { min-height: 52px; padding-inline: 28px; font-size: 1.02rem; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .button { min-height: 44px; padding-inline: 18px; border-radius: 999px; }
.header-account { border-color: #c9cedb; color: var(--ink); }
.nav-mobile-only { display: none !important; }
.header-account:hover { border-color: #9aa3b7; background: var(--paper); color: var(--blue); }
.button-accent:focus-visible, .button-ghost:focus-visible, .site-footer a:focus-visible {
  outline-color: var(--yellow);
}

/* ---------- Componentes comunes ---------- */
.eyebrow {
  font-size: .76rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.25;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.public-site .eyebrow { color: var(--gold); font-family: var(--font-heading); }
.public-site .eyebrow-hero { color: var(--yellow); }
.check-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; }
.check-list .icon { margin-top: .2em; color: var(--blue); stroke-width: 2.4; }
.muted { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-family: var(--font-heading); font-weight: 800; font-size: .95rem; text-decoration: none; }
.text-link .icon { transition: transform .18s ease; }
.text-link:hover .icon { transform: translateX(3px); }
.text-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.step-badge { display: inline-grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: var(--yellow); font: 800 1rem/1 var(--font-heading); }
.step-badge-yellow { background: var(--yellow); color: var(--navy); }

.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--navy); }
.section-head p + p, .section-head h2 + p { margin-top: 12px; }
.section-head .muted { font-size: 1.05rem; }
.section-head-center { margin-inline: auto; text-align: center; }

/* ---------- Portada ---------- */
.home-hero-wrap { position: relative; margin-top: 8px; }
.home-hero {
  position: relative;
  width: min(100% - 72px, 1220px);
  min-height: max(420px, calc(100vh - 157px));
  min-height: max(420px, calc(100svh - 157px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  overflow: hidden;
  border-radius: 28px;
  background: var(--navy);
  color: var(--white);
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 4.6vw, 60px);
  background: radial-gradient(ellipse at 0% 110%, #1d3170 0%, transparent 60%), var(--navy);
}
.hero-copy h1 {
  max-width: 11ch;
  margin-top: 16px;
  font-size: clamp(2.6rem, 4.6vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero-copy h1 > span { color: var(--yellow); }
.hero-description {
  max-width: 44ch;
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: #dfe6f5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .button { min-height: 50px; padding-inline: 22px; }
.hero-checks { margin-top: 28px; gap: 8px; font-size: .95rem; color: #e6ecf8; }
.hero-checks .icon { color: var(--yellow); }

.hero-visual { position: relative; display: block; margin: 0; min-width: 0; background: var(--navy-soft); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-visual-fallback { min-height: 220px; background: repeating-linear-gradient(135deg, var(--yellow) 0 22px, var(--blue) 22px 44px, var(--red) 44px 66px); }
.hero-photo-credit-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); margin: 8px auto 0; }
.hero-photo-credit { grid-column: 2; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; text-align: right; }
.hero-photo-credit a { color: inherit; text-underline-offset: 2px; }

.home-content { padding-block: 72px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.feature-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: box-shadow .18s ease, transform .18s ease;
}
.feature-card:hover { box-shadow: 0 16px 36px rgba(14,27,61,.08); transform: translateY(-2px); }
.feature-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 12px; background: var(--yellow-pale); color: var(--blue); }
.feature-icon .icon { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.2rem; color: var(--navy); }
.feature-card p { color: var(--muted); }
.feature-card .text-link { margin-top: 6px; }

.home-tradition { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 48px); align-items: center; padding-block: 72px 0; }
.tradition-visual { position: relative; margin: 0; aspect-ratio: 5 / 4; overflow: hidden; border-radius: 22px; background: repeating-linear-gradient(135deg, #f0e9d9 0 18px, #e9e0cb 18px 36px); }
.tradition-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.tradition-copy { display: grid; gap: 16px; }
.tradition-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--navy); }
.tradition-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }
.tradition-copy .check-list { margin-top: 4px; }

.home-process { margin-top: 64px; padding-block: 72px; background: var(--white); border-block: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.process-card { display: grid; justify-items: start; gap: 10px; }
.process-number { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 50%; background: var(--blue); color: var(--yellow); font: 800 1.15rem/1 var(--font-heading); }
.process-card h3 { font-size: 1.22rem; color: var(--navy); }
.process-card p { color: var(--muted); }

.home-guidance { padding-block: 72px; }
.guidance-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 4vw, 48px); padding: clamp(28px,4.5vw,48px); border-radius: 26px; background: var(--navy); color: var(--white); }
.guidance-card-light { grid-template-columns: minmax(0,1fr) auto; align-items: center; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.guidance-card-light .guidance-copy h2 { color: var(--navy); }
.guidance-card-light .guidance-copy > p:not(.eyebrow) { max-width: 72ch; color: var(--muted); font-size: 1.04rem; }
.guidance-card-light .guidance-copy .eyebrow { color: #a66a00; }
.guidance-actions { display: flex; align-items: center; justify-content: flex-end; }
.guidance-actions .button { min-height: 50px; margin: 0; white-space: nowrap; }
.guidance-copy { display: grid; justify-items: start; align-content: start; gap: 16px; }
.guidance-copy h2 { font-size: clamp(1.6rem,3vw,2.2rem); }
.guidance-copy > p:not(.eyebrow) { max-width: 52ch; color: #dfe6f5; font-size: 1.04rem; }
.guidance-copy .button { margin-top: 8px; }
.guidance-tips h3 { margin-bottom: 14px; color: var(--yellow); font-size: 1.08rem; }
.guidance-tips .check-list { color: #eef2fa; }
.guidance-tips .check-list .icon { color: var(--yellow); }
.guidance-note { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.08); }
.guidance-icon { display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 800 14px/1 var(--font-heading); }
.guidance-note p { color: #dbe2f1; font-size: .92rem; }
.guidance-note strong { color: var(--white); }

.home-faq { padding-block: 24px 72px; }
.faq-list { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; color: var(--navy); font: 700 1.02rem/1.35 var(--font-heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-item summary:focus-visible { outline-offset: -3px; border-radius: 14px; }
.faq-chevron { color: var(--blue); transition: transform .18s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); }

.home-cta { padding-block: 16px 24px; }
.cta-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding: clamp(28px, 4.5vw, 48px); border-radius: 26px; background: var(--cta-bg); color: var(--ink); }
.cta-copy { max-width: 720px; }
.cta-copy h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-copy p { margin-top: 10px; color: var(--ink); }
.cta-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.cta-actions .button { min-height: 50px; padding-inline: 22px; white-space: nowrap; }
.cta-card .button-dark:focus-visible, .cta-card .button-whatsapp:focus-visible { outline-color: var(--navy); }

/* ---------- Encabezado de páginas internas ---------- */
.page-heading { padding-block: 28px 30px; }
.page-heading .container { display: grid; justify-items: start; }
.page-heading .eyebrow { margin-top: 22px; }
.page-heading h1 { margin-top: 12px; color: var(--navy); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.page-heading-description { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.page-heading .eyebrow + h1 { margin-top: 10px; }
.page-heading .breadcrumb + h1 { margin-top: 22px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.breadcrumb a { font-weight: 700; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: .18em; }
.breadcrumb-separator { color: #a0a8b8; }

.directory-content { padding-block: 32px 68px; min-height: 320px; }
.directory-filters {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1fr;
  align-items: end;
  gap: 14px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.directory-count { margin-block: 17px 12px; color: var(--muted); font-weight: 700; }
.operator-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.operator-card {
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 30px rgba(16,29,56,.055);
}
.operator-link { display: flex; flex-direction: column; min-width: 0; color: var(--ink); text-decoration: none; }
a.operator-link:hover { background: #f8faff; }
.operator-link:focus-visible { outline-offset: -4px; }
.operator-logo {
  display: grid;
  place-items: center;
  min-height: 146px;
  padding: 20px;
  background: #f4f6fb;
  border-bottom: 1px solid #e9edf5;
}
.operator-logo img { display: block; width: min(100%,185px); height: 105px; object-fit: contain; }
.operator-initials { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 18px; background: var(--pale-blue); color: var(--blue); font: 750 1.85rem/1 var(--font-heading); }
.operator-body { padding: 18px 18px 12px; }
.operator-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; }
.operator-card-meta .operator-category { margin: 0; }
.operator-card-meta .experience-badge { padding: 3px 7px; }
.operator-body h3 { margin-top: 4px; font-size: 1.2rem; overflow-wrap: anywhere; }
.operator-category { color: var(--blue); font-size: .8rem; font-weight: 800; overflow-wrap: anywhere; }
.operator-place { margin-top: 5px; color: var(--muted); font-size: .9rem; }
.operator-description { margin-top: 8px; color: #44516a; font-size: .94rem; overflow-wrap: anywhere; }
.operator-website { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding: 8px 18px 15px; color: var(--blue); font-weight: 750; }
a.operator-link:hover .operator-website { text-decoration: underline; text-underline-offset: .2em; }
.operator-select { display: flex; align-items: center; gap: 10px; padding: 11px 18px; min-height: 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; cursor: pointer; }
.operator-select:has(input:checked) { color: var(--blue); background: #eef4ff; }
input[type="checkbox"] { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--blue); margin: 0; }
.directory-note { margin-top: 17px; color: var(--muted); font-size: .9rem; }
.selection-bar {
  position: sticky;
  z-index: 5;
  bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px 11px 19px;
  margin-top: 18px;
  border: 1px solid #a6b9dd;
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.selection-copy { color: var(--muted); }
.selection-copy strong { color: var(--blue); }
.selection-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.selection-notice { flex-basis: 100%; color: var(--blue); font-size: .9rem; }
.selection-notice:empty { display: none; }

.empty, .loading-state {
  grid-column: 1 / -1;
  padding: 40px clamp(18px, 5vw, 50px);
  border: 1px dashed #b9c8e1;
  border-radius: var(--radius);
  background: #f5f8fe;
  text-align: center;
}
.empty-mark { display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto 11px; color: var(--blue); background: #e3ecfc; border-radius: 12px; font-size: 1.4rem; }
.empty h3 { font-size: 1.24rem; }
.empty p { max-width: 55ch; margin: 8px auto 0; color: var(--muted); }
.empty .button { margin-top: 18px; }
.loading-state { color: var(--muted); }

.panel {
  padding: clamp(16px, 3vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stack { display: grid; gap: 15px; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: grid; align-content: start; min-width: 0; gap: 5px; font-weight: 650; }
.field-full { grid-column: 1 / -1; }
.field > span { font-size: .91rem; }
.field input:not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 8px 10px;
  border: 1px solid #b9c5da;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 450;
}
.field textarea { resize: vertical; min-height: 95px; }
.field input::placeholder, .field textarea::placeholder { color: #67738a; opacity: 1; }
.field select { cursor: pointer; }
.field :is(input,textarea,select):focus { border-color: var(--blue-hover); }
.consent { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px 11px; color: #3e4c63; font-size: .92rem; }
.consent-label { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.consent input { margin-top: 3px; }
.form-status:empty { display: none; }
.form-status.is-error { padding: 8px 10px; border-radius: 8px; color: var(--error); background: #fff0f0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Formularios del sitio público ---------- */
.public-site .field input:not([type="checkbox"]), .public-site .field select, .public-site .field textarea {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 12px;
  background: var(--white);
}
.public-site .field :is(input,textarea,select):hover { border-color: #9aa3b7; }
.public-site .field :is(input,textarea,select):focus-visible, .public-site .field :is(input,textarea,select):focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,43,131,.25); outline: 2px solid transparent; }
.public-site .field textarea { min-height: 130px; }
.char-counter { align-self: flex-end; color: var(--muted); font-size: .78rem; font-weight: 500; }

/* ---------- Afiliación (tarjeta de dos paneles) ---------- */
.af-layout { max-width: 1200px; margin-inline: auto; padding: 48px 24px 88px; }
.af-card { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 28px; box-shadow: 0 24px 60px rgba(14, 26, 58, .14); }
.af-panel { min-width: 0; padding: 56px 48px; }
.af-panel-info { display: flex; flex: 1 1 380px; flex-direction: column; gap: 20px; background: var(--navy); color: var(--white); }
.af-panel-form { flex: 1.5 1 520px; background: var(--white); }
.af-kicker { color: var(--yellow); font: 700 12px/1.3 var(--font-heading); letter-spacing: 2.5px; text-transform: uppercase; }
/* #B58900 no llega a 4.5:1 sobre blanco; se usa un dorado más oscuro. */
.af-kicker-gold { color: var(--gold); }
.af-panel-info h1 { font: 800 40px/1.1 var(--font-heading); letter-spacing: -1px; }
.af-panel-info h1 span { color: var(--yellow); }
.af-intro { color: #e6eaf5; font-size: 18px; line-height: 1.65; }
.af-steps { display: flex; flex-direction: column; margin: 16px 0 0; padding: 0; list-style: none; }
.af-steps li { display: flex; align-items: flex-start; gap: 18px; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.af-step-number { flex: none; padding-top: 3px; color: var(--yellow); font: 700 14px/1.2 var(--font-heading); letter-spacing: 1px; }
.af-steps strong { font: 700 16px/1.3 var(--font-heading); }
.af-steps p { margin-top: 4px; color: #c9d0e4; font-size: 15px; line-height: 1.5; }
.af-help { display: flex; flex-direction: column; gap: 14px; margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
.af-help p { color: #c9d0e4; font-size: 16px; }
.af-whatsapp { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 8px; background: var(--green); color: var(--white); font: 700 13px/1.2 var(--font-heading); letter-spacing: 1.6px; text-decoration: none; text-transform: uppercase; }
.af-whatsapp:hover { background: var(--green-hover); }
.af-whatsapp:focus-visible { outline-color: var(--yellow); }

.af-form { display: flex; flex-direction: column; gap: 24px; }
.af-form-head h2 { margin-top: 8px; color: var(--navy); font: 800 30px/1.2 var(--font-heading); letter-spacing: -.6px; }
/* align-items: flex-end mantiene los campos de una fila a la misma altura
   aunque una etiqueta ocupe dos líneas. */
.af-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px; }
.af-field { display: flex; flex: 1 1 240px; flex-direction: column; gap: 10px; min-width: 0; }
.af-field-full { flex-basis: 100%; }
.af-label { color: #646c80; font: 700 12px/1.4 var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; }
.af-required { color: #9a6f00; }
.af-optional { color: #646c80; font-weight: 600; letter-spacing: 1px; text-transform: none; }
.af-input { width: 100%; min-height: 56px; padding: 0 20px; border: 1px solid #e3ddcc; border-radius: 8px; background: #f7f4ec; color: var(--ink); font: 400 17px/1.4 var(--font-body); }
select.af-input { cursor: pointer; }
textarea.af-input { min-height: 0; padding: 16px 20px; line-height: 1.5; resize: vertical; }
.af-input::placeholder { color: #5f677b; opacity: 1; }
.af-input:hover { border-color: #c9bf9f; }
.af-input:focus, .af-input:focus-visible { border-color: var(--blue); background: var(--white); outline: 2px solid rgba(8, 43, 131, .25); outline-offset: 0; }
.af-consent { display: flex; align-items: flex-start; gap: 14px; }
.af-consent input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); }
.af-consent p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.af-consent label { cursor: pointer; }
.af-consent a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.af-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 60px; border: 0; border-radius: 8px; background: var(--yellow); color: var(--ink); font: 700 14px/1.2 var(--font-heading); letter-spacing: 2px; text-transform: uppercase; transition: background-color .18s ease; }
.af-submit .icon { width: 18px; height: 18px; }
.af-submit:hover { background: #d8b555; }
.af-submit:disabled { opacity: .6; }
.af-submit:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.receipt { padding: 16px; border: 1px solid #9fcbb4; border-radius: 12px; background: #ecf8f0; }
.receipt h3 { color: #195237; margin-bottom: 9px; }
.receipt-id { margin-top: 9px; overflow-wrap: anywhere; }
.receipt .button { margin-top: 13px; }
.receipt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.receipt-actions .button { margin-top: 0; }

.quote-dialog {
  width: min(100% - 24px, 710px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #bbc8df;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 25px 100px rgba(0,0,0,.25);
}
.quote-dialog::backdrop { background: rgba(12,24,50,.65); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { font-size: 1.45rem; }
.dialog-body { padding: 18px; }
.dialog-intro { color: var(--muted); }
.icon-button { min-width: 40px; min-height: 40px; padding: 2px 8px; background: #eef3fc; border: 1px solid transparent; border-radius: 8px; color: var(--blue); font-size: 1.55rem; line-height: 1; }
.icon-button:hover { border-color: #b9c8e1; }


/* ---------- Nosotros ---------- */
.about { padding-block: 8px 72px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4.5vw, 56px); align-items: stretch; }
.about-visual { position: relative; min-height: 420px; margin: 0; overflow: hidden; border-radius: 24px; background: var(--navy-soft); }
.about-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-visual-empty { display: grid; place-items: center; border: 2px dashed #d9cfae; background: repeating-linear-gradient(135deg, var(--yellow-softer) 0 18px, var(--yellow-pale) 18px 36px); }
.about-visual-empty figcaption { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--muted); font: 700 .9rem/1.2 var(--font-heading); }
.about-copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.about-copy h2 { color: var(--navy); font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.about-copy h3 { margin-top: 8px; color: var(--navy); font-size: 1.15rem; }
.about-lead { color: var(--muted); font-size: 1.06rem; }
.about-services { gap: 12px; }
.about-services strong { color: var(--navy); }
.about-commitment { padding: 18px 20px; border-left: 4px solid var(--yellow); border-radius: 0 14px 14px 0; background: var(--white); }
.about-commitment h3 { margin-top: 0; }
.about-commitment p { margin-top: 6px; color: var(--muted); }
.about-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.about-actions .button { min-width: 220px; }

/* ---------- Términos y condiciones ---------- */
.legal-content { padding-block: 28px 72px; }
.legal-document { max-width: 900px; margin-inline: auto; padding: clamp(20px, 4vw, 42px); border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.legal-updated { margin-bottom: 26px; color: var(--muted); font-size: .9rem; }
.legal-section + .legal-section { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 10px; color: var(--navy); font-size: 1.15rem; }
.legal-section p + p { margin-top: 10px; }
.legal-review-note { margin-top: 30px; padding: 14px 16px; border-radius: 10px; background: var(--yellow-softer); color: var(--navy); font-size: .92rem; }
/* ---------- Pie de página ---------- */
.site-footer { background: var(--navy); color: #dfe6f5; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 32px; padding-block: 48px 36px; }
.footer-wordmark { display: inline-flex; align-items: baseline; gap: 2px; color: var(--white); text-decoration: none; font: 800 1.55rem/1 var(--font-heading); letter-spacing: -.02em; }
.footer-wordmark-aso { color: var(--yellow-logo); }
.footer-wordmark small { margin-left: 6px; font-size: .5rem; font-weight: 600; letter-spacing: .35em; }
.footer-identity p { margin-top: 16px; max-width: 36ch; color: #c5cfe3; font-size: .95rem; }
.footer-links { display: grid; align-content: start; gap: 10px; font-size: .95rem; }
.footer-links strong { margin-bottom: 4px; color: var(--yellow); font: 800 .78rem/1.2 var(--font-heading); letter-spacing: .14em; text-transform: uppercase; }
.footer-links a { width: fit-content; color: #e6ecf8; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: .2em; }

.footer-navigation { display: block; }
.footer-navigation > strong { display: block; margin-bottom: 14px; }
.footer-nav-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.footer-nav-column { display: grid; align-content: start; gap: 10px; }
.footer-nav-column a { width: fit-content; color: #e6ecf8; text-decoration: none; }
.footer-nav-column a:hover { text-decoration: underline; text-underline-offset: .2em; }

.footer-bottom { padding-block: 18px 22px; border-top: 1px solid rgba(222,233,249,.16); color: #aab6cf; font-size: .82rem; }
.footer-credit { margin-top: 8px; }
.footer-credit a { color: #e6ecf8; text-decoration: none; }
.footer-credit a:hover { text-decoration: underline; text-underline-offset: .2em; }
.no-script { padding-block: 24px; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float { position: fixed; z-index: 30; right: 22px; bottom: 22px; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.whatsapp-float-bubble { display: grid; padding: 9px 14px; border-radius: 14px; background: var(--white); box-shadow: 0 10px 30px rgba(14,27,61,.16); color: var(--navy); font-size: .82rem; line-height: 1.3; }
.whatsapp-float-bubble strong { font-family: var(--font-heading); font-size: .86rem; }
.whatsapp-float-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--white); box-shadow: 0 10px 26px rgba(16,122,65,.4); transition: transform .18s ease, background-color .18s ease; }
.whatsapp-float-icon .icon { width: 32px; height: 32px; }
.whatsapp-float:hover .whatsapp-float-icon { background: var(--green-hover); transform: scale(1.05); }
.whatsapp-float:focus-visible { outline: none; }
.whatsapp-float:focus-visible .whatsapp-float-icon { outline: 3px solid var(--blue-hover); outline-offset: 3px; }

.table-wrap { max-width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td { border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.data-table th { background: #eef3fc; font-size: .89rem; font-weight: 800; }
.pill { display: inline-block; max-width: 100%; padding: 3px 8px; border-radius: 999px; color: var(--blue); background: var(--pale-blue); font-weight: 700; font-size: .82rem; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .site-header-inner { gap: 20px; }
  .site-nav { gap: 6px; }
  .cta-card { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cta-actions { justify-content: flex-start; }
  .operator-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .footer-inner { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-identity { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .site-header-inner { grid-template-columns: 1fr auto auto; gap: 0 12px; min-height: 72px; padding-block: 12px; }
  .menu-open .site-header-inner { padding-bottom: 0; }
  .site-nav { margin-top: 12px; }
  .menu-toggle { display: inline-flex; grid-column: 3; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .header-account { display: none; }
  .site-nav > a.nav-mobile-only { display: inline-flex !important; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 16px;
    border-top: 1px solid var(--line);
  }
  .menu-open .site-nav { display: flex; }
  .site-nav > a, .nav-dropdown-toggle { min-height: 46px; padding: 10px 4px; justify-content: space-between; }
  .site-nav > a[aria-current="page"]::after, .nav-dropdown-toggle.is-current::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .site-nav > a[aria-current="page"], .nav-dropdown-toggle.is-current { padding-left: 14px; }
  .nav-dropdown { flex-direction: column; }
  .nav-dropdown-menu { position: static; width: auto; padding: 0 0 6px 8px; border: 0; box-shadow: none; }
  .home-hero { grid-template-columns: 1fr; min-height: max(420px, calc(100vh - 171px)); min-height: max(420px, calc(100svh - 171px)); }
  .hero-visual { min-height: 300px; }
  .home-tradition, .guidance-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .container, .home-hero { width: calc(100% - 32px); }
  .home-hero-wrap { margin-top: 16px; }
  .home-hero { border-radius: 20px; }
  .hero-copy { padding: 34px 24px 40px; }
  .hero-visual { min-height: 220px; }
  .home-content { padding-block: 48px 0; }
  .feature-grid, .process-grid { grid-template-columns: 1fr; gap: 14px; }
  .process-grid { gap: 26px; }
  .home-tradition { padding-block: 48px 0; }
  .home-process, .home-guidance { padding-block: 48px; }
  .home-process { margin-top: 40px; }
  .home-faq { padding-bottom: 48px; }
  .home-cta { padding-block: 0 24px; }
  .cta-actions, .cta-actions .button { width: 100%; }
  .directory-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .directory-filters .field:first-child { grid-column: 1 / -1; }
  .directory-content { padding-block: 22px 43px; }
  .footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 26px; padding-block: 36px 28px; }
  .footer-navigation { grid-column: 1 / -1; }
  .footer-bottom { padding-bottom: 96px; }
  .whatsapp-float { right: 14px; bottom: 14px; }
  .whatsapp-float-bubble { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 260px; }
  .about-actions .button { flex: 1 1 100%; min-width: 0; }
  /* Centrar iconos, pasos y botones en móvil. */
  .home-content .section-head { margin-inline: auto; text-align: center; }
  .feature-card { justify-items: center; text-align: center; }
  .process-card { justify-items: center; text-align: center; }
  .guidance-copy { justify-items: center; text-align: center; }
  .guidance-card-light { grid-template-columns: 1fr; }
  .guidance-card-light .guidance-copy { justify-items: start; text-align: left; }
  .guidance-card-light .guidance-actions { justify-content: flex-start; }
  .text-link, .public-site .button { min-height: 44px; }
  .footer-wordmark { align-items: center; min-height: 44px; }
  .footer-links { gap: 0; }
  .footer-links a, .footer-links > span { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 520px) {
  .wordmark-logo { width: 112px; }
  .public-site .header-whatsapp { min-height: 42px; padding-inline: 12px; font-size: 0; gap: 0; }
  .header-whatsapp .icon { font-size: 1.1rem; }
  .menu-toggle-label { display: none; }
  .hero-copy h1 { font-size: 2.45rem; }
  .hero-actions .button { flex: 1 1 100%; }
  .field-grid, .operator-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .selection-bar { align-items: stretch; flex-direction: column; gap: 6px; padding: 9px 11px; bottom: 8px; }
  .selection-actions { gap: 6px; }
  .selection-actions .button { min-height: 40px; padding-inline: 10px; font-size: .9rem; }
  .directory-filters { gap: 9px; padding: 12px; }
  .dialog-body, .dialog-header { padding-inline: 12px; }
}
/* ---------- Afiliación en móvil (hasta 720 px) ---------- */
@media (max-width: 720px) {
  .af-layout { padding: 24px 16px 64px; }
  .af-card { border-radius: 22px; }
  .af-panel { flex-basis: 100%; padding: 32px 24px; }
  .af-panel-info h1 { font-size: 32px; }
  .af-intro { font-size: 17px; }
  .af-steps { display: none; }
  .af-help { margin-top: 0; }
  .af-whatsapp { align-self: stretch; justify-content: center; }
  .af-field { flex-basis: 100%; }
  .af-form-head h2 { font-size: 26px; }
}
/* ---------- Hero y cabecera en móvil (hasta 600 px) ---------- */
@media (max-width: 600px) {
  .site-header-inner { gap: 0 8px; }
  .menu-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .menu-toggle-label { display: none; }
  .public-site .header-whatsapp { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-size: 0; gap: 0; }
  .header-whatsapp .icon { width: 22px; height: 22px; }

  .home-hero { display: flex; flex-direction: column; min-height: calc(100vh - 135px); min-height: calc(100svh - 135px); }
  .hero-visual { order: -1; flex: 0 0 clamp(250px, 72vw, 300px); height: clamp(250px, 72vw, 300px); min-height: 0; }
  .hero-photo { object-position: center bottom; }
  .hero-photo-credit-wrap { display: block; margin-top: 8px; }
  .hero-photo-credit { text-align: right; font-size: 11px; }
  .hero-copy { padding: 26px 22px 28px; }
  .hero-copy h1 { max-width: none; margin-top: 12px; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
  .hero-description { margin-top: 14px; font-size: 17px; }
  .hero-description-extra { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 4px; margin-top: 22px; }
  .hero-actions .button-accent { width: 100%; min-height: 54px; }
  .public-site .hero-secondary { min-height: 48px; border: 0; background: transparent; text-decoration: underline; text-underline-offset: .28em; }
  .public-site .hero-secondary:hover { background: transparent; text-decoration-thickness: 2px; }
  .hero-checks { gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); font-size: 16px; }
  .hero-checks .icon { color: var(--yellow); }

  .whatsapp-float { right: 16px; bottom: 16px; }
  .whatsapp-float-icon { width: 58px; height: 58px; }
  .whatsapp-float-icon .icon { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}


/* ---------- Directorio visual de asociados ---------- */
.associate-showcase { padding-block: 0 56px; }
.associate-showcase-heading { max-width: 700px; margin-bottom: 28px; }
.associate-showcase-heading .eyebrow { margin: 0 0 8px; color: #a66a00; font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.associate-showcase-heading h1 { margin: 0; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; }
.associate-showcase-heading > p:last-child { max-width: 65ch; margin: 9px 0 0; color: var(--muted); font-size: .97rem; line-height: 1.55; }
.associate-showcase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.associate-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid #eee9df; border-radius: 17px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 0 5px 16px rgba(16,29,56,.035); transition: transform .18s ease, box-shadow .18s ease; }
.associate-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(16,29,56,.1); }
.associate-card:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.associate-card-visual { display: grid; height: clamp(210px, 22vw, 280px); place-items: center; overflow: hidden; background: #050505; }
.associate-card-image { display: block; width: 240px !important; height: 240px !important; max-width: 100%; padding: 0; object-fit: contain; }
.associate-card-body { flex: 1; padding: 14px 16px 12px; }
.associate-card-topline { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.associate-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0; }
.associate-card-tags span { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: #17378a; font-size: .62rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.experience-badge { display: inline-flex; align-items: baseline; gap: 4px; padding: 3px 8px; border: 1px solid #eadfae; border-radius: 999px; background: var(--white); color: var(--navy); white-space: nowrap; }
.experience-count { color: #94631a; font: 850 .84rem/1 var(--font-heading); }
.experience-label { color: var(--muted); font-size: .6rem; }
.associate-card-body h3 { margin: 0; color: #10254f; font-size: 1.08rem; line-height: 1.25; }
.associate-card-detail { margin: 5px 0 0; color: #94631a; font-size: .76rem; }
.associate-card-description { min-height: 3.5em; margin: 8px 0 0; color: #536078; font-size: .78rem; line-height: 1.5; }
.associate-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 15px 13px; border-top: 1px solid #f0eee9; font-size: .7rem; }
.associate-card-site { overflow: hidden; color: #98a1b4; text-overflow: ellipsis; white-space: nowrap; }
.associate-card-visit { flex: 0 0 auto; color: #123783; font-weight: 800; }
@media (max-width: 900px) { .associate-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 560px) { .associate-showcase-grid { grid-template-columns: 1fr; } .associate-showcase-heading { margin-bottom: 20px; } .associate-card-visual { height: 190px; } .associate-card-image { width: 160px !important; height: 160px !important; } .associate-card-image { width: min(100%, 176px); height: 176px; } .associate-card-description { min-height: 0; } }

@media (max-width: 760px) { .hero-photo-credit-wrap { grid-template-columns: 1fr; } .hero-photo-credit { grid-column: 1; } }


@media (min-width: 761px) and (max-height: 760px) {
  .hero-copy { padding: clamp(22px, 3.5vh, 40px) clamp(24px, 3vw, 42px); }
  .hero-copy h1 { margin-top: 10px; font-size: clamp(2rem, 5.4vh, 3rem); }
  .hero-description { margin-top: 14px; font-size: 1rem; line-height: 1.4; }
  .hero-actions { gap: 10px; margin-top: 18px; }
  .hero-actions .button { min-height: 44px; padding-inline: 18px; }
  .hero-checks { gap: 6px; margin-top: 16px; font-size: .84rem; }
}


/* ---------- Etapa 1: secciones gremiales ---------- */
.feature-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-operators { padding-top: 72px; }
.section-actions { display: flex; justify-content: center; margin-top: 28px; }
.legal-notice { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 24px; padding: 14px 18px; border: 1px solid #e7dcc0; border-radius: 14px; background: var(--yellow-softer); color: var(--ink); font-size: .95rem; }
.legal-notice p { margin: 0; }
.home-tradition .tradition-copy .button { justify-self: start; margin-top: 8px; }

.about-purpose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 64px; }
.purpose-card { display: grid; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.purpose-card p:not(.eyebrow) { color: var(--muted); font-size: 1.04rem; }
.about-principles { padding-bottom: 64px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principle-card { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.principle-card .feature-icon { flex: none; margin: 0; }
.principle-card h3 { color: var(--navy); font-size: 1.02rem; }
.about-organization { padding-bottom: 72px; }
.organization-card { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; padding: 28px; border-left: 4px solid var(--yellow); border-radius: 0 20px 20px 0; background: var(--white); }
.organization-card h2 { color: var(--navy); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.organization-card p:not(.eyebrow) { color: var(--muted); }

.af-disclaimer { padding: 12px 14px; border-left: 3px solid var(--yellow); background: rgba(255, 255, 255, .06); color: #e6eaf5; font-size: 15px; line-height: 1.5; }
.af-benefits { margin-top: 40px; padding: 32px 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--white); }
.af-benefits .section-head { margin-bottom: 18px; }
.af-benefits h2 { color: var(--navy); }
.af-benefits-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }

@media (max-width: 1100px) {
  .feature-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .feature-grid-4, .about-purpose, .principles-grid, .af-benefits-list { grid-template-columns: 1fr; }
  .home-operators { padding-top: 48px; }
  .home-operators .section-head { margin-inline: auto; text-align: center; }
  .home-tradition .tradition-copy .button { justify-self: stretch; }
  .about-purpose, .about-principles { padding-bottom: 40px; }
  .af-benefits { margin-top: 24px; padding: 24px 20px; }
}
/* Titular gremial más largo: tamaño contenido para que no ocupe toda la tarjeta. */
.hero-copy h1 { max-width: 17ch; font-size: clamp(2.1rem, 3.5vw, 3.15rem); line-height: 1.08; }
@media (max-width: 600px) { .hero-copy h1 { max-width: none; font-size: 30px; line-height: 1.12; } }

/* ---------- Etapa 2: Cultura, Transparencia, Defensa gremial, Convivencia, Contacto ---------- */
.page-section { padding-bottom: 56px; }
.page-lead { max-width: 75ch; margin-bottom: 28px; color: var(--muted); font-size: 1.08rem; }
.page-note { margin-top: 16px; color: var(--muted); font-size: .92rem; }
.status-pill { flex: none; padding: 4px 12px; border-radius: 999px; background: #eef0f4; color: #4a5468; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.status-pill-ok { background: var(--green-pale); color: #0b5c31; }
.doc-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.doc-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.doc-name { color: var(--navy); font-weight: 700; }
a.doc-name { color: var(--blue); text-underline-offset: .2em; }
.publication-grid { display: grid; gap: 14px; }
.publication-card { padding: clamp(18px, 3vw, 24px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.publication-card h3 { margin-top: 6px; color: var(--navy); font-size: 1.2rem; overflow-wrap: anywhere; }
.publication-body { max-width: 92ch; margin-top: 10px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.transparency-extra:not(:empty) { margin-top: 40px; }
.culture-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.culture-photo { margin: 0; overflow: hidden; border-radius: 18px; background: var(--white); border: 1px solid var(--line); }
.culture-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.culture-photo figcaption { padding: 10px 14px; color: var(--muted); font-size: .88rem; }

.culture-articles:empty { display: none; }
.culture-history { display: grid; gap: 24px; }
.culture-story-intro { max-width: 860px; padding: clamp(22px, 4vw, 38px); border-radius: 22px; background: var(--navy); color: var(--white); }
.culture-story-intro .eyebrow { color: var(--yellow); }
.culture-story-intro h3 { max-width: 22ch; margin-top: 10px; color: var(--white); font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.15; }
.culture-story-intro > p:last-child { max-width: 72ch; margin-top: 14px; color: #e0e6f4; line-height: 1.75; }
.culture-timeline-wrap { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.culture-subheading { margin-bottom: 20px; }
.culture-subheading h3, .culture-quote-slot h3, .culture-links-slot h3 { color: var(--navy); font-size: 1.35rem; }
.culture-subheading > p:last-child { margin-top: 7px; color: var(--muted); }
.culture-timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.culture-milestone { display: flex; flex-direction: column; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fbfaf7; }
.culture-step { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 12px; background: var(--pale-blue); color: var(--blue); font-weight: 800; }
.culture-milestone-image { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 12px; border-radius: 12px; object-fit: cover; object-position: center 62%; }
.culture-milestone h4 { color: var(--navy); font-size: 1.08rem; }
.culture-milestone-description { margin-top: 8px; color: var(--muted); line-height: 1.5; }

.culture-source-slot { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); color: #7a5a08; font-size: .86rem; }
.culture-source-slot strong { color: var(--navy); }






.culture-story-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.culture-quote-slot, .culture-links-slot { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.culture-quote-slot h3, .culture-links-slot h3 { margin-top: 8px; }
.culture-quote-slot > p:not(.eyebrow), .culture-links-slot > p:not(.eyebrow) { margin-top: 10px; color: var(--muted); line-height: 1.6; }
.culture-quote-slot .culture-editorial-note { padding-top: 12px; border-top: 1px solid var(--line); font-size: .9rem; }
.culture-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.culture-photo-meta { margin-top: 5px; color: var(--muted); font-size: .8rem; }

.norm-list { display: grid; gap: 16px; }
.norm-card { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 0 18px 18px 0; background: var(--white); }
.norm-card h3 { color: var(--navy); font-size: 1.2rem; }
.norm-summary { color: var(--muted); }
.norm-data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.norm-data dt { color: var(--navy); font-weight: 700; }
.norm-data dd { margin: 0; color: var(--ink); }
.table-empty { padding: 22px 12px; color: var(--muted); text-align: center; }
.contact-data { display: grid; gap: 14px; margin: 8px 0 0; padding: 0; list-style: none; }
.contact-data li { display: grid; gap: 2px; }
.contact-data strong { color: var(--yellow); font: 700 12px/1.3 var(--font-heading); letter-spacing: 1.6px; text-transform: uppercase; }
.contact-data a, .contact-data span { color: var(--white); font-size: 17px; }
.contact-categories { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: #c9d0e4; font-size: 15px; }
.af-consent + .af-consent { margin-top: -10px; }

@media (max-width: 760px) {
  .page-section { padding-bottom: 40px; }
  .culture-timeline, .culture-story-extras { grid-template-columns: 1fr; }
  .culture-gallery { grid-template-columns: 1fr; }
  .norm-data { grid-template-columns: 1fr; gap: 2px; }
  .norm-data dd { margin-bottom: 8px; }
  .doc-item { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (max-width: 760px) { .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; } }
