/* ==========================================================================
   Medical Sterling S.A. — landing page
   Paleta tomada del logo: azul marino profundo → azul quirúrgico → turquesa.
   ========================================================================== */

:root {
  --navy-950: #04111f;
  --navy-900: #071a2e;
  --navy-800: #0b2540;
  --navy-700: #0f3355;
  --blue-600: #0b5c95;
  --teal-600: #086a94;
  --teal-500: #0b8db5;
  --cyan-400: #17c3d6;
  --cyan-300: #6fe3ef;
  --ice-50: #f4f8fb;
  --ice-100: #e8f1f6;
  --ice-200: #d7e7f0;
  --white: #ffffff;

  --ink: #0b1f33;
  --muted: #4a6075;
  --line: rgba(11, 37, 64, 0.1);
  --line-strong: rgba(11, 37, 64, 0.18);
  --wa: #25d366;
  --wa-ink: #04220f;

  --grad-brand: linear-gradient(100deg, #0b4f86 0%, #0a7aa6 42%, #0b8db5 68%, #0b5c95 100%);
  --grad-deep: linear-gradient(135deg, #04111f 0%, #0b2540 45%, #0a4f7a 100%);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --radius: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-sm: 0 1px 2px rgba(7, 26, 46, 0.06), 0 4px 14px -6px rgba(7, 26, 46, 0.12);
  --shadow-lg: 0 2px 6px rgba(7, 26, 46, 0.05), 0 28px 60px -24px rgba(7, 26, 46, 0.32);

  interpolate-size: allow-keywords;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ice-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.menu-open { overflow: hidden; overscroll-behavior: none; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--navy-900); font-weight: 600; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
figure { margin: 0; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }
.location-card :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }
main:focus { outline: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
.show-sm { display: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); top: -60px; z-index: 100;
  padding: .7rem 1rem; border-radius: 12px; background: var(--navy-900); color: #fff; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  margin: 0 0 1.1rem;
  font: 600 .76rem/1.3 var(--font-body);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
}
.eyebrow-light { color: var(--cyan-300); }

.h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.022em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}
.h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -.015em; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }

.grad-text,
.grad-text-light {
  background: var(--grad-brand);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shine 7s ease-in-out infinite alternate;
}
.grad-text-light { background-image: linear-gradient(100deg, #6fe3ef 0%, #17c3d6 35%, #8fd8ff 65%, #6fe3ef 100%); }
@keyframes shine { to { background-position: 100% center; } }

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .82rem 1.35rem;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 .96rem/1.2 var(--font-body);
  white-space: nowrap;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .3s, border-color .3s, color .3s;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(.98); transition-duration: .08s; }
.filter:active:not(.is-active) { color: var(--blue-600); }
.p-link:active { opacity: .7; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::after { transform: translateX(120%); }
}
.btn-lg { padding: 1rem 1.65rem; font-size: 1.02rem; }

.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 12px 26px -12px rgba(37, 211, 102, .8); }
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { box-shadow: 0 18px 34px -14px rgba(37, 211, 102, .9); }
}
.btn-primary { background: var(--navy-900); color: #fff; box-shadow: 0 12px 26px -14px rgba(7, 26, 46, .7); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-600); }
}
.btn-ghost { background: rgba(255, 255, 255, .7); border-color: var(--line-strong); color: var(--navy-900); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover { border-color: var(--teal-500); color: var(--blue-600); }
}
.btn-ghost .icon { transition: transform .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover .icon { transform: translateX(3px); }
}
.btn-outline-light { border-color: rgba(255, 255, 255, .38); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
}

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  transition: background-color .35s, box-shadow .35s, height .35s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(7, 26, 46, .25);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, .78); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; flex: none; position: relative; z-index: 2; }
.brand img { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  position: relative; display: block; padding: .5rem .8rem;
  font-weight: 500; font-size: .95rem; color: var(--navy-800);
  border-radius: 999px; transition: color .25s;
}
.nav-list a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav-list a.is-active { color: var(--blue-600); }
.nav-list a.is-active::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav-list a:hover { color: var(--blue-600); }
  .nav-list a:hover::after { transform: scaleX(1); }
}

