/* =============================================================================
   SCANNER CUENCA — Sistema de diseño
   Identidad sobria: 60 % neutros, 30 % estructura, 10 % marca.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fuentes
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f5f3ee;
  --surface: #ffffff;
  --surface-soft: #f8f7f4;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #6b7280;
  --ink-4: #9ca3af;
  --line: #e7e4de;
  --line-strong: #d8d3c9;
  --brand: #69488e;
  --brand-dark: #573874;
  --brand-deep: #452b5e;
  --brand-light: #f3eff7;
  --brand-line: #d9cfe4;
  --magenta: #93358d;
  --cyan: #009ade;
  --danger: #b42318;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --container: 1152px;
  --pad: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 18px 44px -28px rgba(15, 23, 42, 0.28);
  --font-head: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 0.75, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset y base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.dialog-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.16;
}

h1 {
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.85rem, 3.3vw, 2.7rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

p {
  margin-bottom: 0;
}

::selection {
  background: var(--brand-light);
  color: var(--brand-deep);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -80px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: clamp(64px, 8vw, 104px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 76px);
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.section--white {
  background: var(--surface);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.section-head__text {
  max-width: 680px;
}

.section-head h2 {
  margin: 12px 0 12px;
}

.section-head p {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: 15px;
}

.section-head__link {
  flex: none;
  margin-bottom: 4px;
}

.section-head .branch-filter__count {
  flex: none;
  margin: 0;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
}

.lead {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.7;
}

.muted {
  color: var(--ink-3);
}

.center {
  text-align: center;
}

.center .eyebrow {
  justify-content: center;
}

.center .section-head__text,
.center .lead {
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Botones, enlaces y badges
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(2px);
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px -16px rgba(105, 72, 142, 0.65);
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--brand-line);
  color: var(--brand);
  background: var(--surface);
}

.btn--quiet {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn--quiet:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.btn--sm {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 12.5px;
}

.btn--lg {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 14.5px;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.link-arrow .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--brand);
}

.link-arrow:hover .icon {
  transform: translateX(3px);
}

.link-plain {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.link-plain:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.5;
  white-space: nowrap;
}

.badge--neutral {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--ink-2);
}

.badge--muted {
  border-color: var(--line);
  background: #f1efea;
  color: var(--ink-3);
}

.badge--accent {
  border-color: var(--brand-line);
  background: var(--brand-light);
  color: var(--brand);
}

.badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  flex: none;
}

.dot--cyan {
  background: var(--cyan);
}

.dot--live {
  box-shadow: 0 0 0 3px rgba(0, 154, 222, 0.12);
}

.chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.chip[aria-pressed='true'] {
  border-color: var(--brand-line);
  background: var(--brand-light);
  color: var(--brand);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-static {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 11px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(150%) blur(14px);
  transition: box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -26px rgba(15, 23, 42, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 76px;
}

.brand {
  display: block;
  flex: none;
  text-decoration: none;
}

.brand img {
  width: 168px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 7px 0;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 600;
}

.nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 6px;
}

.header__results {
  gap: 6px;
}

.header__results .icon {
  width: 13px;
  height: 13px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close,
.nav-toggle[aria-expanded='true'] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    visibility 0.25s var(--ease);
}

body.menu-open .nav-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav {
  border-top: 1px solid var(--line);
  background: var(--surface);
  max-height: calc(100dvh - 76px);
  overflow-y: auto;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__inner {
  padding-block: 14px 24px;
}

.mobile-nav__links {
  display: grid;
}

.mobile-nav__links a {
  padding: 13px 4px;
  border-bottom: 1px solid #f1efea;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav__links a[aria-current='page'] {
  color: var(--brand);
  font-weight: 600;
}

.mobile-nav__cta {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mobile-nav__contact {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.mobile-nav__contact a {
  color: var(--ink-2);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-block: clamp(46px, 6.5vw, 86px) clamp(54px, 7vw, 92px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(36px, 5vw, 70px);
  align-items: center;
}

.hero h1 {
  max-width: 12ch;
  margin: 16px 0 20px;
}

.hero__lead {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.hero__trust .icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.hero__media {
  position: relative;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 4.35;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  object-fit: cover;
  object-position: 50% 48%;
}

.hero-card {
  position: absolute;
  bottom: 18px;
  left: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(310px, calc(100% - 36px));
  padding: 11px 13px;
  border: 1px solid rgba(231, 228, 222, 0.9);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
}

.hero-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
  flex: none;
}

.hero-card__icon .icon {
  width: 19px;
  height: 19px;
}

.hero-card__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.hero-card__text strong {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.hero-card__text span {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.4;
}

.hero-card .badge {
  margin-left: auto;
  flex: none;
}

/* --------------------------------------------------------------------------
   Cifras
   -------------------------------------------------------------------------- */
