/* =========================================================
   CliniLabora — Clínica y laboratorio
   Sistema visual derivado del logotipo
   ========================================================= */

/* ---------- Fuentes (locales, offline) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  /* Marca (muestreados del logo) */
  --navy: #12395A;
  --navy-900: #0B2740;
  --navy-700: #1B4A70;
  --teal: #029CA4;
  --teal-600: #018A91;
  --teal-300: #5CC6CB;
  --teal-50: #E8F6F7;

  --ink: #0F2233;
  --ink-2: #4A5D6E;
  --ink-3: #7A8B9A;
  --line: rgba(18, 57, 90, 0.10);
  --bg: #FFFFFF;
  --bg-soft: #F4F8FA;

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;

  --shadow-sm: 0 1px 2px rgba(11, 39, 64, .06), 0 2px 8px rgba(11, 39, 64, .05);
  --shadow-md: 0 2px 6px rgba(11, 39, 64, .06), 0 12px 32px rgba(11, 39, 64, .08);
  --shadow-lg: 0 8px 20px rgba(11, 39, 64, .08), 0 30px 70px rgba(11, 39, 64, .14);

  /* Curvas tipo resorte críticamente amortiguado (sin rebote) */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.32, .72, 0, 1);

  --nav-h: 76px;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); }
a { color: var(--teal-600); }
img { max-width: 100%; }
::selection { background: var(--teal); color: #fff; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s var(--ease-out); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.text-teal { color: var(--teal); }
.text-teal-light { color: var(--teal-300); }

/* ---------- Tipografía (tracking según tamaño) ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.text-center .eyebrow::before { display: none; }
.eyebrow-light { color: var(--teal-300); }

.display-title {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.lead-text { font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--ink-2); line-height: 1.65; max-width: 34rem; margin-bottom: 2rem; }
.section-sub { font-size: 1.12rem; color: var(--ink-2); line-height: 1.6; }
.section-sub strong { color: var(--ink); font-weight: 600; }
.body-text { color: var(--ink-2); }

.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.text-center { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Botones (feedback en pointer-down) ---------- */
.btn-cl {
  --bh: 48px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .02em;
  border-radius: 999px;
  min-height: var(--bh);
  padding: 0 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  border: 1.5px solid transparent;
  transition: transform .45s var(--ease-spring), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-cl i { transition: transform .45s var(--ease-spring); }
.btn-cl:hover i { transform: translateX(3px); }
.btn-cl:active, .btn-cl.is-pressed { transform: scale(.965); transition-duration: .1s; }
.btn-lg-cl { --bh: 56px; padding: 0 1.9rem; font-size: .98rem; }

.btn-cl-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(2, 156, 164, .28); }
.btn-cl-primary:hover, .btn-cl-primary:focus-visible { background: var(--teal-600); color: #fff; box-shadow: 0 10px 26px rgba(2, 156, 164, .34); }
.btn-cl-navy { background: var(--navy); color: #fff; }
.btn-cl-navy:hover { background: var(--navy-700); color: #fff; }
.btn-cl-ghost { background: transparent; color: var(--navy); border-color: rgba(18, 57, 90, .2); }
.btn-cl-ghost:hover { border-color: var(--navy); color: var(--navy); background: rgba(18, 57, 90, .04); }
.btn-cl-white { background: #fff; color: var(--navy); }
.btn-cl-white:hover { background: var(--teal-50); color: var(--navy); }

/* ---------- Header translúcido ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1030;
  transition: background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header::after { /* scroll edge effect, no borde duro */
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 18px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(244, 248, 250, .55), rgba(244, 248, 250, 0));
  opacity: 0; transition: opacity .35s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(18, 57, 90, .06);
}
.site-header.is-scrolled::after { opacity: 1; }
.navbar { min-height: var(--nav-h); padding: 0; }
.navbar-brand img { height: 40px; width: auto; transition: height .35s var(--ease-out); }
.site-header.is-scrolled .navbar-brand img { height: 34px; }
.navbar-nav .nav-link {
  font-family: var(--font-display); font-weight: 500; font-size: .9rem;
  color: var(--ink-2); padding: .5rem .85rem !important; border-radius: 999px; position: relative;
  transition: color .2s ease, background-color .2s ease;
}
.navbar-nav .nav-link:hover { color: var(--navy); background: rgba(18, 57, 90, .05); }
.navbar-nav .nav-link.active { color: var(--navy); }
.navbar-nav .nav-link.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%; background: var(--teal); transform: translateX(-50%); }
.btn-nav { --bh: 42px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }

.nav-toggle {
  width: 44px; height: 44px; border: 0; background: rgba(18, 57, 90, .06); border-radius: 50%;
  position: relative; display: grid; place-items: center;
}
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .45s var(--ease-spring), top .45s var(--ease-spring); }
.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 991.98px) {
  .site-header.menu-open { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); }
  .navbar-collapse { padding: .5rem 0 1.25rem; }
  .navbar-nav .nav-link { font-size: 1.15rem; padding: .7rem .25rem !important; border-radius: 0; border-bottom: 1px solid var(--line); }
  .navbar-nav .nav-link.active::after { left: auto; right: 6px; top: 50%; bottom: auto; transform: translateY(-50%); width: 6px; height: 6px; }
  .btn-nav { width: 100%; margin-top: 1rem; --bh: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(40px, 7vw, 90px)) 0 clamp(70px, 9vw, 120px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 20%, rgba(2, 156, 164, .14), transparent 70%),
    radial-gradient(45% 50% at 5% 90%, rgba(18, 57, 90, .08), transparent 70%),
    linear-gradient(180deg, #F6FAFB 0%, #fff 100%);
}
.coverage { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem 0; font-family: var(--font-display); font-size: .86rem; font-weight: 500; color: var(--ink-2); }
.coverage li { display: inline-flex; align-items: center; }
.coverage li + li::before { content: "·"; margin: 0 .6rem; color: var(--teal); font-weight: 700; }
.coverage i { color: var(--teal); margin-right: .45rem; }

