/* ==========================================================================
   Extranjería Vega Baja — hoja de estilos principal
   Mobile first · sin dependencias · CSS Grid + Flexbox
   ========================================================================== */

/* Fuentes locales (WOFF2 en /assets/fonts/). Si aún no están, se usa la pila de sistema. */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --c-primary: #263368;
  --c-primary-hover: #1C2652;
  --c-night: #141B3D;
  --c-soft: #F5F7FB;
  --c-accent: #B9BCC2;
  --c-line: #E2E5EC;
  --c-line-strong: #C5CAD6;
  --c-ink: #1B1F2E;
  --c-text: #3F4556;
  --c-muted: #565C6E;
  --c-on-dark: #D3D8E6;
  --c-on-dark-muted: #AEB5C9;
  --c-wa: #1FA855;
  --c-wa-text: #157A3D;
  --c-error: #A4241B;
  --c-error-bg: #FCEDEB;
  --c-ok: #1D6B3A;
  --c-ok-bg: #EAF5EE;

  --f-head: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(20, 27, 61, .06);
  --shadow-md: 0 1px 2px rgba(20, 27, 61, .05), 0 10px 30px rgba(20, 27, 61, .07);
  --shadow-lg: 0 2px 4px rgba(20, 27, 61, .06), 0 24px 60px rgba(20, 27, 61, .16);

  --header-h: 76px;
  --container: 1200px;
  --gutter: 1rem;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1.5rem); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-text);
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 64px; /* barra inferior móvil */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.2;
  letter-spacing: -.012em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.15rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--c-primary); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-night); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--c-ink); font-weight: 600; }
ul, ol { padding-left: 1.2rem; margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }

:focus-visible { outline: 3px solid #5B6FC2; outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.visually-hidden {
  position: absolute !important; 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: 1rem; top: -100px; z-index: 200;
  background: var(--c-primary); color: #fff; padding: .75rem 1.25rem; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
@media (min-width: 768px) { :root { --gutter: 2rem; } }

.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section--soft { background: var(--c-soft); }
.section--dark { background: var(--c-night); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section--line { border-top: 1px solid var(--c-line); }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.grid--gap-lg { gap: 2rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
.split > *, .layout-aside > *, .grid > *, .hero .container > *, .qb-grid > * { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.5rem; }
  .split--top { align-items: start; }
}

.layout-aside { display: grid; gap: 3rem; }
@media (min-width: 1080px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr) 390px; gap: 4.5rem; }
  .aside-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; scrollbar-width: thin; border-radius: var(--r-lg); }
}

/* ---------- Tipografía de apoyo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 600 .78rem/1.2 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-primary); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--c-on-dark-muted); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.08rem; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 680px; }

.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.22rem); line-height: 1.6; }
.muted { color: var(--c-muted); }
.small { font-size: .9rem; }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }

/* ---------- Iconos ---------- */
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.icon--lg { width: 28px; height: 28px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 50px; padding: .8rem 1.4rem;
  font: 600 .98rem/1.2 var(--f-body); text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-hover); color: #fff; box-shadow: 0 6px 18px rgba(38, 51, 104, .25); }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-soft); color: var(--c-ink); }
.btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; }
.btn--wa { background: var(--c-wa-text); color: #fff; }
.btn--wa:hover { background: #106531; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 42px; padding: .55rem 1rem; font-size: .92rem; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; text-decoration: none; font-size: .95rem; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--c-night); color: var(--c-on-dark); font-size: .84rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.topbar li { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar a { color: var(--c-on-dark); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 15px; height: 15px; opacity: .75; }
.topbar-social a { display: inline-flex; padding: .25rem; }
.topbar .hide-sm { display: none; }
@media (min-width: 900px) { .topbar .hide-sm { display: inline-flex; } }
@media (max-width: 639px) { .topbar-social li:not(.lang), .topbar ul:first-child li:first-child { display: none; } .topbar .container { justify-content: space-between; } .topbar ul { gap: 1rem; } }
.topbar .lang-switch { display: inline-flex; align-items: center; padding: .15rem .7rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: #fff; }
.topbar .lang-switch:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--c-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; flex: none; }
.logo img { height: 48px; width: auto; }
.logo--light img { filter: brightness(0) invert(1); opacity: .95; }
.logo-mark {
  display: inline-grid; place-items: center; height: 46px; padding: 0 .7rem;
  font: 700 1.3rem/1 var(--f-head); letter-spacing: .06em; color: #fff; background: var(--c-primary); border-radius: 6px;
}
.logo-text { display: flex; flex-direction: column; font: 600 .7rem/1.35 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--c-primary); }
.logo-text span:last-child { color: var(--c-muted); }
.logo--light .logo-mark { background: #fff; color: var(--c-night); }
.logo--light .logo-text, .logo--light .logo-text span:last-child { color: #fff; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .85rem;
  background: none; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
  font: 600 .9rem var(--f-body); color: var(--c-ink); cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }

.nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-link, .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: .35rem; width: 100%;
  padding: .9rem 0; background: none; border: 0; border-bottom: 1px solid var(--c-line);
  font: 500 1rem var(--f-body); color: var(--c-ink); text-decoration: none; cursor: pointer; text-align: left;
}
.nav-link[aria-current="page"], .has-sub.is-current > .sub-toggle { color: var(--c-primary); font-weight: 600; }
.sub-toggle .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.submenu { display: none; list-style: none; margin: 0; padding: .5rem 0 .75rem .75rem; }
.has-sub.is-open > .submenu { display: block; }
.submenu a { display: block; padding: .5rem .75rem; color: var(--c-text); text-decoration: none; border-radius: 8px; font-size: .96rem; }
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--c-soft); color: var(--c-primary); }
.submenu .submenu-all { margin-top: .35rem; padding-top: .35rem; border-top: 1px solid var(--c-line); }
.submenu .submenu-all a { font-weight: 600; color: var(--c-primary); }
.nav-cta { margin-top: 1.25rem; }

.nav.is-open {
  display: block; position: fixed; top: calc(var(--header-h) + 1px); left: 0; right: 0; bottom: 0; z-index: 99;
  background: #fff; overflow-y: auto; padding: .5rem var(--gutter) 6rem;
}
body.nav-open { overflow: hidden; }