.menu-toggle {
  display: none; position: relative; z-index: 2;
  width: 48px; height: 48px; border: 0; border-radius: 12px;
  background: transparent; transition: background-color .15s;
}
.menu-toggle:active { background: var(--ice-100); }
.nav-contact,
.nav-scrim { display: none; }
.menu-bars { position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; }
.menu-bars span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy-900); transition: transform .35s var(--ease-out); }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- fondo de página: el de la portada, fijo y animado detrás de las secciones claras ---------- */
.page-bg {
  position: fixed; inset: 0 0 auto; height: 100vh; height: 100lvh;
  z-index: -1; overflow: hidden; pointer-events: none;
  background: var(--ice-50); --sp: 0;
}
.page-grid {
  position: absolute; inset: 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 62% 42%, #000 22%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 62% 42%, #000 22%, transparent 80%);
}
.page-grid::before {
  content: ""; position: absolute; inset: -56px;
  background-image:
    linear-gradient(rgba(11, 37, 64, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 37, 64, .055) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: gridDrift 28s linear infinite;
}
@keyframes gridDrift { to { transform: translate3d(56px, 56px, 0); } }
.page-blob { position: absolute; border-radius: 50%; will-change: transform; }
.pb-a {
  width: 62vmax; height: 62vmax; right: -18vmax; top: -16vmax;
  background: radial-gradient(circle, rgba(23, 195, 214, .24), rgba(23, 195, 214, 0) 68%);
  translate: 0 calc(var(--sp) * -14vh);
  animation: blobA 22s ease-in-out infinite alternate;
}
.pb-b {
  width: 56vmax; height: 56vmax; left: -20vmax; bottom: -22vmax;
  background: radial-gradient(circle, rgba(11, 92, 149, .11), rgba(11, 92, 149, 0) 68%);
  translate: 0 calc(var(--sp) * 12vh);
  animation: blobB 28s ease-in-out infinite alternate;
}
.pb-c {
  width: 40vmax; height: 40vmax; left: 30%; top: 38%;
  background: radial-gradient(circle, rgba(111, 227, 239, .22), rgba(111, 227, 239, 0) 70%);
  animation: blobC 34s ease-in-out infinite alternate;
}
@keyframes blobA { to { transform: translate3d(-8vmax, 7vmax, 0) scale(1.12); } }
@keyframes blobB { to { transform: translate3d(9vmax, -6vmax, 0) scale(1.08); } }
@keyframes blobC { from { transform: translate3d(-12vmax, -6vmax, 0) scale(.9); } to { transform: translate3d(14vmax, 8vmax, 0) scale(1.15); } }
.page-glow {
  position: absolute; left: 0; top: 0; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 195, 214, .08), rgba(23, 195, 214, 0) 62%);
  transform: translate3d(calc(var(--gx, 72vw) - 450px), calc(var(--gy, 32vh) - 450px), 0);
  transition: transform .5s var(--ease-out);
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100vh, 960px);
  min-height: min(100svh, 960px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  overflow: clip;
}

.hero-inner {
  display: grid; grid-template-columns: 1.08fr .92fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero-title {
  font-size: clamp(2.3rem, 4.9vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -.028em;
  text-wrap: balance;
  margin-bottom: 1.4rem;
}
.hero-lead { font-size: clamp(1.04rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; color: var(--navy-800); }
.hero-trust .icon { color: var(--teal-500); width: 1.25em; height: 1.25em; }

/* Entrada del hero: solo CSS, funciona aunque JS falle */
.hero-in { animation: heroIn 1s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * .12s); }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero-title.hero-in,
.hero-lead.hero-in { animation-name: heroRise; }
@keyframes heroRise { from { transform: translateY(24px); } to { transform: none; } }

/* Visual: cruz de circuitos (firma del logo) */
.hero-visual {
  position: relative; width: min(100%, 540px); aspect-ratio: 1; margin-inline: auto;
  --tx: 0; --ty: 0;
  animation: visualIn 1.2s var(--ease-out) .25s both;
}
@keyframes visualIn { from { transform: scale(.94); } to { transform: none; } }
.hero-visual::before {
  content: ""; position: absolute; inset: 18%; border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 255, 255, .7) 45%, transparent 72%);
}
.circuit {
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible;
  translate: calc(var(--tx) * -10px) calc(var(--ty) * -10px);
  transition: translate .6s var(--ease-out);
}
.c-draw { stroke: url(#g-brand); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2s var(--ease-io) forwards; }
.c-cross { stroke-width: 2.4; animation-delay: .35s; }
.c-trace { stroke-width: 2; animation-duration: 1.2s; }
.c-t1 { animation-delay: 1.45s; }
.c-t2 { animation-delay: 1.65s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.c-node {
  fill: var(--ice-50); stroke: url(#g-brand); stroke-width: 2;
  transform-box: fill-box; transform-origin: center;
  animation: nodeIn .6s var(--ease-out) both;
}
.c-node:nth-child(1) { animation-delay: 1.5s; }
.c-node:nth-child(2) { animation-delay: 2.4s; }
.c-node:nth-child(3) { animation-delay: 1.7s; }
.c-node:nth-child(4) { animation-delay: 2.6s; }
@keyframes nodeIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.c-pulse {
  stroke: #8ff4ff; stroke-width: 2.6; stroke-linecap: round;
  stroke-dasharray: .07 1.2; stroke-dashoffset: .07;
  opacity: 0;
  animation: pulse 5.5s linear infinite;
}
.p-cross { stroke-dasharray: .045 1.2; stroke-dashoffset: .045; animation-duration: 9s; animation-delay: 2.8s; }
.p-t1 { animation-delay: 3.2s; }
.p-t2 { animation-delay: 4.6s; }
@keyframes pulse {
  0% { stroke-dashoffset: .07; opacity: 0; }
  6% { opacity: 1; }
  45% { stroke-dashoffset: -1; opacity: 1; }
  46%, 100% { stroke-dashoffset: -1; opacity: 0; }
}

.hero-product {
  position: absolute; left: 21%; top: 19%; width: 58%;
  translate: calc(var(--tx) * 16px) calc(var(--ty) * 16px);
  transition: translate .6s var(--ease-out);
}
.hero-product img {
  width: 100%;
  filter: drop-shadow(0 30px 34px rgba(7, 26, 46, .28));
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }

.chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .95rem; border-radius: 999px;
  font: 600 .82rem/1 var(--font-body); color: var(--navy-900); white-space: nowrap;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-lg);
  translate: calc(var(--tx) * 26px) calc(var(--ty) * 26px);
  transition: translate .6s var(--ease-out);
  animation: chipIn .8s var(--ease-out) both, chipFloat 6s ease-in-out infinite;
}
@supports (backdrop-filter: blur(10px)) {
  .chip { background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-400); box-shadow: 0 0 0 4px rgba(23, 195, 214, .2); }
.chip-a { top: 9%; right: -2%; animation-delay: 2.3s, 3.1s; }
.chip-b { top: 55%; left: -5%; animation-delay: 2.5s, 3.6s; }
.chip-c { bottom: 7%; right: 6%; animation-delay: 2.7s, 4.1s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes chipFloat { 50% { transform: translateY(-8px); } }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px;
  animation: heroIn 1s var(--ease-out) 1.4s both;
}
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal-500); animation: wheel 2s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ---------- reveal on scroll (solo si JS está activo) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-anim .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(84px, 11vw, 150px); }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-copy > p:last-child { color: var(--muted); font-size: 1.04rem; }
.scrub-quote {
  font: 500 clamp(1.3rem, 2.3vw, 1.85rem)/1.38 var(--font-display);
  letter-spacing: -.012em;
  color: var(--navy-900);
  margin-bottom: 1.6rem;
}
.scrub-quote .w { transition: color .35s ease; }
.scrub-quote.is-scrub .w { color: rgba(11, 37, 64, .68); }
.scrub-quote.is-scrub .w.on { color: var(--navy-900); }
.scrub-quote.is-scrub .w.on.hl { color: var(--teal-600); }