.hero-visual { position: relative; padding: 0 0 28px 28px; }
.media {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg);
  /* Fallback de marca mientras se cargan/colocan las fotos */
  background:
    url("../assets/brand/emblema-blanco.png") center / 34% no-repeat,
    linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 45%, var(--teal) 100%);
  isolation: isolate;
}
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease-out), opacity .6s ease; }
.media img.is-missing { opacity: 0; }
.media-hero { aspect-ratio: 4 / 4.4; box-shadow: var(--shadow-lg); }
.media-hero img { transform: scale(1.04); }
.hero-visual.is-in .media-hero img { transform: scale(1); }

.glass-chip {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem .85rem .85rem; border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: var(--shadow-md);
  font-family: var(--font-display); line-height: 1.25;
  will-change: transform;
}
.glass-chip strong { display: block; font-size: .9rem; font-weight: 600; color: var(--navy); letter-spacing: -.005em; }
.glass-chip small { display: block; font-size: .76rem; color: var(--ink-2); font-weight: 500; letter-spacing: .01em; }
.chip-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 1.15rem; flex: none; }
.chip-icon-navy { background: var(--navy); }
.chip-a { left: 0; bottom: 64px; }
.chip-b { right: -10px; top: 32px; }

/* ---------- Segmented control (países) ---------- */
.segmented {
  position: relative; display: flex; width: fit-content; max-width: 100%; margin: 0 auto clamp(36px, 4vw, 52px);
  padding: 5px; border-radius: 999px; background: rgba(18, 57, 90, .06);
  overflow-x: auto; scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.seg-thumb {
  position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: 999px;
  background: #fff; box-shadow: 0 1px 2px rgba(11, 39, 64, .08), 0 4px 14px rgba(11, 39, 64, .10);
  transition: transform .5s var(--ease-spring), width .5s var(--ease-spring), height .5s var(--ease-spring);
  will-change: transform, width;
}
.seg-btn {
  position: relative; z-index: 1; border: 0; background: transparent; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-2);
  padding: .8rem 1.4rem; border-radius: 999px; transition: color .25s ease, transform .2s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.seg-btn:active { transform: scale(.96); }
.seg-btn.active { color: var(--navy); }

.panes { position: relative; }
.pane { transition: opacity .45s var(--ease-out), transform .55s var(--ease-spring); }
.pane.is-entering { opacity: 0; transform: translateY(14px); }

.svc-card {
  height: 100%; display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px); position: relative; overflow: hidden;
  transition: transform .6s var(--ease-spring), box-shadow .5s var(--ease-out), border-color .3s ease;
}
.svc-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(2, 156, 164, .14), transparent 70%); transition: transform .8s var(--ease-out); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::after { transform: scale(1.4); }
.svc-tag { font-family: var(--font-display); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); background: var(--teal-50); padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.25rem; }
.svc-card h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -.018em; line-height: 1.2; margin-bottom: .75rem; }
.svc-card p { color: var(--ink-2); flex: 1; margin-bottom: 1.5rem; }
.svc-link {
  font-family: var(--font-display); font-weight: 600; font-size: .86rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
  padding-bottom: 3px; background: linear-gradient(var(--teal), var(--teal)) left bottom / 0 2px no-repeat;
  transition: background-size .45s var(--ease-out), color .2s ease;
}
.svc-link i { color: var(--teal); transition: transform .45s var(--ease-spring); }
.svc-link:hover { color: var(--navy); background-size: 100% 2px; }
.svc-link:hover i { transform: translateX(4px); }
.svc-link:active { opacity: .7; }

