/* ==========================================================
   SEEMID Company — Div. Biomedicina · Electromedicina
   Hoja de estilos principal
   ========================================================== */

:root {
  --brand: #c4121f;
  --brand-600: #a50d18;
  --brand-50: #fdf1f2;
  --brand-100: #fadde0;
  --ink: #15171c;
  --graphite: #24272e;
  --graphite-2: #2f333b;
  --text: #3b404b;
  --muted: #6a7080;
  --line: #e5e7ec;
  --bg: #f5f6f8;
  --white: #ffffff;
  --ok: #1aa66b;
  --wa: #25d366;

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(17, 20, 28, .06), 0 2px 8px rgba(17, 20, 28, .04);
  --shadow: 0 10px 30px -12px rgba(17, 20, 28, .18), 0 4px 10px -4px rgba(17, 20, 28, .06);
  --shadow-lg: 0 30px 60px -20px rgba(17, 20, 28, .28);
  --container: 1220px;
  --header-h: 92px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(196, 18, 31, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand); color: #fff; }

.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.45em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; white-space: nowrap;
  background: var(--b); color: #fff; border: 1.5px solid var(--b);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(196, 18, 31, .6); background: var(--brand-600); border-color: var(--brand-600); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico-arrow { transform: translateX(3px); }
.btn-dark { --b: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--brand); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .35); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; box-shadow: none; }
.btn-wa { --b: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb956; border-color: #1eb956; box-shadow: 0 12px 24px -10px rgba(37, 211, 102, .6); }
.btn-sm { padding: .6em 1.05em; font-size: .85rem; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; color: var(--brand); }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- Tipografía de secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 72px 0; }
.bg-soft { background: var(--bg); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head h2, .h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.section-head-row .section-head { margin-bottom: 0; }
.text-brand { color: var(--brand); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--ink); color: #c9ccd4; font-size: .82rem; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-info { display: flex; gap: 26px; align-items: center; }
.topbar-info span, .topbar-info a { display: inline-flex; align-items: center; gap: .5em; }
.topbar-info .ico { color: var(--brand); width: 14px; height: 14px; }
.topbar a:hover { color: #fff; }
.social { display: flex; gap: 8px; }
.social a {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); color: #fff; transition: background .25s, transform .25s;
}
.social a:hover { background: var(--brand); transform: translateY(-2px); }
.social .ico { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(17, 20, 28, .25); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 68px; width: auto; }
.brand-tag { display: flex; flex-direction: column; line-height: 1.2; padding-left: 14px; border-left: 1px solid var(--line); }
.brand-tag small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.brand-tag strong { font-family: var(--font-head); font-size: .78rem; color: var(--ink); font-weight: 600; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 10px 16px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; color: var(--text); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--bg); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--brand); border-radius: 50%;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.quote-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); color: var(--ink); transition: border-color .2s, background .2s;
}
.quote-btn:hover { border-color: var(--ink); }
.quote-btn .ico { width: 20px; height: 20px; }
.quote-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700;
  display: grid; place-items: center; border: 2px solid #fff; transform: scale(0); transition: transform .3s var(--ease);
}
.quote-count.show { transform: scale(1); }
.quote-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; place-items: center; background: var(--ink); color: #fff; }
.menu-toggle .ico { width: 20px; height: 20px; }

/* ---------- Menú móvil ---------- */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.mobile-nav::before {
  content: ""; position: absolute; inset: 0; background: rgba(10, 12, 16, .55); opacity: 0; transition: opacity .35s;
}
.mobile-nav-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(380px, 88vw); background: #fff;
  padding: 22px 24px 32px; display: flex; flex-direction: column; gap: 22px;
  transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto;
}
.mobile-nav.open { visibility: visible; pointer-events: auto; }
.mobile-nav.open::before { opacity: 1; }
.mobile-nav.open .mobile-nav-panel { transform: none; }
.mobile-nav-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav-top img { height: 44px; width: auto; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.icon-btn:hover { background: var(--line); }
.mobile-nav ul a {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 4px;
  border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--ink);
}
.mobile-nav ul a[aria-current="page"] { color: var(--brand); }
.mobile-nav-contact { margin-top: auto; display: grid; gap: 10px; font-size: .92rem; }
.mobile-nav-contact a { display: flex; gap: .6em; align-items: center; }
.mobile-nav-contact .ico { color: var(--brand); }