.about-media {
  position: relative; border-radius: 28px; overflow: hidden;
  aspect-ratio: 1 / 1.06; box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.about-media.is-in img,
.no-anim .about-media img { transform: scale(1); }
.about-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 45%, rgba(4, 17, 31, .55)); }
.about-badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 1;
  display: grid; gap: 2px; padding: 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm);
}
@supports (backdrop-filter: blur(10px)) {
  .about-badge { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.about-badge-k { font: 600 .7rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); }
.about-badge-v { font: 600 1.02rem/1.3 var(--font-display); color: var(--navy-900); }

.facts-title {
  margin-bottom: 14px;
  font: 600 .76rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--navy-800);
}
.facts {
  margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.fact { margin: 0; padding: 24px 26px; background: #fff; transition: background-color .3s; }
@media (hover: hover) and (pointer: fine) {
  .fact:hover { background: var(--ice-50); }
}
.fact dt { font: 600 .72rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.fact dd { margin: 0; font: 500 1.02rem/1.45 var(--font-display); color: var(--navy-900); }
.fact dd a { color: var(--blue-600); border-bottom: 1px solid rgba(11, 92, 149, .3); }
@media (hover: hover) and (pointer: fine) {
  .fact dd a:hover { border-color: var(--blue-600); }
}

/* Misión y visión (sección oscura) */
.purpose { background: var(--navy-950); color: #dbe8f0; isolation: isolate; overflow: clip; }
.purpose-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 500px at 85% 10%, rgba(23, 195, 214, .16), transparent 70%),
    radial-gradient(600px 500px at 5% 95%, rgba(11, 92, 149, .3), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 64px 64px;
}
.purpose .h2 { color: #fff; }
.purpose-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.purpose-media {
  position: sticky; top: calc(var(--header-h) + 24px);
  border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #0b86b3 0%, #0b2540 70%);
}
.purpose-media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .92; }
.purpose-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(4, 17, 31, .7)); }
.pcard {
  position: relative; padding: 30px 30px 26px; margin-top: 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: border-color .4s, background-color .4s, transform .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { border-color: rgba(23, 195, 214, .45); background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
}
.pcard-ico {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  box-shadow: 0 10px 24px -10px rgba(23, 195, 214, .6);
}
.pcard-ico .icon { width: 24px; height: 24px; }
.pcard h3 { color: #fff; font-size: 1.3rem; margin-bottom: .6rem; }
.pcard p { margin: 0; color: rgba(219, 232, 240, .8); }
.pcard p + p { margin-top: .75rem; }

.slogan {
  margin-top: clamp(72px, 10vw, 130px); margin-bottom: 0;
  text-align: center; text-wrap: balance;
  font: 600 clamp(2rem, 5.4vw, 4.4rem)/1.08 var(--font-display);
  letter-spacing: -.03em; color: #fff;
}

/* Marquee */
.marquee { overflow: clip; padding-block: 26px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
.marquee span {
  display: inline-flex; align-items: center; gap: 48px; padding-right: 48px;
  font: 600 clamp(1.1rem, 2vw, 1.5rem)/1 var(--font-display); letter-spacing: -.01em; color: var(--navy-800);
  white-space: nowrap;
}
.marquee span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--teal-500); }
.marquee span::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: conic-gradient(from 0deg, var(--blue-600), var(--cyan-400), var(--blue-600));
  -webkit-mask: linear-gradient(#000 0 0) center / 100% 4px no-repeat, linear-gradient(#000 0 0) center / 4px 100% no-repeat;
  mask: linear-gradient(#000 0 0) center / 100% 4px no-repeat, linear-gradient(#000 0 0) center / 4px 100% no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Productos */
.products-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(36px, 5vw, 56px); }
.products-head > div:first-child { max-width: 640px; }
.products-head .section-lead { margin-bottom: 0; }
.filters {
  position: relative; display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 5px;
  border-radius: 999px; background: var(--ice-100); border: 1px solid var(--line);
}
.filters-pill {
  position: absolute; top: 5px; left: 5px; height: calc(100% - 10px); width: 0; border-radius: 999px;
  background: var(--navy-900); box-shadow: 0 8px 18px -10px rgba(7, 26, 46, .8);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out);
}
.filter {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .6rem 1rem; border: 0; border-radius: 999px; background: transparent;
  font-weight: 500; font-size: .9rem; color: var(--navy-800);
  transition: color .35s;
}
@media (hover: hover) and (pointer: fine) {
  .filter:hover { color: var(--blue-600); }
}
.filter.is-active { color: #fff; }
.f-short { display: none; }
.no-pill .filter.is-active { background: var(--navy-900); }
html:not(.js) .filters { display: none; }
.filter-n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; background: rgba(11, 37, 64, .08); transition: background-color .35s;
}
.filter.is-active .filter-n { background: rgba(255, 255, 255, .18); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 20px; }
.product {
  position: relative; display: flex; flex-direction: column;
  padding: 12px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .5s, opacity .9s var(--ease-out);
}
.product::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, var(--cyan-400), transparent 35%, transparent 65%, var(--blue-600));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s;
}
@media (hover: hover) and (pointer: fine) {
  .product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
  .product:hover::before { opacity: 1; }
}
.p-media {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 4%;
  aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 95% at 50% 32%, #ffffff 0%, var(--ice-100) 62%, var(--ice-200) 100%);
}
.p-media::before {
  content: ""; position: absolute; inset: 12%; opacity: .5; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23c9dde9' stroke-width='2'%3E%3Cpath d='M46 4H74Q82 4 82 12V34Q82 38 86 38H108Q116 38 116 46V74Q116 82 108 82H86Q82 82 82 86V108Q82 116 74 116H46Q38 116 38 108V86Q38 82 34 82H12Q4 82 4 74V46Q4 38 12 38H34Q38 38 38 34V12Q38 4 46 4Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .8s var(--ease-out), opacity .5s;
}
@media (hover: hover) and (pointer: fine) {
  .product:hover .p-media::before { transform: rotate(90deg) scale(1.05); opacity: .8; }
}
.p-media img {
  position: relative; width: auto; max-width: 74%; max-height: 76%; object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(7, 26, 46, .2));
  transition: transform .7s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .product:hover .p-media img { transform: scale(1.08) rotate(-3deg); }
}
.p-body { display: flex; flex-direction: column; gap: .35rem; flex: 1; padding: 16px 8px 6px; }
.p-cat { margin: 0; font: 600 .7rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--teal-600); }
.p-name { font-size: 1.08rem; line-height: 1.3; }
.p-desc { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.p-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .5rem; }
.p-tags li { padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 500; color: var(--navy-800); background: var(--ice-50); border: 1px solid var(--line); }
.p-link {
  display: inline-flex; align-items: center; gap: .4rem; width: fit-content;
  margin-top: auto; padding-top: .8rem;
  font-weight: 600; font-size: .92rem; color: var(--blue-600);
}
.p-link .icon { transition: transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .p-link:hover .icon,
  .product:hover .p-link .icon { transform: translateX(4px); }
  .p-link:hover { color: var(--teal-600); }
}