/* ---------- Atención clínica ---------- */
.study-card { height: 100%; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .6s var(--ease-spring), box-shadow .5s var(--ease-out); display: flex; flex-direction: column; }
.study-card .media { border-radius: 0; aspect-ratio: 4 / 3; }
.study-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.study-card:hover .media img { transform: scale(1.05); }
.study-body { padding: 1.6rem 1.5rem 1.8rem; position: relative; flex: 1; }
.study-icon { position: absolute; top: -26px; left: 1.5rem; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: #fff; color: var(--teal); font-size: 1.35rem; box-shadow: var(--shadow-md); }
.study-body h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.012em; margin: 1.2rem 0 .5rem; }
.study-body p { font-size: .96rem; color: var(--ink-2); margin: 0; }

.note-bar {
  margin-top: clamp(36px, 4vw, 56px); display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap;
  padding: 1.4rem 1.6rem; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line);
}
.note-bar > i { font-size: 1.4rem; color: var(--teal); }
.note-bar p { margin: 0; flex: 1 1 320px; color: var(--ink-2); font-size: .98rem; }

/* ---------- Nosotros ---------- */
.about-visual { position: relative; padding: 0 28px 28px 0; }
.media-tall { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow-lg); }
.about-badge { position: absolute; right: 0; bottom: 0; width: 120px; height: 120px; border-radius: 32px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%); box-shadow: var(--shadow-md); display: grid; place-items: center; }
.about-badge img { width: 64px; height: 64px; }
.values { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.values li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 1.2rem; border-radius: var(--r-md); transition: background-color .3s ease; }
.values li:hover { background: var(--bg-soft); }
.value-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); font-size: 1.2rem; }
.values h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; margin: .1rem 0 .25rem; }
.values p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* ---------- Paso a paso ---------- */
.section-navy { background: radial-gradient(70% 60% at 100% 0%, rgba(2, 156, 164, .28), transparent 60%), var(--navy); color: rgba(255, 255, 255, .78); overflow: hidden; }
.section-navy::before { content: ""; position: absolute; left: -120px; bottom: -140px; width: 420px; height: 420px; background: url("../assets/brand/emblema-blanco.png") center / contain no-repeat; opacity: .04; pointer-events: none; }
.steps { position: relative; }
.steps-track { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; display: none; }
.steps-fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-300)); border-radius: 2px; transform-origin: left; transform: scaleX(0); }
@media (min-width: 992px) { .steps-track { display: block; left: 12.5%; right: 12.5%; } }
.step { text-align: center; padding: 0 .5rem; }
.step-num {
  width: 68px; height: 68px; border-radius: 50%; display: inline-grid; place-items: center; margin-bottom: 1.4rem; position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: -.01em;
  background: var(--navy); border: 2px solid rgba(255, 255, 255, .18);
  transition: background-color .5s var(--ease-out), border-color .5s ease, transform .6s var(--ease-spring), box-shadow .5s ease;
}
.step.is-active .step-num { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 8px rgba(2, 156, 164, .16); }
.step h3 { color: #fff; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; margin-bottom: .5rem; }
.step p { font-size: .96rem; color: rgba(255, 255, 255, .72); margin: 0 auto; max-width: 260px; }

/* ---------- Ubicaciones ---------- */
.loc-card {
  height: 100%; padding: 2rem 1.6rem; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden;
  transition: transform .6s var(--ease-spring), box-shadow .5s var(--ease-out), border-color .3s ease;
}
.loc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--navy) 50%, var(--teal) 50%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.loc-card:hover::before { transform: scaleX(1); }
.loc-pin { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.2rem; margin-bottom: 1.4rem; }
.loc-brand { font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); margin: 0 0 .2rem; }
.loc-card h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: -.018em; margin-bottom: .6rem; }
.loc-data { color: var(--ink-3); font-size: .92rem; flex: 1; margin-bottom: 1.4rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; }
.faq-item { background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); transition: box-shadow .4s var(--ease-out), border-color .3s ease; }
.faq-item:has(.faq-q:not(.collapsed)) { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq-q {
  width: 100%; text-align: left; border: 0; background: transparent; padding: 1.3rem 1.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--navy); letter-spacing: -.008em;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-radius: var(--r-md);
}
.faq-q:active { background: rgba(18, 57, 90, .03); }
.faq-plus { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-50); position: relative; flex: none; transition: background-color .3s ease, transform .5s var(--ease-spring); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--teal-600); transform: translate(-50%, -50%); transition: transform .5s var(--ease-spring), background-color .3s; }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q:not(.collapsed) .faq-plus { background: var(--teal); transform: rotate(180deg); }
.faq-q:not(.collapsed) .faq-plus::before, .faq-q:not(.collapsed) .faq-plus::after { background: #fff; }
.faq-q:not(.collapsed) .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 1.5rem 1.4rem; margin: 0; color: var(--ink-2); max-width: 640px; }
.collapsing { transition: height .45s var(--ease-spring); }

