:root{color-scheme:light;--ink:#122634;--muted:#47606b;--sea:#006d65;--paper:#f3f8f7;--line:#d8e5e3;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #008d83;outline-offset:4px}.skip{position:absolute;left:1rem;top:-4rem}.skip:focus{top:1rem;z-index:5;background:white;padding:1rem}.wrap{width:min(1120px,calc(100% - 40px));margin:auto}header{position:sticky;top:0;z-index:2;background:#f3f8f7ed;backdrop-filter:blur(20px);border-bottom:1px solid var(--line)}.bar{min-height:70px;display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding-block:9px}.brand{display:flex;align-items:center;gap:10px;font-weight:750}.mark{display:grid;place-items:center;background:#d6efeb;color:var(--sea);width:36px;height:36px;border-radius:12px;font-size:24px}.links{display:flex;gap:4px;flex-wrap:wrap;align-items:center}.links a{padding:10px 13px;border-radius:99px;font-size:14px}.links a:hover,.links a[aria-current]{background:#deeeeb}.btn{display:inline-flex;min-height:46px;align-items:center;justify-content:center;padding:10px 18px;border-radius:100px;border:1px solid transparent;background:var(--sea);color:white;font-weight:650;cursor:pointer}.btn.alt{color:var(--ink);background:#fff;border-color:var(--line)}.btn:active{transform:scale(.98)}main{padding:48px 0 64px}.hero{display:grid;grid-template-columns:1.18fr 1fr;min-height:460px;overflow:hidden;border-radius:36px;background:#102c35;color:white}.hero-copy{padding:clamp(28px,5vw,65px);align-self:center}.hero p{color:#c9dfde}.hero .eyebrow{color:#87e4d2}.eyebrow{font-size:12px;font-weight:750;text-transform:uppercase;letter-spacing:.14em;color:var(--sea);margin:0 0 14px}h1,h2,h3{margin:0;line-height:1.06;letter-spacing:-.035em}h1{font-size:clamp(40px,5.4vw,76px);max-width:15ch}h2{font-size:clamp(28px,4vw,46px)}h3{font-size:23px}p,li{line-height:1.6}p{color:var(--muted);max-width:65ch}.hero .actions{margin-top:24px}.actions{display:flex;gap:10px;flex-wrap:wrap}.hero .btn:first-child{background:#a0eddb;color:#123438}.hero .btn.alt{background:transparent;color:white;border-color:#79969b}.section{margin-top:54px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.card,.panel{background:white;border:1px solid var(--line);border-radius:25px;padding:24px}.card .eyebrow{margin-bottom:16px}.card p:last-child,.panel p:last-child{margin-bottom:0}.lead{margin-bottom:26px}.lead p{font-size:18px}.panels{display:grid;gap:15px}.split{display:grid;grid-template-columns:1.25fr .75fr;gap:18px}.note{background:#e3f2ee;border-radius:16px;padding:12px 16px;font-size:14px}.fields{display:grid;gap:14px;margin-top:16px}label{display:grid;gap:5px;font-weight:650}input,textarea,select{width:100%;border:1px solid #a9c2be;border-radius:12px;padding:12px;background:white;color:var(--ink)}textarea{min-height:105px;resize:vertical}[hidden]{display:none!important}footer{border-top:1px solid var(--line);padding:30px 0 40px}footer .bar{align-items:flex-start}footer a{font-size:14px;color:var(--sea);display:inline-block;padding:8px}.fine{font-size:13px}.step{color:var(--sea);font-weight:750;margin:0 0 8px}@media(max-width:780px){.hero,.split{grid-template-columns:1fr}.hero{min-height:auto}.hero-copy{padding:30px}.grid{grid-template-columns:1fr 1fr}.bar{gap:6px}.links{width:100%}.links a{padding:8px 10px}main{padding-top:24px}}@media(max-width:460px){.wrap{width:calc(100% - 28px)}.grid{grid-template-columns:1fr}.card,.panel{padding:20px}.hero{border-radius:24px}h1{font-size:38px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.btn:active{transform:none}}
.preferences{display:flex;align-items:center;gap:8px}.pref{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:7px 12px;border:1px solid var(--line);border-radius:99px;background:var(--surface,#fff);color:var(--ink);font-size:14px;font-weight:650;cursor:pointer;white-space:nowrap}.pref:hover{background:var(--hover,#deeeeb)}.theme-icon{font-size:19px;line-height:1}.pref[aria-pressed=true]{border-color:var(--sea)}.pref:active{transform:scale(.98)}
:root[data-theme=oscuro]{color-scheme:dark;--ink:#edf7f7;--muted:#b0c5cb;--sea:#83dfcd;--paper:#0e181e;--line:#30464d;--surface:#182830;--hover:#233c42}
:root[data-theme=oscuro] header{background:#101d23ec}
:root[data-theme=oscuro] .links a:hover,:root[data-theme=oscuro] .links a[aria-current]{background:var(--hover)}
:root[data-theme=oscuro] .mark,:root[data-theme=oscuro] .note{background:#203b41}
:root[data-theme=oscuro] .card,:root[data-theme=oscuro] .panel,:root[data-theme=oscuro] .btn.alt,:root[data-theme=oscuro] .skip{background:var(--surface)}
:root[data-theme=oscuro] .hero{border:1px solid var(--line)}
:root[data-theme=oscuro] .btn{color:#102e33}
:root[data-theme=oscuro] .btn.alt{color:var(--ink)}
:root[data-theme=oscuro] .hero .btn.alt{background:transparent;color:white}
:root[data-theme=oscuro] input,:root[data-theme=oscuro] textarea,:root[data-theme=oscuro] select{background:#101d24;border-color:#526d74}
@media(max-width:780px){header .links{order:3}header .bar{column-gap:10px}header .preferences{margin-left:auto}}
@media(max-width:560px){header .preferences{margin-left:0}.pref{min-height:40px}.brand{font-size:14px}}
@media(prefers-reduced-motion:reduce){.pref:active{transform:none}}

.site-footer{background:#102933;color:#eaf6f4;padding:45px 0 18px}
.site-footer .footer-grid{display:grid;grid-template-columns:1.1fr .75fr 1fr;gap:32px}
.site-footer .brand{display:inline-flex;color:#eaf6f4;padding:0}
.site-footer .mark{background:#26454d;color:#a2e8d7}
.site-footer h2{font-size:18px;letter-spacing:0;margin-bottom:12px}
.site-footer p,.site-footer .footer-bottom{color:#bfd4d7}
.site-footer .footer-links a,.site-footer .footer-bottom a{color:#e4f2f1}
.site-footer .footer-links a{display:block;width:fit-content;padding:5px 0}
.site-footer a:focus-visible{outline-color:#a2e8d7}
.site-footer .footer-links a:hover,.site-footer .footer-bottom a:hover{text-decoration:underline}
.site-footer .footer-bottom{border-top:1px solid #36545a;margin-top:32px;padding-top:14px;display:flex;justify-content:space-between;align-items:center;gap:8px 20px;flex-wrap:wrap;font-size:13px}
.site-footer .footer-bottom nav{display:flex;flex-wrap:wrap;gap:8px 16px}
.site-footer .footer-bottom a{padding:6px 0}
@media(max-width:700px){.site-footer .footer-grid{grid-template-columns:1fr 1fr;gap:24px}.site-footer .footer-contact{grid-column:1/-1}}
@media(max-width:400px){.site-footer .footer-grid{grid-template-columns:1fr}.site-footer .footer-contact{grid-column:auto}}

.btn {
  transition: transform 220ms ease-out, background-color 220ms ease-out,
    border-color 220ms ease-out, box-shadow 220ms ease-out;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    box-shadow: 0 6px 16px #0003;
  }

  :root .hero .btn:first-child:hover {
    background-color: #c3f8eb;
  }

  :root .hero .btn.alt:hover {
    background-color: #23434b;
    border-color: #a0eddb;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover:not(:active) {
    transform: translateY(-3px);
  }
}

.hero {
  position: relative;
  isolation: isolate;
}

.hero-wallpaper {
  position: absolute;
  inset: -76px 0 0;
  z-index: -2;
  background: #102c35 url("fondo-biomedico.jpg") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #071a23 0%, #071a23ee 29%, #071a2380 62%, #071a2326 100%);
}

@media (max-width: 780px) {
  .hero {
    min-height: 440px;
    align-items: end;
  }

  .hero-wallpaper {
    background-position: 85% center;
  }

  .hero::before {
    background: linear-gradient(0deg, #071a23 0%, #071a23e8 43%, #071a2340 100%);
  }
}
.home-main {
  position: relative;
  isolation: isolate;
}

.home-intro {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 120px);
  padding-bottom: 24px;
}

.home-intro + .section {
  margin-top: 32px;
}


@media (min-width: 1360px) {
  .home-main::before,
  .home-main::after {
    content: "";
    position: absolute;
    top: 20px;
    width: min(300px, calc((100vw - 1200px) / 2));
    height: min(760px, 92%);
    z-index: -1;
    pointer-events: none;
    background: url("pulso-lateral.svg") center / 100% auto no-repeat;
    mask-image: radial-gradient(ellipse, #000 20%, transparent 72%);
    opacity: .56;
  }

  .home-main::before { right: calc(100% + 14px); }
  .home-main::after { left: calc(100% + 14px); }
  :root[data-theme=oscuro] .home-main::before,
  :root[data-theme=oscuro] .home-main::after { opacity: .82; }
}

@media (min-width: 1360px) and (prefers-reduced-motion: no-preference) {

  .home-main::before,
  .home-main::after { animation: drift-pulse 9s ease-in-out infinite alternate; }
  .home-main::after { animation-delay: -4s; }
}

@keyframes drift-pulse {
  from { transform: translateY(-9px); filter: saturate(.8); }
  to { transform: translateY(18px); filter: saturate(1.6) brightness(1.2); }
}

.tilt-card {
  display: grid;
  perspective: 1000px;
}

.brand-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 96px;
  height: 48px;
  padding: 0;
  background: transparent;
}

.brand-symbol img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 3px #ffffff65);
}

.brand-name {
  display: block;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .025em;
  color: var(--ink);
}

.brand-name small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .15em;
  font-weight: 650;
}

/* Display lettering pairs a technical character with readable body text. */
:root {
  font-family: "Aptos", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

body {
  font-size: 17px;
}

h1, h2, h3 {
  font-family: "Bahnschrift", "Aptos Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  line-height: 1.04;
  letter-spacing: -.04em;
}

h2 {
  line-height: 1.12;
  letter-spacing: -.025em;
}

h3 {
  font-size: clamp(22px, 2vw, 25px);
  line-height: 1.2;
  letter-spacing: -.015em;
}

p, li {
  line-height: 1.65;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 750;
}

.btn {
  font-size: 15px;
  letter-spacing: -.01em;
}

.fields {
  font-size: 16px;
}

.phone-links .phone-whatsapp {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  letter-spacing: .01em;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.phone-links {
  gap: 10px;
}

.phone-whatsapp-icon {
  flex: 0 0 auto;
  color: var(--sea);
}

.phone-links .phone-whatsapp:hover {
  border-color: var(--sea);
  background: var(--hover, #deeeeb);
}

.site-footer .phone-whatsapp-icon {
  color: #a0edcc;
}

.site-footer .phone-links .phone-whatsapp {
  border-color: #36545a;
  padding: 8px 12px;
  font-size: clamp(16px, 1.6vw, 19px);
}

.site-footer .phone-whatsapp:hover {
  background: #203e48;
  border-color: #a0edcc;
}

.site-footer .brand-name {
  color: #eaf6f4;
}

.phone-links {
  display: grid;
  gap: 2px;
  margin-bottom: 18px;
}

.phone-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.site-footer .phone-links a {
  color: #eaf6f4;
  padding: 4px 0;
}

.contact-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 24px;
}

.brand-presentation {
  margin: 32px 0 0;
  padding: clamp(24px, 4vw, 48px);
  background: var(--surface, #fff);
  border: 1px solid var(--line);
  border-radius: 24px;
  text-align: center;
}

.brand-presentation .presentation-symbol {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 0 4px #ffffff50);
}

.presentation-name {
  color: var(--ink);
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1;
  letter-spacing: .035em;
}

.presentation-name span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .37em;
  letter-spacing: .22em;
}

.presentation-tagline {
  margin: 24px auto 32px;
  padding-top: 20px;
  border-top: 2px solid var(--sea);
  font-size: clamp(17px, 2.3vw, 24px);
  color: var(--ink);
}

.presentation-services {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.presentation-services li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--ink);
}

.presentation-services svg {
  width: 42px;
  height: 42px;
  color: var(--sea);
}

@media (max-width: 700px) {
  .presentation-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .presentation-services li:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .services-grid > .tilt-card {
    grid-column: span 2;
  }

  .services-grid > .tilt-card:nth-child(4) { grid-column: 2 / span 2; }
  .services-grid > .tilt-card:nth-child(5) { grid-column: 4 / span 2; }
}

@media (max-width: 460px) {
  .brand-symbol { width: 82px; height: 42px; }
  .brand-name { font-size: 18px; }
}

.contact-main {
  padding-block: clamp(24px, 4vw, 40px) 48px;
}

.contact-main .lead {
  margin-bottom: 22px;
}

.contact-main .lead h1 {
  max-width: none;
  font-size: clamp(32px, 4.5vw, 54px);
}

.contact-main .lead .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
}

.contact-main .lead p:not(.eyebrow) {
  margin: 10px 0 0;
  font-size: 16px;
}

.contact-main .split {
  align-items: start;
}

.contact-main .panel {
  min-width: 0;
  padding: clamp(16px, 2.5vw, 24px);
}

.contact-main h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.contact-main .note {
  max-width: none;
  margin-block: 10px 0;
  padding: 9px 12px;
}

.contact-main .fields {
  gap: 12px;
  margin-top: 12px;
}

.contact-main .fields :is(input, select, textarea) {
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  font-weight: 400;
}

.contact-main .fields textarea {
  min-height: 88px;
}

.contact-main .btn:disabled {
  opacity: .68;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-main .fields textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

@media (min-width: 600px) {
  .contact-main .fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-main .fields > :nth-child(n + 3) {
    grid-column: 1 / -1;
  }
}

@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tilt-card > .card {
    transform: rotateX(0deg) rotateY(0deg) scale(1);
    transition: transform 440ms cubic-bezier(.22, 1, .36, 1);
  }

  .tilt-card.is-tilting > .card {
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1.03);
    transition-duration: 120ms;
  }
}

/* WhatsApp request composer and office location */
.whatsapp-send { border-top: 1px solid var(--line); padding-top: 16px; }
.whatsapp-send > p { margin: 0 0 12px; font-size: .9rem; font-weight: 650; color: var(--ink); }
.whatsapp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.whatsapp-actions .btn { gap: 9px; flex: 1 1 230px; font-size: .95rem; }
.whatsapp-actions svg { flex-shrink: 0; width: 22px; height: 22px; }
.office-location address { font-style: normal; line-height: 1.6; margin: 12px 0; color: var(--muted); }
.office-map { display: inline-flex; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--sea); font-weight: 650; }
.office-map:hover { background: var(--paper); }
#request-status:empty { display: none; }
#request-status { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* High-contrast WhatsApp identity in both themes. */
.whatsapp-badge { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; background: #e4f8ec; color: #087c42; }
.whatsapp-badge .phone-whatsapp-icon { display: block; width: 23px; height: 23px; color: #087c42; }
.phone-links .phone-whatsapp { align-items: center; padding: 10px 12px 10px 16px; gap: 12px; }
.contact-main aside .phone-links { display: grid; gap: 12px; margin-top: 16px; }
.contact-main aside .phone-whatsapp { width: 100%; border-radius: 16px; background: var(--paper); }
.whatsapp-actions .btn { justify-content: flex-start; gap: 12px; min-height: 72px; padding: 12px 16px; border-radius: 18px; background: #d4f5e5; color: #12392b; border: 1px solid #91d8b2; box-shadow: 0 4px 12px #0000000a; }
.whatsapp-actions .whatsapp-badge { flex-basis: 40px; width: 40px; height: 40px; background: #087c42; }
.whatsapp-actions .whatsapp-badge .phone-whatsapp-icon { color: #ffffff; width: 25px; height: 25px; }
.whatsapp-button-copy { display: grid; gap: 3px; text-align: left; }
.whatsapp-button-copy small { font-size: .8rem; line-height: 1.3; font-weight: 500; }
.whatsapp-button-copy strong { font-size: 1rem; line-height: 1.3; font-weight: 750; white-space: nowrap; }
.whatsapp-actions .btn:hover { background: #bdebd3; border-color: #087c42; box-shadow: 0 6px 18px #087c421a; }
@media (max-width: 420px) { .whatsapp-actions .btn { flex-basis: 100%; } }
/* Footer: framed navigation, translucent contact surfaces and stronger brand copy. */
.site-footer { background: radial-gradient(ellipse at 8% 0%, #1b4a5266, transparent 60%), #102933; padding-top: 42px; }
.site-footer .footer-grid { grid-template-columns: 1.05fr .85fr 1.1fr; align-items: start; gap: 28px; }
.site-footer h2 { font-size: 21px; font-weight: 750; margin-bottom: 16px; }
.site-footer .fine { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.45; font-weight: 650; color: #e5f5f2; max-width: 26ch; margin: 18px 0 0; padding-left: 16px; border-left: 3px solid #83ddc7; letter-spacing: -.015em; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 9px; }
.site-footer .footer-links h2 { flex-basis: 100%; margin-bottom: 7px; }
.site-footer .footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid #678b9166; border-radius: 12px; background: #e0fff008; color: #eaf6f4; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease; }
.site-footer .footer-contact { padding: 22px; border: 1px solid #678b9166; border-radius: 22px; background: linear-gradient(135deg, #b8ffe810, #b8ffe804); }
.site-footer .footer-contact > p { font-size: 17px; line-height: 1.5; margin: 0 0 18px; }
.site-footer .phone-links { display: grid; gap: 10px; }
.site-footer .phone-links .phone-whatsapp { width: 100%; min-height: 58px; padding: 10px 14px; border-radius: 14px; background: #a0edcc0d; border-color: #80cbb570; font-size: clamp(16px, 1.5vw, 19px); }
.site-footer .footer-bottom a { border: 1px solid #678b914d; border-radius: 10px; padding: 8px 12px; background: #ffffff05; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
 .site-footer .footer-links a:hover, .site-footer .phone-links .phone-whatsapp:hover { background: #a0edcc1c; border-color: #92dfc7; transform: translateY(-2px); text-decoration: none; }
}
@media (max-width: 900px) { .site-footer .footer-grid { grid-template-columns: 1fr 1fr; } .site-footer .footer-contact { grid-column: 1 / -1; } .site-footer .footer-contact .phone-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; } .site-footer .footer-contact { grid-column: auto; padding: 18px; } .site-footer .footer-contact .phone-links { grid-template-columns: 1fr; } .site-footer .fine { max-width: 30ch; } }

.office-map-preview { margin: 16px 0 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.office-map-preview iframe { display: block; width: 100%; height: 250px; border: 0; color-scheme: light; }
.office-location address { overflow-wrap: anywhere; }
.office-location .office-map { font-size: 15px; line-height: 1.4; }

.legal-main .lead h1 { max-width: 22ch; font-size: clamp(34px, 4.5vw, 58px); }
.legal-main .legal-date { font-size: 14px; color: var(--muted); }
.legal-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.legal-index a { padding: 9px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--sea); font-size: 14px; background: var(--paper); }
.legal-index a:hover { border-color: var(--sea); }
.legal-clause { scroll-margin-top: 160px; }
.legal-main .panel h2 { font-size: clamp(21px, 2.4vw, 28px); letter-spacing: -.02em; line-height: 1.2; }
.legal-main .panel p { max-width: 85ch; font-size: 17px; line-height: 1.75; }
.legal-resources a { color: var(--sea); text-decoration: underline; text-underline-offset: 3px; }
/* Balanced mobile header: centered brand, controls and navigation. */
@media (max-width: 780px) {
 header .bar { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding-block: 14px; }
 header .brand { justify-content: center; justify-self: center; min-width: 0; }
 header .preferences { order: 2; margin: 0; width: 100%; justify-content: center; flex-wrap: wrap; gap: 10px; }
 header .links { order: 3; width: 100%; justify-content: center; gap: 6px; margin: 0; }
 header .links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; text-align: center; }
 header .pref { min-height: 44px; }
}
@media (max-width: 360px) {
 header .links { gap: 4px; }
 header .links a { padding-inline: 9px; }
}

/* Site-wide editorial layout: shared type, rhythm and surface treatment. */
:root { font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; --section-space: clamp(48px, 7vw, 88px); }
body { font-size: 16px; line-height: 1.65; }
main { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 8vw, 96px); }
h1, h2, h3 { font-family: inherit; font-weight: 750; text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.16; letter-spacing: -.03em; }
h3 { font-size: clamp(21px, 2vw, 25px); line-height: 1.25; letter-spacing: -.02em; }
p { margin-block: 16px 0; text-wrap: pretty; }
p, li { line-height: 1.75; overflow-wrap: break-word; }
.eyebrow { margin: 0 0 14px; font-size: 13px; line-height: 1.4; letter-spacing: .11em; }
.lead { max-width: 840px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.lead h1 { max-width: 22ch; margin-inline: auto; }
.lead > p:not(.eyebrow) { max-width: 62ch; margin: 20px auto 0; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; }
.section { margin-top: var(--section-space); }
.grid { gap: 22px; margin-top: 28px; align-items: stretch; }
.card, .panel { min-width: 0; padding: clamp(24px, 3vw, 34px); border-radius: 24px; box-shadow: 0 8px 28px #082c3510; }
.card { height: 100%; }
.card p { font-size: 16px; line-height: 1.75; }
.card h3 { max-width: 23ch; }
.card .eyebrow { margin-bottom: 12px; }
.panels { gap: 22px; }
.panel > p { max-width: 72ch; }
.panel > .btn { margin-top: 24px; }
.btn { min-height: 48px; padding: 12px 22px; font-size: 16px; line-height: 1.4; text-align: center; }
.hero { min-height: 500px; grid-template-columns: 1.15fr .85fr; }
.hero-copy { padding: clamp(28px, 5vw, 64px); max-width: 700px; }
.hero h1 { max-width: 12ch; font-size: clamp(38px, 5vw, 68px); }
.hero-copy > p:not(.eyebrow) { max-width: 47ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.75; margin-top: 22px; }
.hero .actions { margin-top: 30px; gap: 12px; }
.home-intro + .section > .eyebrow, .home-intro + .section > h2 { text-align: center; margin-inline: auto; }
.home-intro + .section > h2 { max-width: 26ch; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; border-top: 2px solid var(--sea); }
.service-icon { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--sea); margin-bottom: 24px; }
.service-icon svg { display: block; width: 29px; height: 29px; }
.service-card h3 { min-height: 2.5em; }
.service-card p:last-child { margin-top: 16px; }
.feature-cta, .project-intro { text-align: center; padding: clamp(28px, 5vw, 52px); background: linear-gradient(135deg, transparent, #36b59e0c), var(--surface, #fff); }
.feature-cta > h2, .feature-cta > p, .project-intro > p { margin-inline: auto; }
.feature-cta > h2 { max-width: 25ch; }
.page-nosotros main > .panel { max-width: 900px; margin-inline: auto; }
.brand-presentation { margin-top: var(--section-space); }
.presentation-services li { padding: 20px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.presentation-services { gap: 12px; }
.presentation-services span { text-wrap: balance; }
.page-valores .card { border-top: 2px solid var(--sea); }
.contact-main { padding-top: clamp(30px, 4vw, 48px); }
.contact-main .lead { margin-bottom: 32px; }
.contact-main .lead h1 { font-size: clamp(34px, 4.5vw, 54px); }
.contact-main .split { grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 24px; }
.contact-main .panel { padding: clamp(22px, 2.5vw, 30px); }
.contact-main h2 { font-size: clamp(25px, 2.7vw, 32px); }
.contact-main h3 { font-size: 23px; }
.contact-main .note { margin-top: 16px; padding: 13px 15px; font-size: 14px; line-height: 1.65; }
.contact-main .fields { gap: 18px 16px; margin-top: 22px; }
.fields label { font-size: 15px; line-height: 1.5; gap: 8px; }
.contact-main .fields :is(input, select, textarea) { padding: 12px 13px; min-height: 48px; font-size: 16px; }
.contact-main .fields textarea { min-height: 128px; line-height: 1.65; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.whatsapp-send { padding-top: 20px; }
.whatsapp-send > p { font-size: 15px; }
.office-location address { font-size: 16px; line-height: 1.8; }
.contact-main aside ul { padding-left: 22px; margin-block: 18px 24px; }
.contact-main aside li + li { margin-top: 6px; }
.legal-main { max-width: 1000px; }
.legal-main .lead { max-width: 800px; }
.legal-main .panel { padding: clamp(24px, 4vw, 42px); }
.legal-main .panel p { max-width: none; font-size: 16px; line-height: 1.85; }
.legal-index { justify-content: center; gap: 9px; margin-bottom: 32px; }
.legal-index a { font-size: 14px; line-height: 1.5; }
.page-privacidad .panels { max-width: 900px; margin-inline: auto; }
.site-footer .footer-grid { gap: clamp(24px, 4vw, 44px); }
.site-footer .footer-links a { font-size: 15px; }
.site-footer .footer-bottom { font-size: 14px; line-height: 1.6; gap: 16px; }
@media (min-width: 1000px) {
 .legal-clause p { text-align: left; hyphens: none; }
 .services-grid { grid-auto-rows: 1fr; }
}
@media (min-width: 781px) and (max-width: 999px) {
 .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .services-grid > :last-child { grid-column: 1 / -1; width: calc(50% - 11px); justify-self: center; }
}
@media (max-width: 780px) {
 header .bar { gap: 10px; padding-block: 12px; }
 header .links a { font-size: 14px; padding: 8px 10px; }
 .hero { grid-template-columns: 1fr; min-height: 500px; }
 .hero-copy { max-width: 650px; width: 100%; padding: clamp(26px, 6vw, 40px); }
 .hero::before { background: linear-gradient(0deg, #071a23 0%, #071a23ed 52%, #071a2360 100%); }
 .home-intro { min-height: calc(100svh - 210px); padding-bottom: 28px; }
 .hero .actions { gap: 12px; }
 .contact-main .split { grid-template-columns: 1fr; }
 .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
 .page-valores .grid > :last-child, .page-proyectos .grid > :last-child { grid-column: 1 / -1; }
 .service-card h3 { min-height: 0; }
 .presentation-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
 .wrap { width: calc(100% - 32px); }
 main { padding-top: 28px; }
 .lead { margin-bottom: 28px; }
 .lead h1 { max-width: 18ch; }
 .lead > p:not(.eyebrow) { margin-top: 16px; }
 .grid { grid-template-columns: 1fr; gap: 18px; }
 .card, .panel { padding: 24px; border-radius: 22px; }
 .card h3 { max-width: none; }
 .hero { border-radius: 26px; min-height: 520px; }
 .hero h1 { font-size: clamp(36px, 9vw, 46px); }
 .hero-copy > p:not(.eyebrow) { font-size: 16px; }
 .hero .actions { display: grid; grid-template-columns: 1fr; }
 .hero .btn { width: 100%; min-height: 50px; }
 .home-intro { min-height: calc(100svh - 215px); }
 .service-icon { margin-bottom: 20px; }
 .service-card h3 { font-size: 24px; }
 .feature-cta { padding: 30px 24px; }
 .contact-main .fields { grid-template-columns: 1fr; }
 .contact-main .fields > * { grid-column: 1; }
 .contact-main .whatsapp-actions { display: grid; grid-template-columns: 1fr; }
 .contact-main .whatsapp-actions .btn { width: 100%; }
 .brand-presentation { padding: 28px 18px; }
 .presentation-name { font-size: clamp(32px, 10vw, 48px); }
 .presentation-name span { letter-spacing: .16em; }
 .presentation-services li { padding: 18px 10px; font-size: 15px; }
 .site-footer .footer-grid { grid-template-columns: 1fr; }
 .site-footer .footer-contact { grid-column: auto; }
 .site-footer .footer-contact .phone-links { grid-template-columns: 1fr; }
 .site-footer .footer-bottom { justify-content: center; text-align: center; }
 .site-footer .footer-bottom nav { justify-content: center; }
 .legal-index { justify-content: flex-start; }
 .legal-main .panel p { text-align: left; hyphens: none; }
}
/* Refined surfaces and controls, informed by the Stitch reference. */
:root { --surface: #ffffff; --line: #d6e3e5; --panel-shadow: 0 3px 6px #102e3804, 0 18px 44px #102e3809; }
:root[data-theme=oscuro] { --surface: #16282f; --line: #344b53; --panel-shadow: 0 2px 4px #0000000d, 0 18px 44px #0000001f; }
.card, .panel, .brand-presentation { background-color: var(--surface); box-shadow: var(--panel-shadow); border-color: var(--line); }
.service-card { border-top-width: 1px; background: linear-gradient(145deg, #63d9c30a, transparent 48%), var(--surface); }
.service-icon { border-color: var(--line); border-radius: 16px; background: linear-gradient(135deg, #63d9c31a, #63d9c306); }
header .pref { background: var(--surface); border-color: var(--line); }
header .links a { font-weight: 600; transition: background-color 180ms ease, box-shadow 180ms ease; }
header .links a[aria-current] { box-shadow: inset 0 0 0 1px var(--line); }
.btn { border-radius: 16px; font-weight: 700; }
.hero .btn { border-radius: 99px; }
.btn.alt { background: var(--surface); color: var(--ink); border-color: var(--line); }
.contact-main .fields :is(input, select, textarea) { border-color: var(--line); border-radius: 14px; background: var(--paper); transition: border-color 180ms ease, box-shadow 180ms ease; }
.contact-main .fields :is(input, select, textarea):focus { border-color: var(--sea); box-shadow: 0 0 0 3px #55cbb418; }
.note { border: 1px solid var(--line); }
.legal-index a { background: var(--surface); }
@media (hover: hover) {
 .service-card:hover { border-color: var(--sea); box-shadow: 0 12px 35px #16877516; }
 .btn.alt:hover { border-color: var(--sea); }
}

/* Persistent biomedical side artwork, safely outside the reading column. */
body { position: relative; isolation: isolate; }
.ambient-biomedical { display: none; }
.home-main::before, .home-main::after { display: none; }
@media (min-width: 1360px) {
 .ambient-biomedical { display: block; position: fixed; inset: 95px 0 20px; z-index: -1; pointer-events: none; overflow: hidden; color: #007b80; }
 .ambient-rail { position: absolute; top: 0; bottom: 0; width: min(250px, calc((100vw - 1200px) / 2)); opacity: .32; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
 .ambient-left { right: calc(50% + 590px); }
 .ambient-right { left: calc(50% + 590px); }
 .ambient-rail svg { display: block; width: 100%; height: 100%; }
 :root[data-theme=oscuro] .ambient-biomedical { color: #57ddcc; }
 :root[data-theme=oscuro] .ambient-rail { opacity: .28; }
 .ambient-flow { stroke-dasharray: 16 280; stroke-width: 2.5; }
 .ambient-node { transform-box: fill-box; transform-origin: center; }
 .ambient-rotor { transform-box: fill-box; transform-origin: center; }
 .ambient-orbits { transform-box: fill-box; transform-origin: center; }
}
@media (min-width: 1360px) and (prefers-reduced-motion: no-preference) {
 .ambient-flow { animation: ambient-signal 14s linear infinite; }
 .ambient-right .ambient-flow { animation-direction: reverse; animation-duration: 18s; }
 .ambient-node { animation: ambient-breathe 5s ease-in-out infinite alternate; }
 .ambient-rotor { animation: ambient-rotation 75s linear infinite; }
 .ambient-orbits { animation: ambient-float 11s ease-in-out infinite alternate; }
}
@keyframes ambient-signal { to { stroke-dashoffset: -592; } }
@keyframes ambient-breathe { from { opacity: .3; } to { opacity: 1; } }
@keyframes ambient-rotation { to { transform: rotate(360deg); } }
@keyframes ambient-float { from { transform: translateY(-9px) rotate(-5deg); } to { transform: translateY(9px) rotate(5deg); } }

/* Homepage ECG: continuous horizontal signal and gentle monitor glow. */
.page-index .cardiac-track { opacity: .4; }
.page-index .cardiac-run { stroke-dasharray: 40 200; stroke-dashoffset: 40; }
.page-index .cardiac-sweep { opacity: 0; }
@media (min-width: 1360px) {
 .page-index .ambient-rail { opacity: .5; }
 :root[data-theme=oscuro] .page-index .ambient-rail { opacity: .55; }
}
@media (min-width: 1360px) and (prefers-reduced-motion: no-preference) {
 .page-index .cardiac-run { animation: cardiac-travel 4.8s linear infinite, cardiac-glow 3s ease-in-out infinite; filter: drop-shadow(0 0 4px currentColor); }
 .page-index .cardiac-sweep { opacity: 1; animation: cardiac-scan 4.8s linear infinite; }
 .page-index .ambient-right .cardiac-run { animation-delay: -2.4s, -1.5s; }
 .page-index .ambient-right .cardiac-sweep { animation-delay: -2.4s; }
}
@keyframes cardiac-travel { from { stroke-dashoffset: 40; } to { stroke-dashoffset: -200; } }
@keyframes cardiac-glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes cardiac-scan { from { transform: translateX(0); } to { transform: translateX(280px); } }
@media (prefers-reduced-motion: reduce) { .page-index .cardiac-run { stroke-dasharray: none; opacity: .5; } }
/* Interior motion: readable signal travel, rotating mechanics and living icons. */
@media (min-width: 1360px) {
 body:not(.page-index) .ambient-rail { opacity: .45; }
 :root[data-theme=oscuro] body:not(.page-index) .ambient-rail { opacity: .42; }
 body:not(.page-index) .ambient-flow { stroke-dasharray: 45 130; stroke-width: 3; }
}
@media (min-width: 1360px) and (prefers-reduced-motion: no-preference) {
 body:not(.page-index) .ambient-flow { animation: interior-signal 6s linear infinite; filter: drop-shadow(0 0 3px currentColor); }
 body:not(.page-index) .ambient-right .ambient-flow { animation-duration: 7.5s; animation-direction: reverse; }
 body:not(.page-index) .ambient-rotor { animation: ambient-rotation 22s linear infinite; }
 body:not(.page-index) .ambient-node { animation: interior-node 3.8s ease-in-out infinite; }
 body:not(.page-index) .ambient-orbits { animation: interior-orbit 12s ease-in-out infinite alternate; }
 body:not(.page-index) .ambient-traces circle { animation: interior-node 4.8s ease-in-out infinite; }
 body:not(.page-index) .ambient-traces circle:nth-of-type(even) { animation-delay: -2.4s; }
}
@media (prefers-reduced-motion: no-preference) {
 .service-icon > svg, .presentation-services li > svg { animation: service-idle 6s ease-in-out infinite; }
 .tilt-card:nth-child(2n) .service-icon > svg { animation-delay: -2s; }
 .tilt-card:nth-child(3n) .service-icon > svg { animation-delay: -4s; }
 .presentation-services li:nth-child(2n) > svg { animation-delay: -3s; }
 .service-icon { transition: background-color 260ms ease, border-color 260ms ease, box-shadow 260ms ease; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
 .service-card:hover .service-icon { background: #55cbb425; border-color: var(--sea); box-shadow: 0 0 22px #55cbb424; }
 .presentation-services li { transition: border-color 240ms ease, box-shadow 240ms ease; }
 .presentation-services li:hover { border-color: var(--sea); box-shadow: 0 6px 20px #55cbb41a; }
}
@keyframes interior-signal { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -350; } }
@keyframes interior-node { 0%, 100% { opacity: .4; } 50% { opacity: 1; filter: drop-shadow(0 0 4px currentColor); } }
@keyframes interior-orbit { from { transform: translateY(-8px) rotate(-15deg); } to { transform: translateY(8px) rotate(15deg); } }
@keyframes service-idle { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(4deg); } }

/* Touch-screen animation has its own layout; it does not rely on hover or side gutters. */
.mobile-biomedical-band { display: none; }
@media (max-width: 1359px) {
 .mobile-biomedical-band { display: block; width: 100%; height: 58px; margin: 0 auto 22px; overflow: hidden; pointer-events: none; color: var(--sea); contain: paint; }
 .mobile-biomedical-band svg { display: block; width: 100%; height: 100%; }
 .mobile-signal-base { opacity: .23; }
 .mobile-signal-run { stroke-dasharray: 115 685; stroke-dashoffset: 115; opacity: .9; }
 .mobile-signal-nodes { opacity: .65; }
 .home-intro + .mobile-biomedical-band { margin-top: 12px; margin-bottom: 0; }
 .home-main > .mobile-biomedical-band + .section { margin-top: 24px; }
 .service-card { position: relative; }
}
@media (max-width: 780px) {
 .mobile-biomedical-band { height: 46px; margin-bottom: 18px; }
 .mobile-biomedical-band svg { width: 175%; max-width: none; margin-left: -37.5%; }
 .home-main { padding-top: 12px; }
}
@media (max-width: 1359px) and (prefers-reduced-motion: no-preference) {
 .mobile-signal-run { animation: mobile-signal-travel 5s linear infinite; }
 .mobile-signal-nodes { animation: mobile-node-glow 3.6s ease-in-out infinite; }
 .service-icon { animation: mobile-icon-light 5s ease-in-out infinite; }
 .tilt-card:nth-child(even) .service-icon { animation-delay: -2.5s; }
}
@keyframes mobile-signal-travel { from { stroke-dashoffset: 115; } to { stroke-dashoffset: -685; } }
@keyframes mobile-node-glow { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes mobile-icon-light { 0%, 100% { box-shadow: 0 0 0 #55cbb400; } 50% { box-shadow: 0 0 18px #55cbb429; border-color: var(--sea); } }
@media (prefers-reduced-motion: reduce) { .mobile-signal-run { stroke-dasharray: none; opacity: .45; } }
/* Consistent paragraph alignment and compact title spacing inside content cards. */
.card > p:not(.eyebrow), .panel > p:not(.eyebrow):not(.note):not(.legal-date) {
 text-align: left;
 text-align-last: left;
 text-justify: auto;
 hyphens: none;
 -webkit-hyphens: none;
 overflow-wrap: break-word;
 text-wrap: wrap;
}
.service-card h3 { min-height: 0; margin-bottom: 0; }
.service-card > p:last-child { margin-top: 20px; }
.service-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 54px auto auto 1fr; align-content: start; align-items: start; row-gap: 0; }
.service-card .service-icon { margin: 0 0 22px; }
.service-card .eyebrow { margin-top: 22px; margin-bottom: 12px; }
.service-card > p:last-child { align-self: start; }
.feature-cta > p, .project-intro > p { text-align: center; text-align-last: center; }
.contact-main .panel > .note { text-align: left; }
@media (min-width: 781px) {
 .service-card { grid-template-rows: 54px auto minmax(62px, auto) 1fr; }
 .service-card > p:last-child { margin-top: 14px; }
}

/* Keep words whole: no automatic or discretionary hyphenation. */
main :is(p, li, h1, h2, h3, label) { hyphens: none; -webkit-hyphens: none; word-break: normal; }
.card > p:not(.eyebrow), .panel > p:not(.eyebrow):not(.note):not(.legal-date) { hyphens: none; -webkit-hyphens: none; word-spacing: normal; letter-spacing: normal; }

/* Scroll performance: no animated blur/shadow paints, no offscreen icon work. */
.motion-paused, .motion-paused * { animation-play-state: paused !important; }
@keyframes interior-node { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes mobile-icon-light { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.page-index .cardiac-run, body:not(.page-index) .ambient-flow { filter: none; }
@media (max-width: 999px), (pointer: coarse) {
 header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
 .hero-wallpaper { transform: none; }
}

/* Natural spacing in narrow cards: complete words and compact content flow. */
.card > p:not(.eyebrow), .panel > p:not(.eyebrow):not(.note):not(.legal-date) {
 text-align: left;
 text-align-last: auto;
 word-spacing: normal;
 letter-spacing: normal;
 hyphens: none;
 -webkit-hyphens: none;
 text-wrap: pretty;
}
.service-card { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; }
.service-card .service-icon { margin: 0 0 22px; }
.service-card .eyebrow { margin: 0 0 14px; }
.service-card h3 { min-height: 0; margin: 0; }
.service-card > p:last-child { margin-top: 20px; line-height: 1.7; }
.feature-cta > p, .project-intro > p { text-align: center; text-align-last: auto; }
@media (min-width: 1000px) { .services-grid { grid-auto-rows: auto; } }