/* Tarjetas anchas: el sistema ocupa 3 columnas y el cage toda la fila, así cada vista llena sus filas */
.product-wide { flex-direction: row; gap: 8px; }
.product-span3 { grid-column: span 3; }
.product-full { grid-column: 1 / -1; }
@media (min-width: 821px) {
  .product-grid[data-view="craneoplastia"],
  .product-grid[data-view="columna"] { grid-template-columns: repeat(3, 1fr); }
}
.product-wide .p-media { flex: 1 1 54%; aspect-ratio: auto; min-height: 320px; }
.product-wide .p-media img { max-width: 80%; max-height: 82%; }
.product-wide .p-media-2 { max-width: 42% !important; max-height: 86% !important; }
.product-wide .p-media img:first-child:not(:only-child) { max-width: 46%; }
.product-wide .p-body { flex: 1 1 46%; padding: 22px 18px 16px; justify-content: center; }
.product-wide .p-name { font-size: 1.35rem; }
.product-wide .p-link { margin-top: 1rem; }

.product.is-hidden { display: none; }
.product.is-showing { animation: cardIn .6s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 55ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* Indicador del carrusel de productos (solo teléfonos) */
.carousel-ui { display: none; align-items: center; gap: 12px; margin-top: 2px; }
.carousel-ui.is-static { visibility: hidden; }
.carousel-track { position: relative; flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.carousel-thumb {
  position: absolute; top: 0; bottom: 0; border-radius: 3px;
  width: calc(var(--w, .3) * 100%); left: calc(var(--x, 0) * (100% - var(--w, .3) * 100%));
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400));
}
.carousel-hint { display: inline-flex; align-items: center; gap: .35rem; flex: none; font-size: .78rem; font-weight: 500; color: var(--muted); }
.carousel-hint .icon { width: 1em; height: 1em; }