.stats {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 28px 26px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat__value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__label {
  margin-top: 8px;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Servicios
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 222px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}

.service-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.service-card__icon {
  width: 46px;
  height: 46px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  object-fit: contain;
}

.service-card__num {
  color: var(--ink-3);
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.service-card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.service-card p {
  flex: 1;
  margin: 0;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.55;
}

.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.service-card__link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.service-card:hover .service-card__link {
  color: var(--brand);
}

.service-card:hover .service-card__link .icon {
  transform: translateX(3px);
}

.service-card__badge {
  font-size: 9.5px;
  padding: 3px 7px;
}

.utility-card {
  display: flex;
  flex-direction: column;
  min-height: 222px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.utility-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--brand);
}

.utility-card__icon .icon {
  width: 18px;
  height: 18px;
}

.utility-card h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.utility-card p {
  flex: 1;
  margin: 0;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.55;
}

.utility-card .link-arrow {
  margin-top: 16px;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Bloque de resonancia
   -------------------------------------------------------------------------- */
.spotlight__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}

.spotlight h2 {
  margin: 12px 0 16px;
}

.spotlight__panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.spotlight__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spotlight__list li {
  display: flex;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.spotlight__list .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--brand);
}

.spotlight__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
}

.spotlight__foot .dot {
  background: var(--cyan);
}

/* --------------------------------------------------------------------------
   Split / confianza
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.split__media--portrait img {
  aspect-ratio: 4 / 5;
}

.split__content h2 {
  margin: 12px 0 16px;
}

.split__content > p {
  max-width: 56ch;
  color: var(--ink-2);
  font-size: 15px;
}

.feature-list {
  display: grid;
  gap: 17px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 13px;
}

.feature-list__icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 9px;
  background: var(--brand-light);
  color: var(--brand);
  flex: none;
}

.feature-list__icon .icon {
  width: 17px;
  height: 17px;
}

.feature-list h3 {
  margin: 0 0 2px;
  font-size: 13.5px;
}

.feature-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.55;
}

.quote {
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--brand);
}

.quote--spaced {
  margin-top: 24px;
}

.quote p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.quote cite {
  display: block;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Sedes
   -------------------------------------------------------------------------- */
.branch-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#sedes {
  scroll-margin-top: 92px;
}

.branch-card {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 92px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.branch-card[hidden] {
  display: none;
}

.branch-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.branch-card__city {
  display: block;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.branch-card h3 {
  margin: 3px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.branch-card__desc {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.55;
}

.branch-info {
  display: grid;
  gap: 9px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.branch-info__row {
  display: flex;
  gap: 9px;
}

.branch-info__row .icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--ink-3);
}

.branch-info a {
  color: var(--ink-2);
  text-decoration: none;
}

.branch-info a:hover {
  color: var(--brand);
}

.branch-hours {
  display: grid;
  gap: 1px;
}

.branch-hours span {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  max-width: 220px;
}

.branch-hours span span {
  color: var(--ink-3);
}

.branch-services {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.branch-services__label {
  margin-bottom: 7px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.branch-more {
  margin-top: 7px;
}

.branch-more summary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.branch-more summary::-webkit-details-marker {
  display: none;
}

.branch-more summary::after {
  content: '+';
  font-size: 13px;
  line-height: 1;
}

.branch-more[open] summary::after {
  content: '−';
}

.branch-more .chips {
  margin-top: 8px;
}

.branch-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.branch-card__actions .link-arrow {
  font-size: 12.5px;
}

.branch-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.branch-banner[hidden] {
  display: none;
}

.branch-banner h3 {
  margin: 0 0 3px;
  font-size: 1.02rem;
}

.branch-banner p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
}

.branch-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  flex: none;
}

/* Tarjetas de ciudad (inicio) */
.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.city-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.city-card {
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.city-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.city-card__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.city-card__label {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.city-card__desc {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.55;
}

.city-card__meta {
  display: grid;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--ink-2);
  font-size: 12.5px;
}

.city-card__meta span {
  display: flex;
  gap: 8px;
}

.city-card__meta .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--ink-3);
}

.city-card__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Equipo y nosotros
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.value-card__num {
  display: block;
  margin-bottom: 16px;
  color: #a8a29e;
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.value-card h3 {
  margin: 0 0 5px;
  font-size: 13.5px;
}

.value-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}

.history-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 29px;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -30px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-light);
}

