/* AMISALUD — clean healthcare stylesheet, no framework */
:root {
  --bg: #ffffff;
  --soft: #f3f6fa;
  --soft-2: #e9eef5;
  --ink: #0b1440;
  --text: #2c3550;
  --muted: #5e6680;
  --line: #e2e7ef;
  --navy: #0a1a8c;
  --navy-2: #071266;
  --green: #149c12;
  --green-soft: #e8f6e8;
  --wa: #25d366;
  --r: 20px;
  --r-sm: 12px;
  --gut: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --nav: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Red Hat Display", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 600; letter-spacing: -.028em; line-height: 1.06; margin: 0; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; height: var(--nav); z-index: 50; background: rgba(255,255,255,.9); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(11,20,64,.05); }
.nav__bar { height: 100%; display: flex; align-items: center; gap: 28px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { display: block; text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--text); padding: 10px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav__links a:hover { background: var(--soft); color: var(--ink); }
.nav__links a[aria-current="page"] { color: var(--navy); background: #eef0fb; }
.nav__toggle { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); color: var(--ink); width: 46px; height: 46px; border-radius: 12px; cursor: pointer; }
@media (max-width: 920px) {
  :root { --nav: 64px; }
  .nav__logo img { height: 32px; }
  .nav__links, .nav .btn { display: none; }
  .nav__toggle { display: grid; place-items: center; }
}
.menu { position: fixed; inset: 0; z-index: 60; background: #fff; padding: calc(var(--nav) + 12px) var(--gut) 32px; display: flex; flex-direction: column; gap: 2px; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; overflow-y: auto; }
.menu.is-open { visibility: visible; opacity: 1; transform: none; }
.menu a:not(.btn) { font-size: 26px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 14px; }
.menu__close { position: absolute; top: 9px; right: var(--gut); background: #fff; border: 1px solid var(--line); color: var(--ink); width: 46px; height: 46px; border-radius: 12px; font-size: 24px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 600 15.5px/1 var(--font); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 8px 24px rgba(10,26,140,.22); }
.btn--navy:hover { background: var(--navy-2); box-shadow: 0 12px 28px rgba(10,26,140,.28); }
.btn--wa { background: var(--wa); color: #05301a; box-shadow: 0 8px 24px rgba(37,211,102,.25); }
.btn--wa:hover { background: #1fc25c; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--navy); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 560px) { .btns .btn { flex: 1 1 100%; } }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); text-decoration: none; }
.link::after { content: "→"; transition: transform .25s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* ---------- labels ---------- */
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }

/* ---------- hero ---------- */
.hero, .band { isolation: isolate; }
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(40px, 4.8vw, 68px); margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero .lead { font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); margin-top: 22px; max-width: 540px; }
.hero__media { position: relative; }
.hero__media .ph { border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 5.4; box-shadow: 0 30px 60px -20px rgba(11,20,64,.25); }
.hero__media .ph img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; background: #fff; border-radius: 18px; box-shadow: 0 18px 40px -12px rgba(11,20,64,.25); padding: 16px 18px; }
.float--a { left: -28px; bottom: 36px; width: 250px; }
.float--b { right: -18px; top: 28px; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 15px; }
.float small { display: block; color: var(--muted); font-size: 13px; font-weight: 500; }
.float b { display: block; color: var(--ink); font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.float svg { display: block; width: 100%; height: 34px; margin-top: 6px; }
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media .ph { aspect-ratio: 4 / 3; }
  .float--a { left: 12px; bottom: 12px; width: 220px; }
  .float--b { right: 12px; top: 12px; }
}
/* the heartbeat line from the logo */
.ecg { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: -1; opacity: .9; pointer-events: none; }
.ecg path, .float svg path { fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ecg path.ghost { stroke: var(--green-soft); stroke-width: 2; }
.ecg path.beat, .float svg path.beat { stroke-dasharray: 260 2000; animation: beat 10s linear infinite; }
.float svg path.beat { stroke-dasharray: 90 600; animation: beat-mini 4s linear infinite; }
.float svg path.ghost { stroke: var(--soft-2); }
@keyframes beat { from { stroke-dashoffset: 260; } to { stroke-dashoffset: -2000; } }
@keyframes beat-mini { from { stroke-dashoffset: 90; } to { stroke-dashoffset: -600; } }

/* counters */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- partner marquee ---------- */
.logos { padding: 28px 0 8px; }
.logos p { text-align: center; color: var(--muted); font-size: 14px; }
.marquee { overflow: hidden; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 80px; width: max-content; align-items: center; animation: slide 112s linear infinite; }
.marquee__track img { height: 44px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.marquee__track img:hover { filter: none; opacity: 1; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding-block: clamp(80px, 10vw, 136px); }
.section--soft { background: var(--soft); }
.head { max-width: 680px; }
.head h2 { font-size: clamp(32px, 3.8vw, 52px); }
.head p { color: var(--muted); font-size: 19px; margin-top: 18px; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; }
.head--row > div { max-width: 640px; }

/* service cards */

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split--top { align-items: start; }
.split__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -28px rgba(11,20,64,.3); }
.split__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.split__img:hover img { transform: scale(1.04); }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } .split--rev .split__img { order: -1; } }

.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.checks li::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23149c12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checks b { display: block; color: var(--ink); font-weight: 600; }
.checks span { color: var(--muted); font-size: 16px; }
.note { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-sm); background: #eef0fb; color: var(--navy-2); font-size: 15.5px; }

/* stats band */
.band { background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.78); }
.band .ecg { opacity: .35; }
.band .ecg path.beat { stroke: #6fe36d; }
.band .ecg path.ghost { stroke: rgba(255,255,255,.12); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; position: relative; }
.stats b { display: block; font-size: clamp(38px, 4.4vw, 60px); font-weight: 600; letter-spacing: -.035em; line-height: 1; color: #fff; }
.stats span { display: block; margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.75); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* service detail rows */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc:nth-child(even) .svc__img { order: 2; }
.svc__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc:hover .svc__img img { transform: scale(1.04); }
.svc__num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #eef0fb; color: var(--navy); font-weight: 700; font-size: 15px; margin-bottom: 20px; }
.svc h2 { font-size: clamp(28px, 3vw, 42px); }
.svc p { color: var(--muted); font-size: 18px; margin-top: 16px; max-width: 500px; }
@media (max-width: 920px) { .svc { grid-template-columns: 1fr; } .svc:nth-child(even) .svc__img { order: 0; } }

/* page hero */
.phero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.phero h1 { font-size: clamp(40px, 5vw, 72px); max-width: 15ch; margin-top: 18px; }
.phero .lead { color: var(--muted); font-size: clamp(18px, 1.5vw, 21px); margin-top: 20px; max-width: 620px; }
.phero__img { margin-top: clamp(40px, 5vw, 64px); border-radius: 28px; overflow: hidden; aspect-ratio: 21 / 8; }
.phero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .phero__img { aspect-ratio: 4 / 3; } }

/* gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; height: 380px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure { height: 200px; } .gallery figure:first-child { grid-column: 1 / -1; height: 240px; } }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 22px; transition: border-color .2s; }
.faq details[open] { border-color: #c9d1e4; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-size: 18px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 28px; font-weight: 400; color: var(--navy); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.contact-card { background: var(--soft); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease); }
.contact-card:hover { transform: translateY(-4px); }
.contact-card h2 { font-size: 14px; font-weight: 600; color: var(--green-ink); letter-spacing: .02em; line-height: 1.3; }
.contact-card a { font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-card a:hover { color: var(--navy); }
.contact-card address { font-style: normal; font-size: 17px; color: var(--text); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* cta */
.cta { text-align: left; }
.cta .band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(30px, 3.4vw, 46px); max-width: 16ch; }
.cta .btns { margin-top: 0; position: relative; }

/* ---------- footer ---------- */
.footer { background: var(--soft); padding-block: 64px 36px; font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1.1fr 1.5fr; gap: 40px; }
.footer h2 { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; letter-spacing: 0; line-height: 1.3; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--text); }
.footer a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.footer address { font-style: normal; color: var(--muted); }
.footer__logo img { height: 42px; width: auto; margin-bottom: 16px; }
.footer__legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- floating WhatsApp + phone bar ---------- */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.4); transition: transform .25s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.callbar { display: none; }
@media (max-width: 920px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset: auto 0 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .callbar .btn { padding: 0 12px; min-height: 50px; }
  .wa-float { display: none; }
  body { padding-bottom: 74px; }
}

/* ---------- call dialog (computers) ---------- */
.call-dialog { border: 0; background: #fff; color: var(--text); padding: 0; width: min(440px, 92vw); border-radius: 24px; box-shadow: 0 40px 80px -20px rgba(11,20,64,.4); }
.call-dialog::backdrop { background: rgba(11,20,64,.45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.call-dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.call-dialog__in { padding: 32px; }
.call-dialog h2 { font-size: 26px; }
.call-dialog p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.call-dialog ul { list-style: none; padding: 0; margin: 20px 0 0; }
.call-dialog li a { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 21px; font-weight: 600; color: var(--ink); }
.call-dialog li a:hover { color: var(--navy); }
.call-dialog li small { font-size: 13px; color: var(--muted); font-weight: 500; }
.call-dialog .btns { margin-top: 22px; }
.call-dialog .btns .btn { flex: 1; }
.call-dialog__close { float: right; background: var(--soft); border: 0; color: var(--ink); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1; }

/* ---------- motion: entrance + reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 921px) { .hero__text > * { animation: up .6s var(--ease) both; } }
  .hero__text > *:nth-child(2) { animation-delay: .04s; }
  .hero__text > *:nth-child(3) { animation-delay: .08s; }
  .hero__text > *:nth-child(4) { animation-delay: .12s; }
  .hero__text > *:nth-child(5) { animation-delay: .16s; }
  .hero__media { animation: zoomin .8s var(--ease) both; }
  .float--a { animation: floaty 6s ease-in-out infinite 1.2s; }
  .float--b { animation: floaty 7s ease-in-out infinite reverse 1.2s; }
  @keyframes up { from { opacity: 0; transform: translateY(22px); } }
  @keyframes zoomin { from { opacity: 0; transform: scale(.96); } }
  @keyframes floaty { 50% { transform: translateY(-8px); } }
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js [data-reveal-d="1"] { transition-delay: .08s; }
  .js [data-reveal-d="2"] { transition-delay: .16s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- carousel (services scrolling right, Whoop / Netux style) ---------- */
.carousel-wrap { position: relative; margin-top: 48px; }
.carousel { --pad: max(var(--gut), calc((100vw - var(--max)) / 2)); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 30vw, 380px); gap: 20px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 8px var(--pad) 24px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.slide { position: relative; scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: 24px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; box-shadow: 0 20px 40px -24px rgba(11,20,64,.35); }
.slide img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,14,48,.88) 0%, rgba(7,14,48,.35) 45%, rgba(7,14,48,0) 70%); }
.slide:hover img { transform: scale(1.07); }
.slide__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; }
.slide__n { position: absolute; top: 20px; left: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--navy); font-size: 13px; font-weight: 700; }
.slide h3 { color: #fff; font-size: 24px; }
.slide p { color: rgba(255,255,255,.85); font-size: 15.5px; margin-top: 8px; line-height: 1.5; }
.slide .more { display: inline-flex; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 15px; }
.slide .more::after { content: "→"; transition: transform .25s var(--ease); }
.slide:hover .more::after { transform: translateX(5px); }
.carousel-ctrl { display: flex; align-items: center; gap: 16px; }
.carousel-ctrl button { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s, transform .2s var(--ease); }
.carousel-ctrl button:hover:not(:disabled) { border-color: var(--ink); transform: translateY(-2px); }
.carousel-ctrl button:disabled { opacity: .35; cursor: default; }
.carousel-ctrl svg { width: 20px; height: 20px; }
.progress { height: 3px; background: var(--soft-2); border-radius: 3px; overflow: hidden; width: min(100% - 2 * var(--gut), var(--max)); margin: 8px auto 0; }
.progress i { display: block; height: 100%; width: 20%; background: var(--navy); border-radius: 3px; transition: transform .2s linear; transform-origin: left; }
@media (max-width: 620px) { .carousel { grid-auto-columns: 78%; } }

/* ---------- contact form ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 60px -36px rgba(11,20,64,.3); }
.form h3 { font-size: 24px; }
.form > p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: 400 16px/1.4 var(--font); color: var(--ink); background: var(--soft); border: 1.5px solid transparent; border-radius: 12px; padding: 14px 16px; min-height: 52px; width: 100%; transition: border-color .2s, background .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.field .err { color: #b42318; font-size: 13.5px; display: none; }
.field.bad input, .field.bad select { border-color: #b42318; }
.field.bad .err { display: block; }
.form .btns { margin-top: 22px; }
.form__alt { margin-top: 14px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; background: var(--soft); border-radius: var(--r); padding: 32px 28px; transition: transform .35s var(--ease), background .35s; }
.steps li:hover { transform: translateY(-4px); background: #eef0fb; }
.steps__n { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 22px; }
.steps h3 { font-size: 22px; }
.steps p { color: var(--muted); margin-top: 10px; font-size: 16.5px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* float card as a link */
a.float { text-decoration: none; display: block; transition: box-shadow .25s; }
a.float:hover { box-shadow: 0 22px 46px -12px rgba(10,26,140,.4); }
a.float b { font-size: 23px; color: var(--navy); }

/* smooth page-to-page transitions where the browser supports them */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .25s; }