/* Equipos */
.equip { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.equip + .equip { margin-top: clamp(72px, 10vw, 128px); }
.equip-flip .equip-media { order: 2; }
.equip-media {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 4 / 3; padding: 8%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(110% 90% at 50% 40%, #fff 0%, var(--ice-100) 65%, var(--ice-200) 100%);
  border: 1px solid var(--line);
}
.equip-media::before {
  content: ""; position: absolute; inset: 6%; opacity: .55; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='none' stroke='%23cfe1ec' stroke-width='1.6'%3E%3Cpath d='M46 4H74Q82 4 82 12V34Q82 38 86 38H108Q116 38 116 46V74Q116 82 108 82H86Q82 82 82 86V108Q82 116 74 116H46Q38 116 38 108V86Q38 82 34 82H12Q4 82 4 74V46Q4 38 12 38H34Q38 38 38 34V12Q38 4 46 4Z'/%3E%3Cpath d='M59 31V50Q59 58 67 58H94M27 61H48Q58 61 58 71V95'/%3E%3Ccircle cx='59' cy='27' r='3.6'/%3E%3Ccircle cx='98' cy='58' r='3.6'/%3E%3Ccircle cx='23' cy='61' r='3.6'/%3E%3Ccircle cx='58' cy='99' r='3.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.equip-media img {
  position: relative; width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(7, 26, 46, .22));
  translate: 0 var(--py, 0px);
  transition: transform .8s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .equip-media:hover img { transform: scale(1.03); }
}
.equip-body .p-cat { margin-bottom: .7rem; }
.equip-cta { min-width: 180px; color: var(--navy-900); }
.text-link { color: var(--blue-600); text-decoration: underline; text-decoration-color: rgba(11, 92, 149, .35); text-underline-offset: 3px; }
.equip-body .h3 { margin-bottom: 1rem; }
.equip-lead { color: var(--muted); font-size: 1.04rem; margin-bottom: 1.6rem; }
.equip-lists { display: grid; gap: 22px; margin-bottom: 2rem; }
.equip-lists h4 { font: 600 .74rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-800); margin-bottom: .8rem; }
.checks { display: grid; gap: .6rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; line-height: 1.5; }
.checks .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 1px; border-radius: 50%;
  color: var(--teal-600); background: rgba(23, 195, 214, .14);
}