.timeline-year {
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin: 4px 0;
  font-size: 1rem;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.6;
}

.founders-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.founders-card .quote {
  margin-bottom: 22px;
}

.founders-card--spaced {
  margin-top: 26px;
}

.founders-list {
  display: grid;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.founders-list--spaced {
  margin-top: 24px;
}

.founder {
  display: flex;
  align-items: center;
  gap: 11px;
}

.founder__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}

.founder strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
}

.founder span {
  display: block;
  color: var(--ink-3);
  font-size: 11px;
}

.founder .founder__avatar {
  color: var(--brand);
  font-size: 12px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.team-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.team-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--brand);
}

.team-card__icon .icon {
  width: 19px;
  height: 19px;
}

.team-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.team-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Página interior
   -------------------------------------------------------------------------- */
.page-hero {
  padding-block: clamp(36px, 5vw, 64px) clamp(34px, 5vw, 56px);
}

.page-hero--alt {
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}

.page-hero h1 {
  max-width: 17ch;
  margin: 13px 0 16px;
  font-size: clamp(2.3rem, 4.4vw, 3.65rem);
}

.page-hero__lead {
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.7;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 22px;
}

.page-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--ink-3);
  font-size: 11px;
}

.breadcrumb a {
  color: var(--ink-3);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb span[aria-hidden='true'] {
  color: #b9b3a8;
}

/* --------------------------------------------------------------------------
   Modalidades y preparación
   -------------------------------------------------------------------------- */
.modalities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.modality {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
}

.modality .icon {
  width: 14px;
  height: 14px;
  color: var(--brand);
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prep-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.prep-card__num {
  display: block;
  margin-bottom: 16px;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.prep-card h3 {
  margin: 0 0 5px;
  font-size: 13.5px;
}

.prep-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.58;
}

.fact-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list--spaced {
  margin-top: 24px;
}

.fact-list li {
  display: flex;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.fact-list .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Contacto y formulario
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 62px);
  align-items: start;
}

.contact-channels {
  display: grid;
  gap: 11px;
  margin-top: 26px;
}

.contact-channel {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}

.contact-channel:hover {
  border-color: var(--brand-line);
}

.contact-channel__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-light);
  color: var(--brand);
  flex: none;
}

.contact-channel__icon .icon {
  width: 18px;
  height: 18px;
}