/* small-screen polish */
@media (max-width: 920px) {
  .head--row .carousel-ctrl { display: none; }
  .marquee__track { gap: 48px; }
  .marquee__track img { height: 34px; }
  .band { border-radius: 22px; }
  .cta .band .btns { width: 100%; }
}
@media (max-width: 420px) { .float--b { display: none; } .hero h1 { font-size: 36px; } }
.contact-card a:not(.link) { padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
.contact-card { gap: 4px; }
.contact-card h2 { margin-bottom: 8px; }

/* ---------- aligned content: clients, triage, presence, social ---------- */
.marquee__track { gap: 0; }
.clients { display: flex; flex: none; gap: 56px; padding: 0 28px; margin: 0; list-style: none; align-items: center; }
.clients li { white-space: nowrap; font-size: 20px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.clients li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 14px; vertical-align: middle; opacity: .8; }
.triage { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.triage li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 30px 26px 28px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.triage li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--c, #fff); }
.triage li:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -22px rgba(11,20,64,.3); }
.triage h3 { font-size: 24px; display: flex; align-items: center; gap: 12px; }
.triage h3::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 0 1.5px var(--line) inset, 0 0 0 4px color-mix(in srgb, var(--c, #fff) 22%, transparent); }
.triage p { color: var(--muted); margin-top: 12px; font-size: 16.5px; }
.t-white { --c: #ffffff; } .t-white::before { box-shadow: 0 1px 0 var(--line); }
.t-green { --c: #1f9d3a; } .t-yellow { --c: #f2b01e; } .t-red { --c: #d92d20; }
@media (max-width: 980px) { .triage { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .triage { grid-template-columns: 1fr; } }
.states { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.states li { background: var(--soft); border-radius: var(--r-sm); padding: 18px 20px; display: grid; gap: 2px; transition: background .25s, transform .3s var(--ease); }
.states li:hover { background: #eef0fb; transform: translateY(-3px); }
.states b { color: var(--ink); font-weight: 600; }
.states span { color: var(--muted); font-size: 15px; }
.ig-ico { width: 20px; height: 20px; flex: none; }
a.ig { display: inline-flex; align-items: center; gap: 10px; }
.contact-card a.ig { gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.social a:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-3px); text-decoration: none; }
.social svg { width: 21px; height: 21px; }

/* a little future in the hero: soft light fields behind the content */
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.hero::before { width: 55vw; height: 55vw; max-width: 760px; max-height: 760px; right: -12vw; top: -18vw; background: radial-gradient(closest-side, rgba(10,26,140,.10), transparent 72%); }
.hero::after { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: -14vw; bottom: -16vw; background: radial-gradient(closest-side, rgba(20,156,18,.10), transparent 72%); }

/* ================= v4: buyer pages, data, triage demo, avant-garde touches ================= */
.h2 { font-size: clamp(32px, 3.8vw, 52px); }
.sub { color: var(--muted); font-size: 19px; margin-top: 18px; }
.nav__links { gap: 2px; }
@media (max-width: 1120px) { .nav__links a { padding: 10px 10px; font-size: 15px; } .nav__bar { gap: 16px; } }
@media (max-width: 1020px) {
  .nav__links, .nav .btn { display: none; }
  .nav__toggle { display: grid; place-items: center; }
}

/* clients strip: logos and verified names together */
.clients li.logo::before { display: none; }
.clients li.logo { display: flex; align-items: center; }
.clients img { height: 44px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.clients img:hover { filter: none; opacity: 1; }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* three doors: who we serve */
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.door { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 480px; border-radius: 28px; overflow: hidden; isolation: isolate; text-decoration: none; background: var(--soft); color: var(--ink); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.door img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(7,14,48,.92) 0%, rgba(7,14,48,.45) 55%, rgba(7,14,48,.15) 100%); opacity: 0; transition: opacity .6s var(--ease); }
.door__n { position: absolute; top: 22px; left: 28px; font-size: clamp(84px, 9vw, 132px); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--navy); transition: -webkit-text-stroke-color .5s, transform .8s var(--ease); }
.door__body { padding: 30px; }
.door h3 { font-size: 28px; transition: color .4s; }
.door p { color: var(--muted); margin-top: 10px; font-size: 16.5px; transition: color .4s; }
.door .more { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--navy); transition: color .4s; }
.door .more::after { content: "→"; transition: transform .3s var(--ease); }
.door:hover, .door:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 60px -28px rgba(11,20,64,.45); }
.door:hover img, .door:focus-visible img { opacity: 1; transform: scale(1); }
.door:hover::after, .door:focus-visible::after { opacity: 1; }
.door:hover h3, .door:hover .more, .door:focus-visible h3, .door:focus-visible .more { color: #fff; }
.door:hover p, .door:focus-visible p { color: rgba(255,255,255,.85); }
.door:hover .door__n, .door:focus-visible .door__n { -webkit-text-stroke-color: rgba(255,255,255,.85); transform: translateY(-4px); }
.door:hover .more::after { transform: translateX(5px); }
@media (hover: none) {
  .door img { opacity: 1; transform: none; } .door::after { opacity: 1; }
  .door h3, .door .more { color: #fff; } .door p { color: rgba(255,255,255,.85); } .door__n { -webkit-text-stroke-color: rgba(255,255,255,.85); }
}
@media (max-width: 920px) { .doors { grid-template-columns: 1fr; } .door { min-height: 340px; } }

/* triage demo: quiet, looping */
.tdemo { margin-top: 22px; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px; background: #fff; }
.tdemo__head { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); font-size: 15px; }
.tdemo__body { display: grid; grid-template-columns: 1.3fr auto 1fr; gap: 28px; align-items: center; margin-top: 20px; }
.tdemo small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.tdemo__case span, .tdemo__out span { display: block; font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.35; transition: opacity .35s, transform .35s var(--ease); }
.tdemo .swap { opacity: 0; transform: translateY(6px); }
.tdemo__codes { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.tdemo__codes li { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: default; transition: border-color .4s, color .4s, background .4s, transform .4s var(--ease); }
.tdemo__codes .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--line) inset; }
.tdemo__codes li.on { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); background: color-mix(in srgb, var(--c) 14%, #fff); }
.tdemo__codes li.on .dot { box-shadow: 0 0 0 1.5px var(--line) inset, 0 0 0 5px color-mix(in srgb, var(--c) 28%, transparent); }
.tdemo__note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 920px) { .tdemo__body { grid-template-columns: 1fr; gap: 16px; } .tdemo__codes { flex-wrap: wrap; } .tdemo__case span { min-height: 2.7em; } }

/* coverage */
.cover { display: grid; grid-template-columns: 1fr 1.7fr; gap: 20px; margin-top: 48px; align-items: start; }
.cover__direct { background: var(--navy); color: #fff; border-radius: var(--r); padding: 32px; position: relative; overflow: hidden; }
.cover__direct h3 { color: #fff; }
.cover__direct ul { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.cover__direct li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); }
.cover__direct li b { font-weight: 600; }
.cover__direct li span { color: rgba(255,255,255,.75); font-size: 15px; }
.cover__allies .states { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.section--soft .states li { background: #fff; }
@media (max-width: 920px) { .cover { grid-template-columns: 1fr; } }

/* data band on the home page */
.band--data { display: grid; gap: 36px; }
.band__head { position: relative; max-width: 640px; }
.band__head p { margin-top: 14px; font-size: 18px; }
.stats--3 { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.band .btns { position: relative; margin-top: 0; }
@media (max-width: 760px) { .stats--3 { grid-template-columns: 1fr; } }

/* monthly report sample */
.report { margin-top: 48px; background: #fff; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 40px 80px -48px rgba(11,20,64,.35); overflow: hidden; }
.report__bar, .brief__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 28px; background: var(--ink); color: rgba(255,255,255,.8); font-size: 13.5px; letter-spacing: .02em; }
.report__bar b, .brief__bar b { color: #fff; font-weight: 600; }
.report__kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.report__kpis div { padding: 26px 28px; border-right: 1px solid var(--line); }
.report__kpis div:last-child { border-right: 0; }
.report__kpis b { display: block; font-size: clamp(28px, 2.8vw, 40px); font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1.05; }
.report__kpis span { display: block; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.report__grid { display: grid; grid-template-columns: 1fr 1fr; }
.chart { margin: 0; padding: 28px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.chart--wide { grid-column: 1 / -1; border-right: 0; }
.chart--r { border-right: 0; }
.chart figcaption { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-weight: 600; color: var(--ink); font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 500; font-size: 13px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: baseline; }
.legend .a, .bar .a { background: var(--navy); } .legend .o, .bar .o { background: #b9c3ee; }
.legend .h1 { background: #c9d1e4; } .legend .h2 { background: var(--green); }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(4px, 1vw, 14px); align-items: end; height: 230px; margin-top: 26px; }
.col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 8px; min-width: 0; }
.col span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.bar { width: 100%; max-width: 46px; display: flex; flex-direction: column; border-radius: 6px 6px 2px 2px; overflow: hidden; transform-origin: bottom; }
.bar i { display: block; min-height: 2px; }
.bar--solo { background: var(--navy); position: relative; overflow: visible; max-width: 72px; }
.bar--solo b { position: absolute; left: 0; right: 0; top: -24px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.cols--hours { height: 190px; padding-top: 26px; }
.hrows { display: grid; gap: 18px; margin-top: 24px; }
.hrow__l { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.hrow__bars { display: grid; gap: 5px; }
.hbar { height: 22px; width: var(--w); min-width: 38px; border-radius: 4px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; transform-origin: left; }
.hbar b { font-size: 12.5px; font-weight: 600; }
.hbar--a { background: #dfe4f0; color: var(--ink); } .hbar--b { background: var(--green); color: #fff; }
.spark { margin-top: 20px; }
.spark b { display: block; font-size: 40px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.spark span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 8px; max-width: 320px; }
.sparkline { display: block; width: 100%; max-width: 380px; height: auto; margin-top: 18px; overflow: visible; }
.sparkline polyline { fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sparkline circle { fill: #fff; stroke: var(--navy); stroke-width: 2; }
.chart__note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.report__note { padding: 18px 28px 22px; font-size: 13.5px; color: var(--muted); background: var(--soft); }
@media (max-width: 860px) {
  .report__kpis { grid-template-columns: 1fr 1fr; } .report__kpis div:nth-child(2) { border-right: 0; } .report__kpis div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .report__grid { grid-template-columns: 1fr; } .chart { border-right: 0; padding: 22px 18px; }
  .cols { height: 190px; } .col span { font-size: 10.5px; } .cols--hours .col span { font-size: 9.5px; }
  .report__kpis div { padding: 20px 18px; } .report__bar, .brief__bar { padding: 12px 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .report[data-reveal] .bar { transform: scaleY(0); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 45ms + .15s); }
  .js .report[data-reveal].in .bar { transform: none; }
  .js .report[data-reveal] .hbar { transform: scaleX(0); transition: transform 1s var(--ease) .3s; }
  .js .report[data-reveal].in .hbar { transform: none; }
  .js .report[data-reveal] .sparkline polyline { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
  .js .report[data-reveal].in .sparkline polyline { stroke-dashoffset: 0; }
  .js .report[data-reveal] .sparkline circle { opacity: 0; transition: opacity .4s 1.5s; }
  .js .report[data-reveal].in .sparkline circle { opacity: 1; }
}

/* kinetic outlined type: the avant-garde dash */
.typeband { overflow: hidden; padding: clamp(28px, 5vw, 64px) 0; border-block: 1px solid var(--line); }
.typeband__track { display: flex; width: max-content; font-size: clamp(54px, 9.5vw, 148px); font-weight: 800; letter-spacing: -.045em; line-height: 1; white-space: nowrap; animation: slide 76s linear infinite; }
.typeband span { color: transparent; -webkit-text-stroke: 1.5px var(--navy); padding-right: .6em; }
.typeband span.fill { color: var(--green); -webkit-text-stroke: 0; }
@media (max-width: 620px) { .typeband span { -webkit-text-stroke-width: 1px; } }

/* big phone number for families */
.phero--call { position: relative; overflow: hidden; isolation: isolate; padding-bottom: clamp(72px, 9vw, 128px); }
.bignum { display: inline-block; margin-top: 30px; font-size: clamp(44px, 9vw, 128px); font-weight: 800; letter-spacing: -.05em; line-height: .95; color: var(--navy); text-decoration: none; transition: color .25s; }
.bignum small { display: block; font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--green); margin-bottom: 10px; }
.bignum:hover { color: var(--navy-2); }
.phero--call .btns { margin-top: 26px; }

/* Area Protegida one-pager */
.brief { margin-top: 48px; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -52px rgba(11,20,64,.35); }
.brief__grid { display: grid; grid-template-columns: 1fr 1fr; }
.brief__cell { padding: 32px; border-bottom: 1px solid var(--line); }
.brief__cell:nth-child(odd) { border-right: 1px solid var(--line); }
.brief__cell:nth-last-child(-n+2) { border-bottom: 0; }
.brief__cell--hl { background: #f4f6fd; }
.brief h3 { font-size: 21px; display: flex; align-items: center; gap: 12px; }
.brief__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 700; flex: none; }
.brief .checks { margin-top: 20px; }
.brief p { margin-top: 16px; }
.brief .link { margin-top: 16px; }
.tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 500; color: var(--ink); }
.plain { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.plain li { position: relative; padding-left: 20px; }
.plain li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--green); }
.plain--num { counter-reset: n; }
.plain--num li { counter-increment: n; padding-left: 36px; }
.plain--num li::before { content: counter(n); top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--green-soft); color: #0d6e0c; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
@media (max-width: 860px) { .brief__grid { grid-template-columns: 1fr; } .brief__cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; padding: 24px 20px; } .brief__cell:last-child { border-bottom: 0 !important; } }

/* sectors and partner names */
.sectors { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sectors li { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.sectors span { font-size: 13.5px; font-weight: 600; color: var(--green); margin-bottom: 6px; }
.sectors b { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sectors--row { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 860px) { .sectors, .sectors--row { grid-template-columns: 1fr 1fr; } }

/* pillars on the partners page */
.pillars { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars a { display: block; height: 100%; padding: 24px; border-radius: var(--r); background: var(--soft); text-decoration: none; color: var(--muted); font-size: 15.5px; transition: background .3s, color .3s, transform .35s var(--ease); }
.pillars span { display: block; font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 26px; transition: color .3s; }
.pillars b { display: block; font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 6px; transition: color .3s; }
.pillars a:hover { background: var(--navy); color: rgba(255,255,255,.8); transform: translateY(-4px); }
.pillars a:hover b { color: #fff; } .pillars a:hover span { color: #8ff08d; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr 1fr; } }

/* family story timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline b { font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.timeline span { font-size: 18px; }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* map */
.mapwrap { display: grid; grid-template-columns: 1fr 1.6fr; margin-top: clamp(40px, 5vw, 64px); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.mapwrap__info { padding: clamp(24px, 4vw, 44px); }
.mapwrap h2 { font-size: clamp(28px, 3vw, 40px); }
.mapwrap address { font-style: normal; margin-top: 16px; color: var(--text); font-size: 18px; line-height: 1.6; }
.map { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 860px) { .mapwrap { grid-template-columns: 1fr; } .map { min-height: 320px; } }
[id] { scroll-margin-top: calc(var(--nav) + 12px); }
.band h2 { font-size: clamp(30px, 3.4vw, 46px); }
.tdemo__case span { min-height: 2.7em; }
.tdemo__out span { min-height: 1.35em; }
@media (max-width: 620px) { .bignum { font-size: 13vw; } .door__n { font-size: 84px; } }
.legend span { white-space: nowrap; }

/* ================= v5: polish pass ================= */
:root {
  --green-ink: #0d6e0c; /* green for text and for fills that carry white text (4.5:1 and up) */
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* browser surfaces, themed from the palette */
html { scrollbar-color: #b9c3ee var(--soft); accent-color: var(--navy); }
::selection { background: var(--navy); color: #fff; }
input, textarea, select { caret-color: var(--navy); }
::placeholder { color: var(--muted); opacity: 1; }
a { text-underline-offset: 3px; }
.band :focus-visible, .cover__direct :focus-visible { outline-color: #fff; }
.facts b, .stats b, .report__kpis b, .spark b, .bignum, .float b, .contact-card a, .call-dialog li a, .footer li a, .bar--solo b, .hbar b { font-variant-numeric: tabular-nums; }

/* headings and paragraphs wrap evenly */
h1, h2, h3 { text-wrap: balance; }
p, li, address { text-wrap: pretty; }

/* tracking floor on display type */
.bignum, .door__n, .typeband__track { letter-spacing: -.04em; }

/* status line under the buttons (was a label above the heading) */
.status { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14.5px; font-weight: 600; color: var(--green-ink); }
.hero .status { margin-top: 24px; }
.phero h1 { margin-top: 0; }
.hero h1 { margin-top: 0; }

/* drawn icons in place of typed characters */
.link::after, .slide .more::after, .door .more::after {
  content: ""; display: inline-block; width: 1.05em; height: 1.05em; flex: none; background: currentColor;
  -webkit-mask: var(--ico-arrow) center / contain no-repeat; mask: var(--ico-arrow) center / contain no-repeat;
}
.faq summary::after {
  content: ""; width: 20px; height: 20px; top: 22px; background: var(--navy);
  -webkit-mask: var(--ico-plus) center / contain no-repeat; mask: var(--ico-plus) center / contain no-repeat;
}
.menu__close, .call-dialog__close { display: grid; place-items: center; padding: 0; }
.call-dialog__close svg { width: 16px; height: 16px; }

/* green text and green fills under white text meet contrast */
.bignum small, .sectors span, .pillars span { color: var(--green-ink); }
.hbar--b, .legend .h2 { background: var(--green-ink); }

/* triage cards: tint and full border in the code colour, no bar on one side */
.triage li::before { content: none; }
.triage li { background: color-mix(in srgb, var(--c, #fff) 7%, #fff); border-color: color-mix(in srgb, var(--c, #fff) 34%, var(--line)); }
.triage .t-white { background: #fff; border-color: var(--line); }
.triage h3::before { box-shadow: 0 0 0 1.5px var(--line) inset; }
.tdemo__codes li.on .dot { box-shadow: 0 0 0 1.5px var(--line) inset; transform: scale(1.25); }
.tdemo__codes .dot { transition: transform .4s var(--ease); }

/* coverage: headings instead of tags */
.cover__direct h3 { margin-top: 0; font-size: 26px; }
.cover__where { margin-top: 8px; color: rgba(255,255,255,.82); font-size: 17px; }
.cover__allies h3 { font-size: 26px; }

/* big number: display size capped, the free-line note under it */
.bignum { font-size: clamp(44px, 9vw, 6rem); }
.bignum small { margin: 12px 0 0; }
@media (max-width: 620px) { .bignum { font-size: 13vw; } }

/* form: confirmation after sending */
.form__status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); font-size: 15px; font-weight: 500; }

/* map area reads as a map while it loads or if it is blocked */
.map { background: var(--soft-2); }

/* printing and no-scroll captures show everything */
@media print {
  .nav, .callbar, .wa-float, .menu, .typeband, .carousel-ctrl, .progress { display: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .js .report[data-reveal] .bar, .js .report[data-reveal] .hbar { transform: none !important; }
  .js .report[data-reveal] .sparkline polyline { stroke-dashoffset: 0 !important; }
  .js .report[data-reveal] .sparkline circle { opacity: 1 !important; }
  body { padding-bottom: 0; }
}

/* detector follow-ups */
@media (hover: none) { .door { background: var(--ink); } }                 /* legible before the photo loads */
.btn--wa { box-shadow: 0 8px 22px rgba(11, 20, 64, .16); }                  /* neutral elevation, no coloured glow */
.wa-float { box-shadow: 0 10px 28px rgba(11, 20, 64, .28); }
.band .btn--wa { box-shadow: none; }
.brief h3 { font-size: 22px; }
@media (max-width: 860px) {
  .col span { font-size: 11px; }
  .cols--hours .col span { font-size: 11px; white-space: normal; text-align: center; line-height: 1.2; }
  .cols { gap: 3px; }
}
.link, .slide .more, .door .more { align-items: center; }

/* ================= v6: caring copy, FAQ, 24/7 ================= */
/* top bar: the 24/7 message on every page */
.topbar { background: var(--navy); color: #fff; font-size: 14.5px; }
.topbar .wrap { display: flex; align-items: center; gap: 12px; min-height: 40px; padding-block: 6px; }
.topbar b { font-weight: 700; letter-spacing: .01em; }
.topbar__more { color: rgba(255,255,255,.78); }
.topbar a { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.topbar a svg { width: 16px; height: 16px; }
.topbar a:hover { text-decoration: underline; }
.topbar .pulse, .topbar .pulse::after { background: #5fe35d; }
.topbar :focus-visible { outline-color: #fff; }
@media (max-width: 620px) { .topbar__more { display: none; } .topbar { font-size: 14px; } }
@media print { .topbar { display: none !important; } }

/* hero: "24/7" marked like a highlighter stroke that draws in once */
.hero h1 em { color: var(--navy); font-weight: 700; white-space: nowrap; background: linear-gradient(#bdf0bc, #bdf0bc) no-repeat 0 88% / 100% .34em; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 em { animation: mark 1s var(--ease) .55s both; }
  @keyframes mark { from { background-size: 0 .34em; } to { background-size: 100% .34em; } }
}

/* larger body copy for the "Su aliado" statement */
.big { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--text); }
.big + .big { margin-top: 18px; }

/* FAQ: grouped, one open at a time */
.faq-head { position: sticky; top: calc(var(--nav) + 24px); }
.faq-nav { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-nav a { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .2s, background .2s; }
.faq-nav a:hover { border-color: var(--ink); background: var(--soft); }
.faq-groups { display: grid; gap: 40px; }
.faq-group h3 { font-size: 22px; margin-bottom: 16px; }
.faq summary { padding-right: 44px; transition: color .2s; }
.faq summary:hover { color: var(--navy); }
.faq details[open] { background: #fff; box-shadow: 0 16px 32px -24px rgba(11, 20, 64, .35); }
.faq details p { font-size: 17px; line-height: 1.6; max-width: 62ch; }
.section--soft .faq details { background: #fff; }
@media (max-width: 920px) { .faq-head { position: static; } }

/* family timeline inside the home teaser */
.split .head + .timeline { margin-top: 28px; }
.split .timeline + .btns { margin-top: 28px; }

/* very small phones (320 px) */
.pillars li, .contact-grid > *, .doors > *, .steps > *, .report__grid > *, .brief__grid > * { min-width: 0; }
.contact-card a { overflow-wrap: anywhere; }
@media (max-width: 380px) { .pillars { grid-template-columns: 1fr; } .contact-card a { font-size: 19px; } .contact-card { padding: 24px; } }

/* the phone menu shows at once: navigation never waits on an animation */
.menu { transition: none; transform: none; }

/* satisfaction: ten segments that fill one by one, the tenth almost full ("more than 9 out of 10") */
.facts .pips, .stats .pips { display: flex; align-items: center; gap: 4px; width: 100%; max-width: 240px; height: 1.1em; }
.stats .pips { height: 1em; }
.pips i { --fill: var(--green); --track: #d5dbea; flex: 1 1 0; min-width: 0; height: clamp(18px, .72em, 30px); border-radius: 5px;
  background: linear-gradient(var(--fill), var(--fill)) no-repeat 0 0 / var(--w, 100%) 100%, var(--track); }
.pips i:last-child { --w: 78%; }
.band .pips i { --fill: #6fe36d; --track: rgba(255, 255, 255, .2); }
@media (prefers-reduced-motion: no-preference) {
  .js .pips[data-fill] i { transition: background-size .5s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + .25s); }
  .js .pips[data-fill]:not(.in) i { background-size: 0% 100%, auto; }
}
@media (max-width: 420px) { .facts .pips, .stats .pips { gap: 2px; } .pips i { border-radius: 3px; } }
@media print { .pips i { background-size: var(--w, 100%) 100%, auto !important; } }

/* home hero, wide version: headline and buttons on top, the whole Avila photo across the page (never cropped), facts under it */
.hero { padding-top: clamp(32px, 4.4vw, 64px); }
.hero__top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px clamp(32px, 5vw, 80px); align-items: end; }
.hero__top h1 { grid-column: 1 / -1; }
.hero__top .lead { max-width: 560px; margin-top: 0; }
.hero__act { justify-self: end; }
.hero__act .btns { margin-top: 0; }
.hero__media { margin-top: clamp(28px, 3.4vw, 48px); }
.hero__media .ph { aspect-ratio: 1571 / 672; }
.float--a { left: 28px; bottom: -30px; }
.float--b { left: 28px; right: auto; top: 24px; }
.hero .facts { margin-top: clamp(52px, 5vw, 68px); padding-top: 0; border-top: 0; }
@media (max-width: 920px) {
  .hero__top { grid-template-columns: 1fr; align-items: start; }
  .hero__act { justify-self: stretch; }
  .hero__act .btns { margin-top: 4px; }
  /* phones and tablets: nothing sits on top of the photo, and it runs edge to edge */
  .hero__media .float { display: none; }
  .hero__media { margin-inline: calc(var(--gut) * -1); }
  .hero__media .ph { aspect-ratio: 1571 / 672; border-radius: 0; box-shadow: none; }
  .hero .facts { margin-top: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  @media (min-width: 921px) { .hero__top > * { animation: up .6s var(--ease) both; } .hero__top > .lead { animation-delay: .05s; } .hero__top > .hero__act { animation-delay: .1s; } }
}