/* Ubicación */
.location-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; align-items: stretch; }
.map-frame {
  position: relative; min-height: 500px; border-radius: 28px; overflow: hidden;
  background: var(--ice-100); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location-card {
  display: flex; flex-direction: column; padding: clamp(28px, 4vw, 40px); border-radius: 28px;
  color: #dbe8f0; background: var(--grad-deep); position: relative; overflow: hidden; isolation: isolate;
}
.location-card::before {
  content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -140px; z-index: -1;
  border-radius: 50%; background: radial-gradient(circle, rgba(23, 195, 214, .35), transparent 70%);
}
.location-card .eyebrow { color: var(--cyan-300); }
.location-card .h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.contact-list { display: grid; gap: 18px; margin: .6rem 0 1.4rem; }
.contact-list p { display: flex; gap: 14px; margin: 0; }
.contact-list .icon { width: 24px; height: 24px; color: var(--cyan-400); margin-top: 2px; }
.contact-list strong { display: block; font: 600 .72rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(219, 232, 240, .65); margin-bottom: .2rem; }
.contact-list span { font-size: 1.04rem; color: #fff; }
.contact-list small { display: inline-block; margin-top: .3rem; font-size: .86rem; color: rgba(219, 232, 240, .82); }
.contact-list a { border-bottom: 1px solid rgba(111, 227, 239, .4); }
@media (hover: hover) and (pointer: fine) {
  .contact-list a:hover { border-color: var(--cyan-300); }
}
.location-note { color: rgba(219, 232, 240, .78); font-size: .97rem; }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 1rem; }
.location-card .btn-primary { background: #fff; color: var(--navy-900); }
@media (hover: hover) and (pointer: fine) {
  .location-card .btn-primary:hover { background: var(--cyan-300); }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font: 500 clamp(1.02rem, 1.5vw, 1.15rem)/1.4 var(--font-display); color: var(--navy-900); transition: color .3s; }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover h3 { color: var(--blue-600); }
}
.faq-ico {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--navy-900); background: #fff;
  transition: transform .45s var(--ease-out), background-color .3s, color .3s, border-color .3s;
}
.faq-item[open] .faq-ico { transform: rotate(45deg); background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.faq-item::details-content {
  block-size: 0; overflow: clip;
  transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; }
.faq-a p { margin: 0; padding: 0 56px 24px 0; color: var(--muted); }

/* Contacto y datos de la empresa */
.contact { isolation: isolate; overflow: clip; }
.contact-head {
  display: flex; flex-direction: column; align-items: center;
  max-width: 780px; margin: 0 auto clamp(52px, 7vw, 84px); text-align: center;
}
.contact-head .section-lead { margin-inline: auto; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: .8rem; }

/* Preguntas: enlaces dentro de las respuestas */
.faq-a a { color: var(--blue-600); text-decoration: underline; text-decoration-color: rgba(11, 92, 149, .35); text-underline-offset: 3px; padding-block: 6px; }
.faq-a a[href^="tel:"] { white-space: nowrap; }

/* Footer */
.site-footer { background: var(--navy-950); color: rgba(219, 232, 240, .72); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand img { width: 220px; margin-bottom: 18px; filter: brightness(1.25) saturate(1.1); }
.footer-brand p { max-width: 40ch; }
.footer-slogan { font: 500 1rem/1.4 var(--font-display); color: var(--cyan-300); }
.footer-h { font: 600 .74rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: .55rem; }
.footer-grid a { transition: color .25s; }
@media (hover: hover) and (pointer: fine) {
  .footer-grid a:hover { color: var(--cyan-300); }
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; color: rgba(219, 232, 240, .6); }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; color: rgba(219, 232, 240, .85); font-weight: 500; }
.to-top .icon { rotate: -90deg; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .brand img { height: 36px; }
  :root { --gutter: max(clamp(16px, 4vw, 32px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
  .menu-toggle { display: block; margin-right: -12px; }
  .site-header.is-scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header.menu-on { background: #fff; box-shadow: 0 1px 0 var(--line); transition-duration: .2s; }

  .nav {
    position: absolute; top: calc(100% + 8px); right: var(--gutter); left: auto;
    width: min(340px, 100vw - 2 * var(--gutter));
    max-height: calc(100vh - var(--header-h) - 24px);
    max-height: calc(100svh - var(--header-h) - 24px);
    display: block; overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 0; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .16s cubic-bezier(.4, 0, 1, 1), transform .18s cubic-bezier(.4, 0, 1, 1), visibility 0s linear .18s;
  }
  .nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s var(--ease-out), transform .26s var(--ease-out), visibility 0s;
  }
  .nav-list { display: block; padding-inline: 20px; }
  .nav-list li + li { border-top: 1px solid var(--line); }
  .nav-list a {
    display: flex; align-items: center; min-height: 52px;
    margin-inline: -12px; padding: 0 12px; border-radius: 12px;
    font: 500 1.0625rem/1.3 var(--font-body); color: var(--navy-900);
    transition: background-color .15s, color .15s;
  }
  .nav-list a:active { background: var(--ice-50); }
  /* el subrayado de escritorio pasa a ser una barra vertical que marca la sección activa */
  .nav-list a::after { left: 0; right: auto; top: 50%; bottom: auto; width: 3px; height: 20px; margin-top: -10px; transform: scaleY(0); transform-origin: center; transition: transform .2s var(--ease-out); }
  .nav-list a:hover::after { transform: scaleY(0); }
  .nav-list a.is-active { color: var(--blue-600); font-weight: 600; }
  .nav-list a.is-active::after { transform: none; }

  .nav-contact { display: block; margin-top: 6px; padding: 14px 20px 10px; border-top: 1px solid var(--line); }
  .nav-contact-k { margin: 0 0 10px; font: 600 .75rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .nav-contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-contact-actions .btn { min-height: 44px; padding: .6rem .8rem; font-size: .9375rem; }

  .nav-scrim {
    display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 59;
    background: rgba(4, 17, 31, .32); touch-action: none;
    opacity: 0; visibility: hidden;
    transition: opacity .16s linear, visibility 0s linear .16s;
  }
  html.menu-open .nav-scrim { opacity: 1; visibility: visible; transition: opacity .2s linear, visibility 0s; }


  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); padding-bottom: 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { width: min(84vw, 420px); }
  .hero-scroll { display: none; }

  .about-grid,
  .purpose-grid,
  .faq-grid,
  .location-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16 / 11; }
  .purpose-media { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .purpose-media img { object-position: 50% 30%; }
  .faq-intro { position: static; }
  .map-frame { min-height: 380px; }

  .equip,
  .equip-flip { grid-template-columns: 1fr; }
  .equip-flip .equip-media { order: 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 601px) and (max-width: 960px) {
  .about-copy, .equip-body, .pcard, .faq-a p, .location-note { max-width: 68ch; }
}

@media (max-width: 820px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 22px; }
  html:not(.js) .filters { display: none; }
  .filter { justify-content: center; padding: .62rem .5rem; font-size: .84rem; text-align: center; }
  .filters-pill { border-radius: 18px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-wide { flex-direction: column; }
  .product-wide .p-media { min-height: 0; aspect-ratio: 16 / 10; }
  .product-span3 { grid-column: auto; }
  .product-span3 .p-media { aspect-ratio: 4 / 3; }
  .product-span3 .p-body { padding: 16px 8px 6px; justify-content: flex-start; }
  .product-span3 .p-name { font-size: 1.08rem; }
}

/* Teléfonos: más aire, tipografía más contenida y catálogo en carrusel deslizable */
@media (max-width: 600px) {
  :root { --gutter: max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --header-h: 60px; }
  body { font-size: 1rem; line-height: 1.6; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }

  /* Menú: panel a todo el ancho bajo la cabecera, solo del alto de su contenido */
  .nav {
    top: 100%; left: 0; right: 0; width: auto;
    max-height: calc(100vh - var(--header-h) - 16px);
    max-height: calc(100svh - var(--header-h) - 16px);
    padding: 4px 0 8px; border: 0; border-radius: 0 0 20px 20px;
    box-shadow: 0 24px 48px -24px rgba(7, 26, 46, .35);
  }
  .nav-list,
  .nav-contact { padding-inline: var(--gutter); }

  /* Animación y ruido visual mínimos en el teléfono */
  .grad-text { animation: none; }
  .page-grid::before { animation: none; }
  .scroll-progress { display: none; }
  .marquee { display: none; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .eyebrow { margin-bottom: .85rem; gap: .55rem; font-size: .75rem; letter-spacing: .1em; }
  .eyebrow::before { width: 18px; }
  .h2 { font-size: clamp(1.5rem, 6.6vw, 1.75rem); line-height: 1.16; margin-bottom: .9rem; }
  .h3 { font-size: 1.32rem; }
  .section-lead { font-size: 1rem; }
  .btn { min-height: 48px; padding: .78rem 1.2rem; font-size: .94rem; }
  .btn-lg { padding: .9rem 1.3rem; font-size: .97rem; }

  /* Portada */
  .hero { padding-top: calc(var(--header-h) + 24px); padding-bottom: 48px; }
  .hero-inner { gap: 24px; }
  .hero-title { font-size: clamp(1.875rem, 1.2rem + 3.2vw, 2.25rem); line-height: 1.12; letter-spacing: -.02em; margin-bottom: 12px; }
  .hero-lead { margin-bottom: 1.5rem; font-size: 1.0625rem; line-height: 1.55; }
  .hero-actions { margin-bottom: 1.6rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { flex-direction: column; gap: 8px; }
  .hero-trust li { font-size: .9rem; }
  .hero-visual { width: min(68vw, 260px); }
  .chip { animation-name: chipIn; gap: .4rem; padding: .45rem .75rem; font-size: .75rem; background: rgba(255, 255, 255, .94); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .chip i { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(23, 195, 214, .2); }
  .chip-a { right: -4%; }
  .chip-b { left: -4%; }
  .chip-c { display: none; }

  /* Quiénes somos */
  .about-grid { gap: 32px; }
  .scrub-quote { margin-bottom: 1.2rem; font-size: 1.16rem; line-height: 1.42; }
  .about-copy > p:last-child { font-size: 1rem; }
  .about-badge-k, .fact dt, .contact-list strong { font-size: .75rem; }
  .about-media { aspect-ratio: 4 / 3; border-radius: 22px; }
  .about-badge { left: 14px; bottom: 14px; padding: 10px 14px; border-radius: 14px; }
  .about-badge-v { font-size: .92rem; }


  /* Catálogo: filtros en una fila deslizable */
  .products-head { gap: 20px; margin-bottom: 22px; }
  .filters { display: flex; flex-wrap: nowrap; width: 100%; border-radius: 999px; }
  .filter { flex: 1 1 auto; justify-content: center; min-height: 44px; padding: .55rem .5rem; font-size: .9rem; }
  .filter .filter-n,
  .f-full { display: none; }
  .f-short { display: inline; }
  .filters-pill { border-radius: 999px; }

  /* Catálogo: carrusel con tarjetas anchas (se ve la siguiente para invitar a deslizar) */
  .product-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 340px);
    gap: 14px; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px;
    overflow-x: auto; overflow-y: visible; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
  }
  .product-grid::-webkit-scrollbar { display: none; }
  .product,
  .product-wide { display: flex; flex-direction: column; grid-column: auto; gap: 0; padding: 12px; scroll-snap-align: start; scroll-snap-stop: always; }
  .product-grid[data-view="all"] .product-wide { order: -1; }
  .js .product.reveal { opacity: 1; transform: none; }
  .product .p-media,
  .product:not(.product-wide) .p-media,
  .product-wide .p-media { aspect-ratio: 4 / 3; min-height: 0; align-self: stretch; }
  .product .p-body,
  .product-wide .p-body { justify-content: flex-start; padding: 14px 6px 4px; }
  .p-name,
  .product-wide .p-name,
  .product-span3 .p-name { font-size: 1.05rem; }
  .p-cat { font-size: .75rem; letter-spacing: .1em; }
  .p-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .9375rem; line-height: 1.5; }
  .p-link,
  .product-wide .p-link {
    width: 100%; min-height: 44px; justify-content: center; margin-top: auto; padding: 0 1rem;
    border: 1px solid var(--line-strong); border-radius: 999px; color: var(--navy-900);
  }
  .p-desc { margin-bottom: 14px; }
  .p-link:active { background: var(--ice-50); opacity: 1; }
  .p-tags { display: none; }
  .carousel-ui { display: flex; }

  /* Equipos */
  .equip { gap: 22px; }
  .equip + .equip { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--line); }
  .equip-media { aspect-ratio: 16 / 10; padding: 5%; border-radius: 22px; }
  .equip-lead { margin-bottom: 1.2rem; font-size: 1rem; }
  .equip-lists { gap: 16px; margin-bottom: 1.4rem; }
  .checks { gap: .45rem; }
  .checks li { font-size: .9375rem; }
  .equip-body .btn { width: 100%; }

  /* Ubicación */
  .location-grid { gap: 16px; }
  .map-frame { min-height: 0; aspect-ratio: 4 / 3; border-radius: 22px; }
  .location-card { padding: 24px 20px; border-radius: 22px; }
  .location-card .h2 { font-size: 1.4rem; }
  .contact-list { gap: 14px; }
  .contact-list span { font-size: 1rem; }
  .contact-list a,
  .fact dd a { padding-block: 8px; border-bottom: 0; text-decoration: underline; text-underline-offset: 3px; }
  .location-note { font-size: .9375rem; }
  .location-actions { gap: 12px; }
  .location-actions .btn { flex: 1 1 100%; }

  /* Preguntas frecuentes */
  .faq-grid { gap: 28px; }
  .faq-item summary { min-height: 56px; gap: 14px; padding: 14px 0; }
  .faq-item summary h3 { font-size: 1.0625rem; line-height: 1.4; }
  .faq-ico { width: 32px; height: 32px; }
  .faq-a p { padding: 0 0 18px; font-size: 1rem; }

  /* Misión y visión */
  .purpose-grid { gap: 28px; }
  .purpose-media { aspect-ratio: 16 / 10; border-radius: 22px; }
  .pcard { margin-top: 14px; padding: 22px 20px; border-radius: 20px; }
  .pcard-ico { width: 42px; height: 42px; margin-bottom: 12px; border-radius: 12px; }
  .pcard h3 { font-size: 1.15rem; }
  .pcard p { font-size: .9375rem; }
  .slogan { margin-top: 56px; font-size: clamp(1.6rem, 7.4vw, 1.9rem); }

  /* Contacto y datos de la empresa */
  .contact-head { margin-bottom: 40px; }
  .contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
  .contact-actions .btn-wa { grid-column: 1 / -1; }
  .contact-actions .btn { padding-inline: 1rem; }
  .fact-contact { display: none; } /* repite los botones de arriba */
  .facts { grid-template-columns: 1fr; border-radius: 20px; }
  .fact { padding: 16px 18px; }
  .fact dd { font-size: .95rem; }

  /* Pie */
  .site-footer { padding: 48px 0 calc(24px + env(safe-area-inset-bottom, 0px)); font-size: .9375rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
  .footer-brand img { width: 160px; }
  .footer-nav ul { grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .site-footer ul { gap: 0; }
  .site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-bottom { flex-direction: column; font-size: .875rem; }
}

@media (hover: none), (pointer: coarse) {
  .page-glow { transform: translate(calc(72vw - 450px), calc(32vh - 450px)); transition: none; }
}

/* Movimiento reducido: solo se apagan los efectos intrusivos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page-blob, .page-grid::before, .hero-scroll span { animation: none; }
  .page-blob { translate: none; will-change: auto; }
  .page-glow { transform: translate(calc(72vw - 450px), calc(32vh - 450px)); transition: none; }
  .nav { transform: none; transition: opacity .12s linear, visibility 0s linear .12s; }
  .nav.is-open { transform: none; transition: opacity .12s linear, visibility 0s; }
  .nav-scrim,
  html.menu-open .nav-scrim { transition: none; }
  .product.is-showing { animation: none; }
}

@media (max-width: 960px) and (max-height: 520px) {
  .nav-list a { min-height: 44px; }
  .nav-contact { display: none; }
}

/* Modo de alto contraste de Windows */
@media (forced-colors: active) {
  .menu-bars span { background: ButtonText; }
  .filters-pill { display: none; }
  .filter[aria-pressed="true"] { background: Highlight; color: HighlightText; }
}