/* ---------- Hero (inicio) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 72px 0 120px;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(196, 18, 31, .10), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(36, 39, 46, .06), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f6f7f9 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(36, 39, 46, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 39, 46, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: 26px;
}
.pill b { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 70% { box-shadow: 0 0 0 7px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 .hl { position: relative; color: var(--brand); white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .38em; }
.hero h1 .hl path { stroke: var(--brand); stroke-width: 3; fill: none; stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s .6s var(--ease) forwards; opacity: .55; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.hero-trust li { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.hero-trust .ico-wrap { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.hero-trust .ico { width: 18px; height: 18px; }

.hero-visual { position: relative; min-height: 540px; }
.hero-stage {
  position: absolute; inset: 20px 0 30px 40px; border-radius: 32px;
  background: linear-gradient(150deg, var(--graphite) 0%, var(--ink) 70%);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.hero-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(420px 300px at 75% 20%, rgba(196, 18, 31, .45), transparent 70%),
    radial-gradient(300px 260px at 10% 90%, rgba(255, 255, 255, .06), transparent 70%);
}
.hero-stage::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-ecg { position: absolute; left: 0; right: 0; top: 56%; height: 120px; z-index: 1; opacity: .9; }
.hero-ecg path { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(255, 40, 60, .8)); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: ecg 3.6s linear infinite; }
@keyframes ecg { 0% { stroke-dashoffset: 1400; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1400; } }
.hero-device { position: absolute; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero-device.main { width: 74%; right: 4%; top: 12%; animation: float 7s ease-in-out infinite; }
.hero-device.side { width: 38%; left: -2%; bottom: 2%; animation: float 7s 1.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.float-card {
  position: absolute; z-index: 3; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px);
  border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  font-size: .82rem; color: var(--muted); line-height: 1.3;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.float-card .fc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.float-card .fc-ico.dark { background: var(--ink); }
.float-card.fc-1 { top: 0; left: 0; animation: float 6s .4s ease-in-out infinite; }
.float-card.fc-2 { right: -12px; bottom: 70px; animation: float 6s 2s ease-in-out infinite; }
.bpm { display: flex; align-items: baseline; gap: 4px; color: var(--brand); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; }
.bpm small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; color: #fff; display: block; }

/* ---------- Marcas ---------- */
.brands { padding: 34px 0 40px; border-bottom: 1px solid var(--line); background: #fff; }
.brands p { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 38s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 46px; width: auto; filter: grayscale(1) contrast(1.1); opacity: .65; transition: filter .3s, opacity .3s; mix-blend-mode: multiply; }
.marquee-track img:hover { filter: none; opacity: 1; }
.marquee-track .word { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: #9aa0ab; letter-spacing: -.02em; white-space: nowrap; transition: color .3s; }
.marquee-track .word:hover { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Nosotros (resumen) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-media { position: relative; padding: 0 60px 60px 0; }
.about-media .img-a { border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3.1; object-fit: cover; width: 100%; }
.about-media .img-b {
  position: absolute; right: 0; bottom: 0; width: 52%; border-radius: var(--radius); border: 6px solid #fff;
  box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; object-fit: cover;
}
.about-badge {
  position: absolute; left: -18px; bottom: 90px; background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 18px 20px; box-shadow: 0 20px 40px -14px rgba(196, 18, 31, .6); max-width: 200px;
}
.about-badge strong { font-family: var(--font-head); font-size: 1.9rem; display: block; line-height: 1; margin-bottom: 4px; }
.about-badge span { font-size: .82rem; opacity: .9; line-height: 1.35; display: block; }
.check-list { display: grid; gap: 14px; margin: 26px 0 34px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ico-wrap { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-top: 1px; }
.check-list .ico { width: 14px; height: 14px; stroke-width: 3; }
.check-list strong { color: var(--ink); }

/* ---------- Cifras ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.stats::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 90% 0%, rgba(196, 18, 31, .35), transparent 70%); }
.stat { position: relative; padding: 34px 30px; color: #b8bcc6; border-right: 1px solid rgba(255, 255, 255, .08); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); color: #fff; line-height: 1; margin-bottom: 8px; letter-spacing: -.03em; }
.stat strong em { font-style: normal; color: var(--brand); }
.stat > span { font-size: .92rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card .media { aspect-ratio: 1 / .82; overflow: hidden; background: #eef3f7; }
.service-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .media img { transform: scale(1.06); }
.service-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service-card .num { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .1em; margin-bottom: 8px; }
.service-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.service-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.service-card .link-arrow { font-size: .9rem; }

/* ---------- Categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.cat-card {
  position: relative; grid-column: span 6; min-height: 330px; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #f1f2f5 100%); border: 1px solid var(--line);
  padding: 34px; display: flex; flex-direction: column; isolation: isolate; transition: box-shadow .35s, transform .35s var(--ease);
}
.cat-card:nth-child(1) { grid-column: span 7; }
.cat-card:nth-child(2) { grid-column: span 5; }
.cat-card:nth-child(3) { grid-column: span 5; }
.cat-card:nth-child(4) { grid-column: span 7; }
.cat-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-card.dark { background: linear-gradient(140deg, var(--graphite) 0%, var(--ink) 100%); border-color: transparent; color: #b8bcc6; }
.cat-card.dark h3 { color: #fff; }
.cat-card.dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(380px 260px at 100% 100%, rgba(196, 18, 31, .45), transparent 70%); }
.cat-card .cat-ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--brand); color: #fff; margin-bottom: 20px; }
.cat-card .cat-ico .ico { width: 24px; height: 24px; }
.cat-card h3 { font-size: 1.45rem; max-width: 300px; margin-bottom: 8px; }
.cat-card p { font-size: .93rem; max-width: 300px; margin-bottom: 18px; }
.cat-card .chips { display: flex; flex-wrap: wrap; gap: 6px; max-width: 330px; margin-bottom: 22px; }
.chip { font-size: .74rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: rgba(36, 39, 46, .06); color: var(--text); }
.cat-card.dark .chip { background: rgba(255, 255, 255, .08); color: #d6d8de; }
.cat-card .cat-img {
  position: absolute; right: -10px; bottom: -10px; width: 46%; max-width: 330px; z-index: -1;
  transition: transform .6s var(--ease); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .22));
}
.cat-card:hover .cat-img { transform: scale(1.05) rotate(-1.5deg); }
.cat-card .link-arrow { margin-top: auto; }
.cat-card.dark .link-arrow { color: #fff; }

/* ---------- Productos (tarjetas) ---------- */
.products-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 26px; }
.products-row::-webkit-scrollbar { display: none; }
.products-row > * { scroll-snap-align: start; }
.slider-nav { display: flex; gap: 10px; }
.slider-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); background: #fff; transition: all .25s; }
.slider-nav button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.p-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s var(--ease), border-color .3s;
}
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.p-card .p-media {
  position: relative; aspect-ratio: 1 / .86; background: radial-gradient(circle at 50% 40%, #fff 0%, #f3f4f6 100%);
  display: grid; place-items: center; padding: 22px; cursor: zoom-in; overflow: hidden;
}
.p-card .p-media img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-badge { position: absolute; top: 12px; left: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; }
.p-card .p-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line); }
.p-cat { font-size: .74rem; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.p-card h3 { font-size: 1rem; line-height: 1.35; margin-bottom: 6px; letter-spacing: -.01em; }
.p-card h3 button { text-align: left; }
.p-card h3 button:hover { color: var(--brand); }
.p-brand { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.p-actions { margin-top: auto; display: flex; gap: 8px; }
.p-actions .btn { flex: 1; padding: .62em .8em; font-size: .82rem; }
.p-actions .btn-add { flex: 0 0 auto; width: 40px; padding: 0; height: 38px; }
.btn-add.added { background: var(--ok); border-color: var(--ok); color: #fff; }

/* ---------- Neonatología ---------- */
.neo {
  position: relative; border-radius: 32px; overflow: hidden; background: var(--ink); color: #c4c8d0;
  display: grid; grid-template-columns: 1fr 1fr; isolation: isolate;
}
.neo-media { position: relative; min-height: 520px; }
.neo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.neo-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--ink) 100%); }
.neo-body { padding: 70px 64px 70px 30px; position: relative; }
.neo-body::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 300px at 100% 0%, rgba(196, 18, 31, .35), transparent 70%); }
.neo h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); }
.neo .eyebrow { color: #ff5a64; }
.neo-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 36px; }
.neo-list li { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); color: #fff; font-weight: 500; font-size: .93rem; }
.neo-list img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 10px; padding: 4px; flex-shrink: 0; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px); opacity: .35; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step .step-ico {
  position: relative; width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 22px; display: grid; place-items: center;
  background: #fff; color: var(--brand); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: all .35s var(--ease);
}
.step:hover .step-ico { background: var(--brand); color: #fff; transform: translateY(-4px) rotate(-4deg); box-shadow: 0 16px 30px -12px rgba(196, 18, 31, .6); }
.step .step-ico .ico { width: 28px; height: 28px; }
.step .step-ico::after {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: -10px; right: -12px; font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  background: var(--ink); color: #fff; padding: 3px 7px; border-radius: 999px;
}
.step h3 { font-size: 1rem; margin-bottom: 8px; }
.step p { font-size: .87rem; color: var(--muted); margin: 0; }
.process.dark .step .step-ico { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.process.dark .step:hover .step-ico { background: var(--brand); }
.process.dark .step h3 { color: #fff; }
.process.dark .step p { color: #a9aeb9; }
.process.dark .step .step-ico::after { background: var(--brand); }

/* ---------- Catálogos ---------- */
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.catalog-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.catalog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.catalog-cover { position: relative; aspect-ratio: 1 / 1.1; overflow: hidden; background: #eceef2; perspective: 800px; }
.catalog-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.catalog-card:hover .catalog-cover img { transform: scale(1.04); }
.catalog-cover .pdf-tag { position: absolute; top: 12px; right: 12px; background: var(--brand); color: #fff; font-size: .7rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; }
.catalog-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.catalog-card h3 { font-size: 1.02rem; margin: 0; }
.catalog-card small { color: var(--muted); font-size: .82rem; }
.catalog-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.catalog-card .actions .btn { flex: 1; padding: .62em .7em; font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-aside .help-card { margin-top: 30px; background: var(--ink); color: #b8bcc6; border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; }
.faq-aside .help-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 180px at 100% 0%, rgba(196, 18, 31, .45), transparent 70%); }
.help-card > * { position: relative; }
.help-card h3 { color: #fff; font-size: 1.25rem; }
.help-card .btn { margin-top: 8px; }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 22px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.faq summary .toggle { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex-shrink: 0; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s; }
.faq details[open] summary .toggle { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); color: #fff; }
.faq .answer { padding: 0 22px 22px 76px; color: var(--muted); font-size: .96rem; }
.faq .answer ul { display: grid; gap: 6px; margin-top: 8px; }
.faq .answer li { position: relative; padding-left: 18px; }
.faq .answer li::before { content: ""; position: absolute; left: 0; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.faq .answer strong { color: var(--ink); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 32px; padding: 64px; isolation: isolate;
  background: linear-gradient(120deg, var(--brand) 0%, #8d0a14 100%); color: #ffe3e5;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); }
.cta .cta-ecg { position: absolute; left: 0; right: 0; bottom: 18px; height: 80px; z-index: -1; opacity: .35; }
.cta .cta-ecg path { fill: none; stroke: #fff; stroke-width: 2; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem); margin-bottom: 12px; }
.cta p { margin: 0; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--ink); color: #b8bcc6; padding: 92px 0 100px; isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21, 23, 28, .96) 25%, rgba(21, 23, 28, .55) 100%), radial-gradient(500px 300px at 85% 20%, rgba(196, 18, 31, .45), transparent 70%); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 14px; }
.page-hero p { max-width: 620px; font-size: 1.1rem; margin: 0; }
.page-hero .eyebrow { color: #ff5a64; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; margin-bottom: 20px; color: #8e939e; }
.crumbs a:hover { color: #fff; }
.crumbs .ico { width: 14px; height: 14px; }
.page-hero .hero-wave { color: #fff; height: 50px; }
.page-hero.soft-next .hero-wave { color: var(--bg); }

/* ---------- Servicios (detalle) ---------- */
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 40px 0; }
.svc-row + .svc-row { border-top: 1px solid var(--line); padding-top: 80px; margin-top: 40px; }
.svc-row:nth-child(even) .svc-media { order: 2; }
.svc-media { position: relative; }
.svc-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 1 / .85; object-fit: cover; box-shadow: var(--shadow); }
.svc-media .svc-num { position: absolute; top: -22px; left: -22px; width: 76px; height: 76px; border-radius: 22px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; box-shadow: 0 18px 30px -12px rgba(196, 18, 31, .6); }
.svc-row:nth-child(even) .svc-num { left: auto; right: -22px; }
.svc-body h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
.svc-body .check-list { margin: 22px 0 30px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s; }
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.area .a-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.area .a-ico .ico { width: 24px; height: 24px; }
.area h3 { font-size: 1.05rem; margin-bottom: 6px; }
.area p { font-size: .9rem; color: var(--muted); margin: 0; }
.dark-band { background: var(--ink); color: #b8bcc6; position: relative; overflow: hidden; isolation: isolate; }
.dark-band .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .14; z-index: -2; }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 50% 0%, rgba(196, 18, 31, .3), transparent 70%); }
.dark-band h2 { color: #fff; }
.dark-band .section-head p { color: #a9aeb9; }
.dark-band .eyebrow { color: #ff5a64; }

/* ---------- Nosotros ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mv-card { position: relative; border-radius: var(--radius-lg); padding: 40px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.mv-card.dark { background: var(--ink); color: #b8bcc6; border-color: transparent; }
.mv-card.dark h3 { color: #fff; }
.mv-card .mv-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.mv-card .mv-ico .ico { width: 26px; height: 26px; }
.mv-card h3 { font-size: 1.5rem; }
.mv-card p { font-size: 1.04rem; margin: 0; }
.mv-card .big { position: absolute; right: 24px; bottom: -30px; font-family: var(--font-head); font-weight: 800; font-size: 7rem; color: rgba(36, 39, 46, .05); line-height: 1; pointer-events: none; }
.mv-card.dark .big { color: rgba(255, 255, 255, .05); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { text-align: left; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: all .3s var(--ease); }
.value:hover { background: var(--brand); border-color: var(--brand); color: #ffe3e5; transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(196, 18, 31, .7); }
.value:hover h3 { color: #fff; }
.value:hover .v-ico { background: rgba(255, 255, 255, .15); color: #fff; }
.value .v-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; transition: all .3s; }
.value h3 { font-size: 1.1rem; margin-bottom: 6px; transition: color .3s; }
.value p { font-size: .9rem; margin: 0; }
.brand-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.brand-wall > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); height: 110px; display: grid; place-items: center; padding: 18px; transition: box-shadow .3s, transform .3s; }
.brand-wall > div:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.brand-wall img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .75; transition: all .3s; mix-blend-mode: multiply; }
.brand-wall > div:hover img { filter: none; opacity: 1; }
.brand-wall .word { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #8b919c; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.c-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s; }
a.c-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.c-card .c-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.c-card .c-ico.wa { background: #e5f9ed; color: #12a150; }
.c-card h3 { font-size: 1rem; margin-bottom: 2px; }
.c-card p { margin: 0; font-size: .93rem; color: var(--muted); }
.c-card strong { color: var(--ink); }
.hours { display: grid; gap: 4px; font-size: .9rem; color: var(--muted); }
.hours div { display: flex; justify-content: space-between; gap: 14px; }
.hours span:last-child { color: var(--ink); font-weight: 500; }
.form-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 40px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field label i { color: var(--brand); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s, background .2s, box-shadow .2s; outline: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(196, 18, 31, .1); }
.field .err { font-size: .78rem; color: var(--brand); display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--brand); }
.field.invalid .err { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; align-items: center; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); height: 440px; background: var(--bg); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.25) contrast(1.05); }

/* ---------- Catálogo de productos ---------- */
.shop { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.search-box { position: relative; }
.search-box input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .2s, box-shadow .2s; }
.search-box input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(196, 18, 31, .1); }
.search-box .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.filter-box h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 8px 10px 10px; font-family: var(--font-body); font-weight: 700; }
.cat-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-weight: 500; font-size: .93rem; text-align: left; color: var(--text); transition: background .2s, color .2s; }
.cat-btn:hover { background: var(--bg); color: var(--ink); }
.cat-btn .ico { width: 18px; height: 18px; color: var(--muted); }
.cat-btn .count { margin-left: auto; font-size: .75rem; font-weight: 700; background: var(--bg); color: var(--muted); padding: 2px 8px; border-radius: 999px; }
.cat-btn.active { background: var(--ink); color: #fff; }
.cat-btn.active .ico { color: #ff5a64; }
.cat-btn.active .count { background: rgba(255, 255, 255, .14); color: #fff; }
.subs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.sub-btn { font-size: .84rem; font-weight: 600; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); transition: all .2s; }
.sub-btn:hover { border-color: var(--ink); color: var(--ink); }
.sub-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.shop-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-top h2 { font-size: 1.6rem; margin: 0; }
.shop-top .result-count { color: var(--muted); font-size: .9rem; }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-card.enter { animation: cardIn .45s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty h3 { margin-bottom: 6px; }
.promo-card { border-radius: var(--radius); padding: 26px; background: linear-gradient(150deg, var(--graphite), var(--ink)); color: #b8bcc6; display: flex; flex-direction: column; justify-content: center; gap: 10px; position: relative; overflow: hidden; }
.promo-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 200px at 100% 0%, rgba(196, 18, 31, .5), transparent 70%); }
.promo-card > * { position: relative; }
.promo-card h3 { color: #fff; font-size: 1.2rem; margin: 0; }
.promo-card p { font-size: .9rem; margin: 0 0 6px; }
.promo-card .btn { align-self: flex-start; }
.mobile-filter-btn { display: none; }

/* ---------- Modal de producto ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 24px; width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 40px); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal::backdrop { background: rgba(10, 12, 16, .62); backdrop-filter: blur(4px); }
dialog.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.modal-inner { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { background: radial-gradient(circle at 50% 40%, #fff, #eef0f3); display: grid; place-items: center; padding: 40px; min-height: 420px; }
.modal-media img { max-height: 400px; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.modal-body { padding: 44px 40px 36px; display: flex; flex-direction: column; overflow-y: auto; max-height: calc(100vh - 40px); }
.modal-body h2 { font-size: 1.7rem; margin-bottom: 8px; }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.modal-meta .chip { background: var(--bg); }
.modal-meta .chip.red { background: var(--brand-50); color: var(--brand); }
.modal-body .desc { color: var(--muted); font-size: .97rem; }
.modal-body .check-list { margin: 6px 0 24px; gap: 10px; font-size: .93rem; }
.modal-actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; background: #fff; box-shadow: var(--shadow-sm); }

/* ---------- Panel de cotización ---------- */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; pointer-events: none; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(10, 12, 16, .55); opacity: 0; transition: opacity .35s; }
.drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 100vw); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer.open::before { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.2rem; }
.drawer-head small { display: block; color: var(--muted); font-size: .82rem; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.q-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.q-item img { width: 64px; height: 64px; object-fit: contain; background: var(--bg); border-radius: 12px; padding: 6px; mix-blend-mode: multiply; }
.q-item h4 { font-size: .92rem; margin: 0 0 2px; line-height: 1.3; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.q-item small { color: var(--muted); font-size: .8rem; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; margin-top: 6px; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink); }
.qty .ico { width: 14px; height: 14px; }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: .88rem; }
.q-remove { color: var(--muted); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.q-remove:hover { background: var(--brand-50); color: var(--brand); }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.drawer-empty .ico { width: 46px; height: 46px; color: var(--line); margin: 0 auto 12px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--bg); }
.drawer-foot p { margin: 0 0 4px; font-size: .84rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; display: flex; gap: 10px; align-items: center; font-size: .9rem; box-shadow: var(--shadow-lg); transition: transform .4s var(--ease), opacity .3s, visibility .3s; max-width: calc(100vw - 32px); opacity: 0; visibility: hidden; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast .ico { color: #4ade80; }
.toast button { color: #ff7b84; font-weight: 600; margin-left: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #9ea3ae; position: relative; overflow: hidden; isolation: isolate; font-size: .93rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 0% 0%, rgba(196, 18, 31, .18), transparent 70%); }
.footer-main { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.1fr; gap: 44px; padding-top: 80px; padding-bottom: 56px; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; font-family: var(--font-body); font-weight: 700; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s, transform .2s; }
.footer-links a:hover { color: #fff; transform: translateX(3px); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .ico { color: var(--brand); margin-top: 4px; }
.footer-contact a:hover { color: #fff; }
.site-footer .hours span:last-child { color: #e2e4e9; }
.site-footer .hours div { border-bottom: 1px dashed rgba(255, 255, 255, .08); padding-bottom: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .84rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-ecg { position: absolute; left: 0; right: 0; bottom: 64px; height: 60px; z-index: -1; opacity: .08; }
.footer-ecg path { fill: none; stroke: #fff; stroke-width: 2; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .7);
  transition: transform .3s var(--ease);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ring 2.2s infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float .wa-tip { position: absolute; right: 72px; white-space: nowrap; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateX(10px); transition: all .3s var(--ease); pointer-events: none; }
.wa-float:hover .wa-tip { opacity: 1; transform: none; }
.to-top { position: fixed; right: 30px; bottom: 96px; z-index: 150; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .ico { transform: rotate(-90deg); }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .nav a { padding: 10px 12px; }
  .brand-tag { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-row { grid-auto-columns: calc((100% - 2 * 22px) / 3); }
  .process { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .process::before { display: none; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 80px; }
  .section { padding: 84px 0; }
  .nav, .header-actions .btn-cta { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: grid; }
  .topbar-info .hide-md { display: none; }
  .hero { padding: 48px 0 100px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 440px; }
  .hero-stage { inset: 20px 0 20px 0; }
  .about-grid, .faq-grid, .contact-grid, .svc-row { grid-template-columns: 1fr; gap: 44px; }
  .svc-row:nth-child(even) .svc-media { order: 0; }
  .faq-aside { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .cat-card, .cat-card:nth-child(n) { grid-column: span 12; }
  .neo { grid-template-columns: 1fr; }
  .neo-media { min-height: 300px; }
  .neo-media::after { background: linear-gradient(180deg, transparent 40%, var(--ink) 100%); }
  .neo-body { padding: 10px 32px 48px; }
  .cta { grid-template-columns: 1fr; padding: 48px 32px; }
  .cta-actions { justify-content: flex-start; }
  .mv-grid { grid-template-columns: 1fr; }
  .brand-wall { grid-template-columns: repeat(3, 1fr); }
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-box { display: flex; gap: 8px; overflow-x: auto; padding: 8px; scrollbar-width: none; }
  .filter-box::-webkit-scrollbar { display: none; }
  .filter-box h4 { display: none; }
  .cat-btn { width: auto; white-space: nowrap; flex-shrink: 0; }
  #cat-list { display: flex; gap: 6px; }
  .filters .help-card { display: none; }
  .svc-media img { aspect-ratio: 16 / 10; }
  .modal-inner { grid-template-columns: 1fr; }
  .modal-media { min-height: 260px; padding: 30px; }
  .modal-media img { max-height: 240px; }
  .modal-body { max-height: none; padding: 28px 24px; }
  dialog.modal { overflow-y: auto; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .section { padding: 68px 0; }
  .topbar { display: none; }
  .brand img { height: 57px; }
  .hero h1 .hl { white-space: normal; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-visual { min-height: 340px; }
  .float-card.fc-1 { left: 6px; top: 0; }
  .float-card.fc-2 { right: 6px; bottom: 34px; }
  .float-card { padding: 9px 12px; font-size: .74rem; }
  .float-card .fc-ico { width: 32px; height: 32px; }
  .hero-device.side { width: 40%; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .services-grid, .catalog-grid, .products-grid, .values, .areas { grid-template-columns: 1fr; }
  .products-row { grid-auto-columns: 78%; }
  .process { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 18px; }
  .about-media { padding: 0 30px 40px 0; }
  .about-badge { left: -6px; bottom: 60px; padding: 14px 16px; }
  .cat-card { padding: 26px; min-height: 0; }
  .cat-card .cat-img { position: static; order: 1; width: 72%; max-width: 260px; align-self: center; margin: 4px auto 18px; }
  .cat-card .link-arrow { order: 2; }
  .cat-card:hover .cat-img { transform: none; }
  .cta .cta-ecg { display: none; }
  .neo-list { grid-template-columns: 1fr; }
  .neo-body { padding: 6px 22px 40px; }
  .cta { padding: 40px 22px; border-radius: 24px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .faq .answer { padding: 0 20px 20px; }
  .faq summary { padding: 16px; font-size: .95rem; }
  .form-card { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; padding-top: 60px; padding-bottom: 40px; }
  .brand-wall { grid-template-columns: repeat(2, 1fr); }
  .mv-card { padding: 30px 24px; }
  .svc-media .svc-num, .svc-row:nth-child(even) .svc-num { width: 60px; height: 60px; font-size: 1.2rem; top: -14px; left: 14px; right: auto; }
  .page-hero { padding: 64px 0 80px; }
  .modal-actions { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .site-footer .social a { width: 42px; height: 42px; }
  .site-footer .social .ico { width: 17px; height: 17px; }
  .pill { font-size: .76rem; }
  .to-top { right: 22px; bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-ecg path { stroke-dashoffset: 0; }
}
.promo-card > .ico { width: 34px; height: 34px; color: #ff5a64; }
.cat-card:not(.dark) .cat-img { mix-blend-mode: multiply; filter: none; }