.contact-channel__label {
  display: block;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.contact-channel strong {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.contact-channel strong a {
  color: var(--ink);
  text-decoration: none;
}

.contact-channel strong a:hover {
  color: var(--brand);
}

.contact-channel > div > span {
  display: block;
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.45;
}

.form-card {
  padding: clamp(22px, 3vw, 31px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.form-card h2 {
  margin: 0 0 5px;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  letter-spacing: -0.03em;
}

.form-card__intro {
  margin: 0 0 22px;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 5px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.field .req {
  color: var(--ink-3);
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9ca3af;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(105, 72, 142, 0.12);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.field small {
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}

.form-hint {
  display: block;
  margin-top: 1px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.45;
}

.form-hint:empty {
  display: none;
}

.form-hint.is-warning {
  color: var(--ink);
  font-weight: 500;
}

.field .error {
  display: none;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.4;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
}

.field.has-error .error {
  display: block;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  grid-column: 1 / -1;
  margin-top: 2px;
}

.checkbox-field input {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  accent-color: var(--brand);
  flex: none;
}

.checkbox-field label {
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
}

.checkbox-field .error {
  display: none;
  color: var(--danger);
  font-size: 11px;
}

.checkbox-field.has-error .error {
  display: block;
}

.form-actions {
  display: grid;
  gap: 9px;
  grid-column: 1 / -1;
  margin-top: 2px;
}

.form-note {
  color: var(--ink-3);
  font-size: 10.5px;
  line-height: 1.45;
  text-align: center;
}

.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 13px 15px;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  background: var(--brand-light);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}

.form-status.is-visible {
  display: block;
}

.form-status a {
  color: var(--brand);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  border-radius: 2px;
  background: var(--brand);
  transition: transform 0.2s var(--ease);
}

.faq-icon::before {
  top: 8px;
  left: 2px;
  width: 14px;
  height: 1.6px;
}

.faq-icon::after {
  top: 2px;
  left: 8px;
  width: 1.6px;
  height: 14px;
}

.faq-item[open] .faq-icon::after {
  transform: scaleY(0);
}

.faq-item p {
  max-width: 74ch;
  margin: 0;
  padding: 0 42px 22px 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-band {
  padding-block: clamp(32px, 4vw, 52px);
}

.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.cta-band h2 {
  margin: 0 0 7px;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  letter-spacing: -0.035em;
}

.cta-band p {
  max-width: 54ch;
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  flex: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding-block: 58px 22px;
  border-top: 1px solid var(--line);
  background: #f3f1ec;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr 0.75fr 1.05fr;
  gap: 38px;
}

.footer-brand img {
  width: 164px;
  margin-bottom: 15px;
}

.footer-brand p {
  max-width: 34ch;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 7px;
  margin-top: 17px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-social a:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.footer-social .icon {
  width: 15px;
  height: 15px;
}

.footer-col h3 {
  margin: 0 0 12px;
  color: #5b6472;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--ink-2);
  font-size: 12px;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-col p {
  margin: 0 0 8px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #5b6472;
  font-size: 10.5px;
}

.footer-bottom p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Diálogo de servicio
   -------------------------------------------------------------------------- */
.dialog {
  width: min(660px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(15, 23, 42, 0.45);
}

.dialog:not([open]) {
  display: none;
}

.dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(3px);
}

.dialog__inner {
  position: relative;
  max-height: min(84dvh, 780px);
  padding: 29px;
  overflow-y: auto;
}

.dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
}

.dialog__close:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.dialog__close .icon {
  width: 16px;
  height: 16px;
}

.dialog__head {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 38px;
}

.dialog__icon {
  width: 54px;
  height: 54px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-soft);
  object-fit: contain;
  flex: none;
}

.dialog h2 {
  margin: 0 0 3px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.dialog__head p {
  margin: 0;
  color: var(--ink-3);
  font-size: 11.5px;
}

.dialog__desc {
  margin: 18px 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.65;
}

.dialog__section-label {
  margin-bottom: 8px;
  color: var(--ink-3);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dialog .chips {
  margin-bottom: 19px;
}

.dialog__branches {
  display: grid;
  gap: 6px;
  margin-bottom: 21px;
}

.dialog__branch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
  font-size: 12px;
}

.dialog__branch strong {
  font-weight: 600;
}

.dialog__branch span {
  color: var(--ink-3);
  font-size: 11px;
}

.dialog__note {
  margin: 0 0 20px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   WhatsApp flotante
   -------------------------------------------------------------------------- */
.wa-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.wa-float {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(105, 72, 142, 0.55);
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease),
    visibility 0.2s var(--ease);
}

body.menu-open .wa-widget,
body.dialog-open .wa-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wa-float:hover {
  transform: translateY(-2px);
  background: var(--brand-dark);
}

.wa-float .icon {
  width: 25px;
  height: 25px;
}

.wa-float__label {
  position: absolute;
  right: 62px;
  top: 50%;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translate(4px, -50%);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.wa-float:hover .wa-float__label {
  opacity: 1;
  transform: translate(0, -50%);
}

.wa-card {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: min(320px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.35);
}

.wa-card[hidden] {
  display: none;
}

.wa-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wa-card__eyebrow {
  display: block;
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.wa-card__head strong {
  display: block;
  margin-top: 2px;
  font-family: var(--font-head);
  font-size: 1rem;
  line-height: 1.3;
}

.wa-card__close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  flex: none;
}

.wa-card__close:hover {
  border-color: var(--brand-line);
  color: var(--brand);
}

.wa-card__close .icon {
  width: 13px;
  height: 13px;
}

.wa-card__intro {
  margin: 10px 0 12px;
  color: var(--ink-2);
  font-size: 11.5px;
  line-height: 1.5;
}

.wa-card__list {
  display: grid;
  gap: 7px;
}

.wa-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}

.wa-card__item:hover {
  border-color: var(--brand-line);
}

.wa-card__item--primary {
  border-color: var(--brand-line);
  background: var(--brand-light);
}

.wa-card__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand);
  flex: none;
}

.wa-card__item--primary .wa-card__icon {
  background: var(--brand);
  color: #fff;
}

.wa-card__icon .icon {
  width: 16px;
  height: 16px;
}

.wa-card__copy {
  min-width: 0;
}

.wa-card__copy strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.wa-card__copy span {
  display: block;
  margin-top: 1px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Aparición al hacer scroll
   -------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .nav {
    gap: 18px;
  }

  .brand img {
    width: 154px;
  }
}

@media (max-width: 1023px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header__inner {
    min-height: 68px;
  }

  .header__actions {
    margin-left: auto;
  }

  .hero__grid,
  .page-hero__grid,
  .spotlight__grid,
  .split,
  .contact-grid,
  .history-grid {
    grid-template-columns: 1fr;
  }

  .hero__media {
    max-width: 620px;
    margin-inline: auto;
    width: 100%;
  }

  .hero__media img {
    aspect-ratio: 4 / 3.4;
  }

  .page-hero__media {
    max-width: 620px;
  }

  .split__media {
    max-width: 620px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .values-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modalities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 820px) {
  .header__actions > .btn {
    display: none;
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

  .branches-grid {
    grid-template-columns: 1fr;
  }

  .branch-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col--contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 20px;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 2.9rem);
  }

  h2 {
    font-size: clamp(1.7rem, 7.2vw, 2.1rem);
  }

  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .hero__actions .btn,
  .cta-band__actions .btn {
    flex: 1 1 100%;
  }

  .hero-card {
    position: static;
    width: auto;
    margin: -28px 14px 0;
    box-shadow: var(--shadow-md);
  }

  .hero-card .badge {
    display: none;
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    padding: 20px 16px;
  }

  .stat:first-child {
    padding-left: 16px;
  }

  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .services-grid,
  .values-grid,
  .team-grid,
  .prep-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .utility-card {
    min-height: 0;
  }

  .spotlight__list {
    grid-template-columns: 1fr;
  }

  .modalities-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand,
  .footer-col--contact {
    grid-column: auto;
  }

  .footer-col--contact {
    padding-top: 0;
    border-top: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .dialog__inner {
    padding: 22px;
  }

  .dialog__actions .btn {
    flex: 1 1 100%;
  }

  .wa-widget {
    right: 16px;
    bottom: 16px;
  }

  .wa-float {
    width: 48px;
    height: 48px;
  }

  .wa-card {
    bottom: 60px;
  }

  .wa-float__label {
    display: none;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 140px;
  }

  .hero__trust {
    display: grid;
    gap: 9px;
  }
}

/* --------------------------------------------------------------------------
   Movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Orden de estudios en línea
   -------------------------------------------------------------------------- */
.order-hero h1 {
  max-width: 18ch;
}

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 46px);
  align-items: start;
}

.order-form {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.order-block {
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.order-block__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 21px;
}

.order-block__step {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.order-block__head h2 {
  margin: 1px 0 3px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  letter-spacing: -0.03em;
}

.order-block__head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.order-patient-grid {
  grid-template-columns: minmax(0, 1fr) 140px;
}

.order-block [data-field],
.order-block .field,
.order-study__detail,
#order-studies-block {
  scroll-margin-top: 105px;
}

.order-search {
  position: relative;
  margin-bottom: 12px;
}

.order-search input {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
}

.order-search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(105, 72, 142, 0.12);
}

.order-catalog {
  display: grid;
  gap: 8px;
}

.order-category {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.order-category[hidden] {
  display: none;
}

.order-category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

.order-category summary::-webkit-details-marker {
  display: none;
}

.order-category summary::after {
  content: '+';
  color: var(--brand);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.order-category[open] summary::after {
  content: '−';
}

.order-category__count {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  margin-left: auto;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.order-category__count[hidden] {
  display: none;
}

.order-studies {
  display: grid;
  gap: 0;
  padding: 0 15px 12px;
}

.order-study {
  border-top: 1px solid var(--line);
}

.order-study[hidden] {
  display: none;
}

.order-study__main {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 0;
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}

.order-study__main:hover {
  color: var(--brand);
}

.order-study__main input {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  accent-color: var(--brand);
  flex: none;
}

.order-study__detail {
  display: grid;
  gap: 5px;
  padding: 0 0 12px 24px;
}

.order-study__detail[hidden] {
  display: none;
}

.order-study__detail label {
  color: var(--ink-2);
  font-size: 10.5px;
  font-weight: 600;
}

.order-study__detail input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
}

.order-study__detail input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(105, 72, 142, 0.1);
}

.order-study__detail.has-error input {
  border-color: var(--danger);
}

.order-study__error {
  display: none;
  color: var(--danger);
  font-size: 10.5px;
  line-height: 1.4;
}

.order-study__detail.has-error .order-study__error {
  display: block;
}

.order-no-results {
  margin: 10px 0 0;
  padding: 11px 13px;
  border: 1px solid var(--brand-line);
  border-radius: 9px;
  background: var(--brand-light);
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.5;
}

.order-manual {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 15px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--bg-alt);
}

.order-manual.is-highlighted {
  border-color: var(--brand);
  background: var(--brand-light);
}

.order-manual__copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.order-manual__copy strong {
  color: var(--ink);
  font-size: 12.5px;
}

.order-manual__copy span {
  color: var(--ink-2);
  font-size: 11.5px;
}

.order-manual__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.order-manual__row input {
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12.5px;
}

.order-manual__row input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(105, 72, 142, 0.1);
}

.order-manual .field__hint {
  margin: 0;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 2px 0;
}

.order-actions .form-note {
  max-width: 54ch;
  margin: 0;
  text-align: left;
}

.order-summary {
  position: sticky;
  top: 101px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 120px);
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.order-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-summary__head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.order-summary__count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.order-summary__intro {
  margin: 4px 0 13px;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.order-summary__list {
  display: grid;
  flex: 1 1 auto;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.order-summary__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg-alt);
}

.order-summary__copy {
  min-width: 0;
}

.order-summary__cat {
  display: block;
  margin-bottom: 2px;
  color: var(--ink-3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.order-summary__copy strong {
  display: block;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
}

.order-summary__detail {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 10.5px;
  line-height: 1.4;
}

.order-summary__remove {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  flex: none;
}

.order-summary__remove:hover {
  background: var(--brand-light);
  color: var(--brand);
}

.order-summary__empty {
  margin: 0 0 15px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--ink-3);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.order-summary__empty[hidden] {
  display: none;
}

.order-summary .btn {
  margin-top: 15px;
}

.order-summary .form-note {
  margin-top: 8px;
}

.form-status.is-error {
  border-color: #e7b9ad;
  background: #fff7f4;
}

.footer-doctors {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 35px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-doctors__copy {
  display: grid;
  gap: 3px;
}

.footer-doctors__eyebrow {
  color: var(--brand);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-doctors__copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .order-layout {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
  }

  .order-summary__list {
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .order-patient-grid {
    grid-template-columns: 1fr;
  }

  .order-manual__row {
    grid-template-columns: 1fr;
  }

  .order-manual__row .btn {
    width: 100%;
  }

  .order-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-doctors {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* --------------------------------------------------------------------------
   Blog, artículos y páginas de servicio
   -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-line);
  box-shadow: var(--shadow-md);
}

.article-card__meta {
  margin-bottom: 12px;
  color: var(--brand);
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.article-card p {
  flex: 1;
  margin: 0;
  color: var(--ink-2);
  font-size: 12.8px;
  line-height: 1.6;
}

.article-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.article-card__link .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.article-card:hover .article-card__link {
  color: var(--brand);
}

.article-card:hover .article-card__link .icon {
  transform: translateX(3px);
}

.service-hero__icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  object-fit: contain;
}

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose h2 {
  margin: 38px 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: -0.025em;
}

.prose h3 {
  margin: 28px 0 8px;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.78;
}

.prose p {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
}

.prose li {
  margin-bottom: 7px;
}

.prose a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .callout {
  margin: 0 0 24px;
  padding: 17px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--brand-light);
}

.prose .callout p {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.65;
}

.prose .faq {
  margin-bottom: 8px;
}

.footer-sedes {
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .article-grid {
    grid-template-columns: 1fr;
  }

  .prose p,
  .prose li {
    font-size: 14.5px;
  }
}

/* Evita que la navegación de escritorio se sature al añadir Sedes. */
@media (max-width: 1180px) {
  .header__results {
    display: none;
  }

  .nav {
    gap: 16px;
  }
}

/* El icono del servicio no debe heredar el tamaño de las fotos del hero. */
.page-hero__media .service-hero__icon {
  width: 64px;
  height: 64px;
  aspect-ratio: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: contain;
}