/* ---------- Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; font-family: var(--font-display); font-weight: 500; color: var(--navy); }
.contact-list li > span { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); font-size: 1.15rem; flex: none; }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.form-card { background: #fff; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); position: relative; }
.form-label { font-family: var(--font-display); font-size: .84rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; letter-spacing: .005em; }
.form-label .opt { color: var(--ink-3); font-weight: 500; }
.form-control, .form-select {
  min-height: 52px; border-radius: 14px; border: 1.5px solid rgba(18, 57, 90, .14); background-color: var(--bg-soft);
  font-size: 1rem; color: var(--ink); padding: .7rem 1rem;
  transition: border-color .2s ease, box-shadow .25s var(--ease-out), background-color .2s ease;
}
textarea.form-control { min-height: 110px; resize: vertical; }
.form-control::placeholder { color: var(--ink-3); font-size: .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--teal); background-color: #fff; box-shadow: 0 0 0 4px rgba(2, 156, 164, .15); }
.form-control.is-invalid, .form-select.is-invalid, .was-validated .form-control:invalid, .was-validated .form-select:invalid { border-color: #D14A4A; background-image: none; }
.form-control.is-valid, .form-select.is-valid, .was-validated .form-control:valid, .was-validated .form-select:valid { border-color: rgba(2, 156, 164, .55); background-image: none; }
.form-select.is-prefilled { animation: prefill 1.2s var(--ease-out); }
@keyframes prefill { 0% { box-shadow: 0 0 0 0 rgba(2, 156, 164, .45); } 100% { box-shadow: 0 0 0 10px rgba(2, 156, 164, 0); } }
.form-check-input { width: 1.25em; height: 1.25em; margin-top: .18em; border-color: rgba(18, 57, 90, .3); }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(2, 156, 164, .15); border-color: var(--teal); }
.form-check-label { color: var(--ink-2); font-size: .96rem; }
.form-note { font-size: .86rem; color: var(--ink-3); margin: .9rem 0 0; text-align: center; }
.form-success { text-align: center; padding: 2.5rem 1rem; }
.form-success:focus { outline: none; }
.success-icon { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.4rem; display: grid; place-items: center; background: var(--teal); color: #fff; font-size: 2.2rem; box-shadow: 0 0 0 10px rgba(2, 156, 164, .14); }
.form-success h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.form-success p { color: var(--ink-2); max-width: 380px; margin: 0 auto 1.6rem; }
.form-success.is-in .success-icon { animation: pop .7s var(--ease-spring) both; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ---------- Cierre ---------- */
.closing { position: relative; padding: clamp(110px, 14vw, 180px) 0; overflow: hidden; color: #fff; }
.closing-media { position: absolute; inset: 0; border-radius: 0; z-index: 0; background: linear-gradient(135deg, var(--navy-900), var(--teal)); }
.closing-media img { transform: scale(1.08); }
.closing-overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(11, 39, 64, .94) 0%, rgba(18, 57, 90, .82) 45%, rgba(2, 156, 164, .55) 100%); }
.closing-inner { max-width: 700px; }
.closing-title { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -.032em; margin-bottom: 1.1rem; text-wrap: balance; }
.closing p { font-size: 1.15rem; color: rgba(255, 255, 255, .82); margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); padding: 72px 0 28px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 1.3rem; }
.footer-claim { max-width: 360px; font-size: 1rem; }
.footer-cities { font-size: .88rem; color: rgba(255, 255, 255, .55); }
.footer-cities i { color: var(--teal-300); }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; justify-content: flex-start; }
@media (min-width: 992px) { .footer-links { justify-content: flex-end; padding-top: .7rem; } }
.footer-links a { color: rgba(255, 255, 255, .82); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--teal-300); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-bottom p { margin: 0; font-size: .84rem; color: rgba(255, 255, 255, .5); }
.to-top { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background-color .25s, transform .45s var(--ease-spring); }
.to-top:hover { background: var(--teal); color: #fff; transform: translateY(-3px); }

/* ---------- Modal ---------- */
.modal-content { border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--line); padding: 1.25rem 1.5rem; }
.modal-title { font-size: 1.2rem; font-weight: 600; }
.modal-backdrop.show { opacity: .35; }
.modal.fade .modal-dialog { transform: translateY(16px) scale(.98); transition: transform .5s var(--ease-spring); }
.modal.show .modal-dialog { transform: none; }