@media (min-width: 1140px) {
  .nav-toggle { display: none; }
  .nav, .nav.is-open { display: flex; align-items: center; gap: 1.5rem; position: static; padding: 0; top: auto !important; overflow: visible; background: none; }
  .nav-list { display: flex; align-items: center; gap: .15rem; }
  .nav-list > li { position: relative; }
  .nav-link, .sub-toggle { padding: .55rem .75rem; border: 0; font-size: .95rem; border-radius: 8px; width: auto; }
  .nav-link:hover, .sub-toggle:hover { color: var(--c-primary); background: var(--c-soft); }
  .nav-link[aria-current="page"], .has-sub.is-current > .sub-toggle { box-shadow: inset 0 -2px 0 var(--c-primary); border-radius: 0; background: none; }
  .submenu {
    position: absolute; top: calc(100% + .5rem); left: -.5rem; min-width: 330px; padding: .6rem;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
  .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { display: block; }
  .submenu--wide { min-width: 600px; column-count: 2; column-gap: .5rem; }
  .submenu--wide li { break-inside: avoid; }
  .submenu--wide .submenu-all { column-span: all; }
  .nav-cta { margin: 0; }
  body.nav-open { overflow: auto; }
}
.nav-link, .sub-toggle, .nav-cta .btn { white-space: nowrap; }
/* Entre 1140 y 1279 px el menú (sobre todo en inglés) necesita algo menos de aire para caber en una línea */
@media (min-width: 1140px) and (max-width: 1279px) {
  .nav-list .nav-link, .nav-list .sub-toggle { padding: .5rem .45rem; font-size: .9rem; }
  .nav, .nav.is-open { gap: 1rem; }
  .nav-cta .btn { padding: .5rem .8rem; font-size: .88rem; }
}

/* ---------- Hero portada ---------- */
.hero { position: relative; background: var(--c-night); color: var(--c-on-dark); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: -160px; bottom: -220px; width: 520px; height: 520px; border-radius: 50%;
  border: 1px solid rgba(185, 188, 194, .14); box-shadow: 0 0 0 70px rgba(185, 188, 194, .03); pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; gap: 2.5rem; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(5.5rem, 4rem + 4vw, 8rem); align-items: center; }
@media (min-width: 960px) { .hero .container { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 4.5rem; } }
.hero h1 { color: #fff; max-width: 21ch; text-wrap: wrap; }
@media (max-width: 959px) { .br-lg { display: none; } }
.hero-sub { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); max-width: 54ch; color: var(--c-on-dark); margin-bottom: 2rem; }
.hero-points { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: .6rem; font-size: .95rem; }
.hero-points li { display: flex; gap: .6rem; align-items: center; }
.hero-points .icon { color: var(--c-accent); }
.hero-photo { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 600px; background: #2A3156; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hero-photo figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; padding: .85rem 1.1rem; background: rgba(255, 255, 255, .96); color: var(--c-text); border-radius: var(--r-sm); font-size: .86rem; line-height: 1.4; }
.hero-photo figcaption strong { display: block; font-size: .98rem; }
@media (max-width: 959px) { .hero-photo { aspect-ratio: 4 / 3; max-height: 420px; } .hero-photo img { object-position: 50% 25%; } }

/* Barra de solicitud rápida, montada sobre el borde inferior del hero */
.quickbar { position: relative; z-index: 2; margin-top: calc(-1 * clamp(3.5rem, 3rem + 2vw, 5rem)); }
.form-card--bar h2 { font-size: 1.2rem; }
.form-card--bar .form-intro { margin-bottom: 1.25rem; }
.qb-grid { display: grid; gap: 0 1rem; }
@media (min-width: 700px) { .qb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .qb-grid { grid-template-columns: 1fr 1fr 1.2fr auto; align-items: start; } .qb-submit { padding-top: 1.75rem; } }
.qb-foot { display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: flex-start; justify-content: space-between; }
.qb-foot .field { margin-bottom: .5rem; }
.form-card--bar .form-legal { margin-top: .5rem; }
.form-card--bar .form-contact { display: none; }

/* ---------- Cabecera interior ---------- */
.page-hero { background: var(--c-night); color: var(--c-on-dark); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid rgba(185, 188, 194, .16); box-shadow: 0 0 0 60px rgba(185, 188, 194, .03), 0 0 0 120px rgba(185, 188, 194, .025);
  pointer-events: none;
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { max-width: 62ch; color: var(--c-on-dark); margin-bottom: 1.75rem; }
.crumbs { font-size: .86rem; margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li { display: inline-flex; gap: .4rem; color: var(--c-on-dark-muted); }
.crumbs li + li::before { content: "/"; opacity: .6; }
.crumbs a { color: var(--c-on-dark); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: var(--c-on-dark-muted); }

/* ---------- Franja de confianza ---------- */
.trust { border-bottom: 1px solid var(--c-line); background: #fff; }
.trust-list { list-style: none; margin: 0; padding: 1.75rem 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .trust-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-list { grid-template-columns: repeat(4, 1fr); } }
.trust-item { display: flex; gap: .9rem; align-items: center; }
.trust-item strong { display: block; font-size: .96rem; line-height: 1.35; }
.trust-item div > span { display: block; font-size: .86rem; color: var(--c-muted); line-height: 1.4; }
.trust-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--c-soft); color: var(--c-primary); flex: none; }
.trust-icon img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.trust-icon img + .icon { display: none; } /* el escudo solo aparece si no carga el sello */

/* ---------- Tarjetas ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: .2rem;
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 1.6rem;
  box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: .45rem; font-size: 1.12rem; }
.card p { font-size: .96rem; margin-bottom: 1rem; }
.card .link-arrow { margin-top: auto; }
.card--link:hover { border-color: #AEB6D2; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card--link h3 a { color: inherit; text-decoration: none; }
.card--link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-icon { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--c-soft); color: var(--c-primary); margin-bottom: 1.1rem; }
.card-icon .icon { width: 26px; height: 26px; }
.card--flat { box-shadow: none; }
.card--soft { background: var(--c-soft); border-color: transparent; box-shadow: none; }

.card--dark { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .12); box-shadow: none; color: var(--c-on-dark); }
.card--dark h3, .card--dark h3 a { color: #fff; }
.card--dark .card-icon { background: rgba(255, 255, 255, .07); color: #fff; }
.card--dark .link-arrow { color: #fff; }
.card--dark.card--link:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }

/* Pilares */
.pillar { padding: 2rem; border-radius: var(--r-lg); }
.pillar h3 { font-size: 1.35rem; }
.pillar ul { list-style: none; padding: 0; margin: .5rem 0 1.75rem; display: grid; gap: .1rem; }
.pillar li a, .pillar li span { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-size: .97rem; }
.pillar li a:hover { color: var(--c-primary); }
.pillar li .icon { width: 16px; height: 16px; color: var(--c-accent); }
.pillar .btn { margin-top: auto; align-self: flex-start; }
.pillar--featured { background: var(--c-night); border-color: var(--c-night); color: var(--c-on-dark); box-shadow: var(--shadow-md); }
.pillar--featured h3 { color: #fff; }
.pillar--featured .card-icon { background: rgba(255, 255, 255, .08); color: #fff; }
.pillar--featured li a { color: var(--c-on-dark); border-bottom-color: rgba(255, 255, 255, .12); }
.pillar--featured li a:hover { color: #fff; }
.pillar--featured .btn--outline { border-color: #fff; color: #fff; }
.pillar--featured .btn--outline:hover { background: #fff; color: var(--c-night); }

/* Compraventa: fases y línea de tiempo */
.fases { display: grid; gap: 1rem; }
.fase { padding: 1.5rem 1.5rem 1.5rem 4.75rem; }
.fase-num { position: absolute; left: 1.5rem; top: 1.4rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--c-primary); color: #fff; font: 600 .85rem var(--f-head); }
.fase h3 { margin-bottom: .85rem; }
.fase .checklist { gap: .55rem; }
.fase .checklist li { font-size: .97rem; }
@media (min-width: 1024px) { .steps.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.5rem; } .steps--3 .step:nth-child(3n)::after { display: none; } }
.section--dark .calendar-card { color: var(--c-text); }
.section--dark .calendar-card h3 { color: var(--c-ink); }
.section--dark .calendar-card .eyebrow { color: var(--c-primary); }
.section--dark .calendar-card a { color: var(--c-primary); }
.calendar-list--steps > div { grid-template-columns: 2.5rem 1fr; }

/* Calendario fiscal (portada) */
.calendar-card { padding: 2rem; box-shadow: var(--shadow-md); }
.calendar-card h3 { font-size: 1.25rem; margin-bottom: 1.25rem; }
.calendar-list { margin: 0 0 1.5rem; border-top: 1px solid var(--c-line); }
.calendar-list > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--c-line); font-size: .95rem; }
.calendar-list dt { font-weight: 600; color: var(--c-primary); }
.calendar-list dd { margin: 0; }

/* ---------- Listas ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--c-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263368' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
  border: 1px solid #D5DAE7;
}
.section--dark .checklist li::before { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.checklist--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .checklist--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }

.doclist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0; border-top: 1px solid var(--c-line); }
@media (min-width: 700px) { .doclist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; } }
.doclist li { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--c-line); font-size: .98rem; }
.doclist .icon { color: var(--c-primary); margin-top: .15em; }

/* ---------- Contenido largo (fichas y legales) ---------- */
.prose > h2 { margin-top: 3.25rem; font-size: clamp(1.4rem, 1.2rem + .9vw, 1.85rem); }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 2rem; }
.prose ul:not([class]) { list-style: none; padding: 0; }
.prose ul:not([class]) li { position: relative; padding-left: 1.3rem; margin-bottom: .5rem; }
.prose ul:not([class]) li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--c-primary); border-radius: 1px; }
.prose .grid { margin-bottom: 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
.prose th { color: var(--c-ink); background: var(--c-soft); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; }
.placeholder { background: #FFF6DB; color: #5C4700; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

.tipo { padding: 1.4rem 1.5rem; }
.tipo h3 { font-size: 1.05rem; display: flex; align-items: center; gap: .6rem; }
.tipo h3::before { content: ""; width: 8px; height: 8px; background: var(--c-primary); border-radius: 2px; flex: none; }
.tipo p { margin: 0; font-size: .95rem; }

.notice { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.4rem; margin: 2.5rem 0; background: var(--c-soft); border: 1px solid #DCE1ED; border-left: 3px solid var(--c-primary); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.notice .icon { color: var(--c-primary); width: 24px; height: 24px; margin-top: .1rem; }
.notice p { margin: 0; font-size: .97rem; }
.notice strong { display: block; margin-bottom: .2rem; }

.extra-block { margin-top: 3rem; padding: 2rem; border-radius: var(--r-lg); background: var(--c-night); color: var(--c-on-dark); }
.extra-block h2 { color: #fff; margin-top: 0 !important; font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); }
.extra-block strong { color: #fff; }
.extra-block .checklist li::before { background-color: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }

/* ---------- Pasos ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: paso; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { counter-increment: paso; position: relative; padding-top: 4rem; }
.step::before {
  content: counter(paso, decimal-leading-zero); position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  font: 600 .95rem var(--f-head); color: var(--c-primary); border: 1px solid var(--c-primary); background: #fff;
}
.step::after { content: ""; position: absolute; top: 24px; left: 60px; right: 0; height: 1px; background: var(--c-line-strong); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.step p { font-size: .96rem; margin: 0; }
.section--soft .step::before { background: var(--c-soft); }
.steps--compact .step { padding-top: 0; padding-left: 4rem; }
.steps--compact .step::before { width: 42px; height: 42px; font-size: .85rem; }
.steps--compact .step::after { display: none; }
.steps--compact { grid-template-columns: 1fr !important; gap: 1.5rem; }

/* ---------- Fotos ---------- */
.photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--c-soft); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo.is-missing img { display: none; }
.photo.is-missing::after {
  content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 2rem; text-align: center;
  font: 500 .9rem/1.5 var(--f-body); color: var(--c-muted);
  background: repeating-linear-gradient(135deg, #F5F7FB 0 14px, #EEF1F7 14px 28px);
}
.photo-caption { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; padding: .9rem 1.1rem; background: rgba(255, 255, 255, .95); border-radius: var(--r-sm); font-size: .88rem; line-height: 1.4; box-shadow: var(--shadow-md); }
.photo-caption strong { display: block; font-size: .95rem; }

/* ---------- Municipios ---------- */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.chips li { padding: .45rem 1rem; border: 1px solid var(--c-line-strong); border-radius: 999px; font-size: .92rem; color: var(--c-ink); background: #fff; }

/* ---------- Preguntas frecuentes ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.25rem 0; cursor: pointer; list-style: none;
  font: 600 1.04rem/1.45 var(--f-head); color: var(--c-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--c-line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263368' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--c-primary); }
.faq-body { padding: 0 3rem 1.4rem 0; }
.faq-body p { font-size: .99rem; }

/* ---------- Bloque tráfico ---------- */
.adv-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 2.5rem; }
@media (min-width: 768px) { .adv-list { grid-template-columns: repeat(3, 1fr); } }
.adv-list li { display: flex; gap: 1rem; }
.adv-list .icon { width: 26px; height: 26px; color: var(--c-accent); margin-top: .1rem; }
.adv-list strong { display: block; color: #fff; margin-bottom: .2rem; }
.adv-list span { font-size: .94rem; }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .trust-icon { width: 44px; height: 44px; }
.contact-list small { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); font-weight: 600; }
.contact-list div > a, .contact-list div > span { color: var(--c-ink); font-weight: 500; text-decoration: none; }
.contact-list a:hover { color: var(--c-primary); text-decoration: underline; }

.map { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-soft); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem;
  background: linear-gradient(rgba(245, 247, 251, .92), rgba(245, 247, 251, .92)), repeating-linear-gradient(0deg, #E3E7F0 0 1px, transparent 1px 40px), repeating-linear-gradient(90deg, #E3E7F0 0 1px, transparent 1px 40px); }
.map-placeholder p { font-size: .88rem; max-width: 36ch; margin: .75rem auto 0; color: var(--c-muted); }

.aside-card { padding: 1.5rem; border-radius: var(--r-md); border: 1px solid var(--c-line); background: #fff; }
.aside-card h3 { font-size: 1rem; }

/* Relacionados */
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
@media (min-width: 700px) { .related { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related a { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); text-decoration: none; color: var(--c-ink); font-weight: 600; font-size: .95rem; line-height: 1.35; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.related a:hover { border-color: #AEB6D2; box-shadow: var(--shadow-md); color: var(--c-primary); }
.related .icon { color: var(--c-primary); width: 22px; height: 22px; }

/* ---------- Formularios ---------- */
.form-card { background: #fff; color: var(--c-text); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 1.5rem; border: 1px solid var(--c-line); }
@media (min-width: 480px) { .form-card { padding: 2rem; } }
.form-card h2, .form-card h3 { font-size: 1.3rem; margin-bottom: .35rem; }
.form-intro { font-size: .94rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.form-card--flat { box-shadow: var(--shadow-md); }

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 560px) { .field-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.label, .field > label, fieldset.field > legend { display: block; margin-bottom: .45rem; font: 600 .9rem/1.35 var(--f-body); color: var(--c-ink); padding: 0; }
.req { color: var(--c-error); margin-left: .15rem; }
.opt { font-weight: 400; color: var(--c-muted); font-size: .84rem; }
.input, .select, .textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; font: 400 1rem/1.4 var(--f-body); color: var(--c-ink);
  background: #fff; border: 1px solid var(--c-line-strong); border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease; appearance: none; -webkit-appearance: none;
}
.textarea { min-height: 110px; resize: vertical; }
.select { padding-right: 2.75rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23263368' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 16px no-repeat; }
.input::placeholder, .textarea::placeholder { color: #80869A; }
.input:hover, .select:hover, .textarea:hover { border-color: #9EA6BC; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(38, 51, 104, .14); }
[aria-invalid="true"].input, [aria-invalid="true"].select, [aria-invalid="true"].textarea { border-color: var(--c-error); }
.field-error { display: block; margin-top: .4rem; font-size: .86rem; color: var(--c-error); font-weight: 500; }
.field-error:empty { display: none; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.options { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.options--1 { grid-template-columns: 1fr; }
.options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span {
  display: flex; align-items: center; min-height: 48px; height: 100%; padding: .65rem .95rem;
  border: 1px solid var(--c-line-strong); border-radius: var(--r-sm); background: #fff;
  font: 500 .93rem/1.3 var(--f-body); color: var(--c-ink); transition: all .15s ease;
}
.option span::before { content: ""; flex: none; width: 16px; height: 16px; margin-right: .65rem; border-radius: 50%; border: 1.5px solid #9EA6BC; background: #fff; transition: all .15s ease; }
.option:hover span { border-color: var(--c-primary); }
.option input:checked + span { border-color: var(--c-primary); background: #EEF1F9; color: var(--c-primary); box-shadow: inset 0 0 0 1px var(--c-primary); }
.option input:checked + span::before { border-color: var(--c-primary); box-shadow: inset 0 0 0 3.5px #fff; background: var(--c-primary); }
.option input:focus-visible + span { outline: 3px solid #5B6FC2; outline-offset: 2px; }
fieldset[aria-invalid="true"] .option span { border-color: #D9A39E; }

.field > label.check, .check { display: flex; gap: .7rem; align-items: flex-start; font: 400 .9rem/1.45 var(--f-body); color: var(--c-text); cursor: pointer; margin: 0; }
.check input { flex: none; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--c-primary); cursor: pointer; }

.progress { margin-bottom: 1.5rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--c-muted); margin-bottom: .5rem; letter-spacing: .02em; }
.progress-label span:first-child { color: var(--c-primary); }
.progress-track { height: 4px; background: var(--c-soft); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--c-primary); border-radius: 4px; transition: width .3s ease; }

.form-step[hidden] { display: none; }
.form-step-title { font: 600 1.02rem var(--f-head); color: var(--c-ink); margin: 0 0 1rem; outline: none; }
.form-nav { display: flex; gap: .75rem; justify-content: space-between; margin-top: 1.4rem; }
.form-nav .btn { flex: 1; }
.form-nav .btn--back { flex: 0 0 auto; }

.captcha-field { margin: .25rem 0 1rem; }
.captcha-slot { min-height: 78px; max-width: 100%; overflow: hidden; }
@media (max-width: 400px) { .captcha-slot > div { transform: scale(.86); transform-origin: 0 0; } .captcha-slot { min-height: 68px; } }
.form-legal { margin-top: 1rem; font-size: .76rem; line-height: 1.5; color: var(--c-muted); }
.form-legal p { margin-bottom: .45rem; }
.form-legal a { color: var(--c-muted); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { padding: .9rem 1rem; border-radius: var(--r-sm); font-size: .92rem; margin-top: 1rem; }
.alert:empty, .alert[hidden] { display: none; }
.alert--error { background: var(--c-error-bg); color: #7A1A13; border: 1px solid #F1C7C2; }
.alert .btn { margin-top: .75rem; }

.form-success { text-align: center; padding: 1.5rem .5rem; }
.form-success[hidden] { display: none; }
.form-success-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1.25rem; display: grid; place-items: center; background: var(--c-ok-bg); color: var(--c-ok); }
.form-success-icon .icon { width: 30px; height: 30px; stroke-width: 2; }
.form-success h3 { font-size: 1.25rem; outline: none; }
.form-success p { font-size: .96rem; margin-bottom: 1.5rem; }

.form-contact { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; }
.form-contact span { width: 100%; color: var(--c-muted); }
.form-contact a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.form-contact a.wa { color: var(--c-wa-text); }

/* ---------- Fichas de datos de clientes ---------- */
.ficha-wrap { max-width: 900px; }
.form-card--ficha { padding: clamp(1.25rem, 1rem + 2vw, 2.75rem); }
.ficha-seccion { border-top: 1px solid var(--c-line); padding-top: 1.75rem; margin-top: 1.75rem; }
.ficha-seccion:first-of-type { border-top: 0; padding-top: 0; margin-top: .5rem; }
.ficha-seccion > legend { display: flex; align-items: center; gap: .85rem; font: 600 1.15rem/1.3 var(--f-head); color: var(--c-ink); margin-bottom: 1.25rem; padding: 0; }
.ficha-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--c-primary); color: var(--c-primary); font: 600 .8rem var(--f-head); flex: none; }
.ficha-grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 700px) { .ficha-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .span-2 { grid-column: 1 / -1; } }
.ficha-campo[hidden] { display: none; }
.ficha-final { border-top: 1px solid var(--c-line); margin-top: 1.5rem; padding-top: 1.5rem; }
.ficha-final .notice { margin-top: 0; }
.check-list { display: grid; gap: .65rem; }
.field-hint { display: block; margin-top: .4rem; font-size: .84rem; color: var(--c-muted); }
.input--file { padding: .7rem; min-height: 0; cursor: pointer; }
.input--file::file-selector-button { margin-right: 1rem; padding: .5rem 1rem; border: 1px solid var(--c-primary); border-radius: 8px; background: #fff; color: var(--c-primary); font: 600 .9rem var(--f-body); cursor: pointer; }
input[type="date"].input { min-height: 52px; }

/* ---------- Buscador 404 ---------- */
.search-box { position: relative; max-width: 560px; margin-bottom: 2rem; }
.search-box .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--c-muted); }
.search-box .input { padding-left: 2.9rem; min-height: 56px; font-size: 1.05rem; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
@media (min-width: 700px) { .search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.search-results a { display: block; padding: .85rem 1rem; border: 1px solid var(--c-line); border-radius: var(--r-sm); text-decoration: none; color: var(--c-ink); font-weight: 600; }
.search-results a small { display: block; font-weight: 400; color: var(--c-muted); font-size: .84rem; }
.search-results a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- CTA final ---------- */
.cta-band { display: grid; gap: 1.5rem; align-items: center; padding: clamp(2rem, 1.5rem + 2vw, 3rem); border-radius: var(--r-lg); background: var(--c-primary); color: var(--c-on-dark); }
.cta-band h2 { color: #fff; margin-bottom: .4rem; font-size: clamp(1.35rem, 1.15rem + 1vw, 1.8rem); }
.cta-band p { margin: 0; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--c-night); color: var(--c-on-dark-muted); font-size: .93rem; }
.footer-main { display: grid; gap: 2.5rem; padding-block: 4rem 3rem; }
@media (min-width: 700px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 3rem; } }
.footer-main h2 { font: 600 .78rem var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-main ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-about p { margin: 1.25rem 0; max-width: 36ch; }
.seal { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-sm); max-width: 330px; }
.seal-img { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--c-primary); font: 700 .9rem var(--f-head); }
.seal-img img { width: 100%; height: 100%; object-fit: cover; }
.seal small { display: block; line-height: 1.4; font-size: .82rem; }
.seal strong { color: #fff; display: block; font-size: .9rem; }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact .icon { width: 17px; height: 17px; margin-top: .2rem; opacity: .7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding-block: 1.5rem; font-size: .85rem; }
.footer-bottom ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Elementos fijos ---------- */
.wa-float {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  display: none; place-items: center; background: var(--c-wa); color: #fff; box-shadow: 0 8px 24px rgba(20, 27, 61, .25);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.05); color: #fff; }
.wa-float .icon { width: 28px; height: 28px; stroke-width: 1.7; }
@media (min-width: 768px) { .wa-float { display: grid; } }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--c-line); box-shadow: 0 -4px 20px rgba(20, 27, 61, .08); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 62px; font: 600 .78rem var(--f-body); color: var(--c-ink); text-decoration: none; }
.mobile-bar a + a { border-left: 1px solid var(--c-line); }
.mobile-bar .icon { width: 22px; height: 22px; }
.mobile-bar .mb-wa { color: var(--c-wa-text); }
.mobile-bar .mb-cita { background: var(--c-primary); color: #fff; }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Impresión ---------- */
@media print {
  .topbar, .site-header, .mobile-bar, .wa-float, .form-card, .site-footer { display: none !important; }
  body { padding: 0; }
}