/* ---------- CTA móvil flotante ---------- */
.mobile-cta {
  position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1020;
  min-height: 54px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .9rem;
  color: #fff; text-decoration: none; background: rgba(2, 156, 164, .92);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: 0 10px 30px rgba(11, 39, 64, .25);
  transform: translateY(140%); transition: transform .55s var(--ease-spring);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta:active { transform: scale(.97); }
.mobile-cta:hover { color: #fff; }

/* ---------- Revelado al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-spring); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .about-visual { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .hero-visual { padding: 0 0 22px 0; }
  .chip-a { left: 12px; bottom: 34px; }
  .chip-b { right: 12px; top: 16px; }
  .glass-chip { padding: .65rem .9rem .65rem .65rem; }
  .chip-icon { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }
  .glass-chip strong { font-size: .82rem; }
  .glass-chip small { font-size: .7rem; }
  .segmented { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border-radius: 26px; overflow: visible; }
  .seg-thumb { border-radius: 22px; }
  .seg-btn { padding: .8rem .5rem; font-size: .86rem; border-radius: 22px; }
  .about-visual { padding: 0 16px 16px 0; }
  .about-badge { width: 92px; height: 92px; border-radius: 26px; }
  .about-badge img { width: 50px; height: 50px; }
  .note-bar .btn-cl { width: 100%; }
  .btn-lg-cl { width: 100%; }
  .hero .d-flex .btn-lg-cl { width: 100%; }
  .site-footer { padding-bottom: 96px; }
}

/* ---------- Accesibilidad: movimiento, transparencia, contraste ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .media img, .closing-media img { transform: none !important; }
  .glass-chip { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .glass-chip, .about-badge, .mobile-cta { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.is-scrolled { background: #fff; }
  .glass-chip, .about-badge { background: #fff; }
  .mobile-cta { background: var(--teal); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #2B3E4F; --ink-3: #4A5D6E; --line: rgba(18, 57, 90, .35); }
  .glass-chip { background: #fff; border-color: var(--navy); }
}
