/* ==========================================================================
   MedeaTec — sistema de diseño 2026
   Tipografía: Manrope (display) + Inter (texto)
   Colores tomados del logo: azul marino, degradé naranja y cian
   ========================================================================== */

:root {
  --navy-950: #061a36;
  --navy-900: #0a2550;
  --navy-800: #0d3474;
  --navy-700: #0f428c;   /* azul del logotipo */
  --navy-600: #1958b0;
  --cyan-500: #00b3c9;
  --cyan-400: #2fd0e0;
  --orange-500: #f26b0f;
  --orange-400: #ff8c1a;
  --amber-400: #ffc21a;

  --ink: #0b1b33;
  --ink-2: #3c4a5e;
  --ink-3: #6b778a;
  --line: #e3e8ef;
  --line-2: #d3dae4;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-tint: #eef3fa;

  --grad-brand: linear-gradient(120deg, var(--amber-400) 0%, var(--orange-500) 45%, var(--navy-700) 75%, var(--cyan-500) 100%);
  --grad-warm: linear-gradient(120deg, var(--amber-400), var(--orange-500));
  --grad-cool: linear-gradient(120deg, var(--navy-600), var(--cyan-500));

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 51, .06), 0 1px 3px rgba(11, 27, 51, .05);
  --shadow: 0 10px 30px -12px rgba(11, 27, 51, .18);
  --shadow-lg: 0 30px 60px -20px rgba(6, 26, 54, .35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::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: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-500); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
strong, b { color: var(--ink); font-weight: 600; }
::selection { background: var(--orange-400); color: #fff; }
:focus-visible { outline: 2px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section:not(.section-soft):not(.section-tint):not(.section-dark) + .section:not(.section-soft):not(.section-tint):not(.section-dark) { padding-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.text-gradient { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Eyebrow + section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-warm); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p, .lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-3); line-height: 1.6; }
.lead { color: var(--ink-2); font-weight: 500; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(242, 107, 15, .6); }
.btn-primary:hover { background: #e25e05; color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -10px rgba(242, 107, 15, .7); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--navy-700); }
.link-arrow .arrow { transition: transform .25s var(--ease); }
.link-arrow:hover .arrow, a:hover .link-arrow .arrow { transform: translateX(4px); }
.arrow { width: 16px; height: 16px; flex: none; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 14px var(--gutter);
  transition: padding .3s var(--ease);
}
.nav-shell {
  max-width: calc(var(--container) + 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 12px 10px 22px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 999px;
  box-shadow: 0 10px 30px -18px rgba(6, 26, 54, .45);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { padding-top: 10px; }
.site-header.scrolled .nav-shell { background: rgba(255,255,255,.94); box-shadow: 0 12px 34px -16px rgba(6, 26, 54, .35); border-color: var(--line); }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-dd > button {
  font-family: var(--font-display); font-weight: 600; font-size: .93rem; color: var(--ink);
  padding: 10px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s;
}
.nav > a:hover, .nav-dd > button:hover, .nav-dd.open > button { background: var(--bg-soft); color: var(--ink); }
.nav > a.active, .nav-dd.active > button { color: var(--orange-500); }
.nav-dd { position: relative; }
.nav-dd > button svg { width: 14px; height: 14px; transition: transform .25s; }
.nav-dd.open > button svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  min-width: 320px; padding: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.dd-menu::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.nav-dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); }
.dd-menu a:hover { background: var(--bg-soft); color: var(--ink); }
.dd-menu a .ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: var(--bg-tint); color: var(--navy-700); font-size: 18px;
}
.dd-menu a:hover .ico { background: var(--navy-700); color: #fff; }
.dd-menu a strong { display: block; font-family: var(--font-display); font-size: .93rem; line-height: 1.3; }
.dd-menu a small { display: block; font-size: .8rem; color: var(--ink-3); line-height: 1.35; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang {
  font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  color: var(--ink-3); padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line);
}
.lang:hover { color: var(--ink); border-color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 999px; border: 0; background: var(--bg-soft); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 84px 12px auto 12px; max-height: calc(100dvh - 100px); overflow: auto;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a, .nav-dd > button { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 1rem; }
  .dd-menu { position: static; translate: none; transform: none; min-width: 0; box-shadow: none; border: 0; padding: 0 0 8px 8px; display: none; opacity: 1; visibility: visible; }
  .nav-dd.open .dd-menu { display: block; }
  .nav .nav-cta { display: flex !important; margin-top: 8px; justify-content: center; }
  .nav > a.nav-cta, .nav > a.nav-cta:hover { background: var(--orange-500); color: #fff; }
}
@media (min-width: 1101px) { .nav .nav-cta { display: none; } }
@media (max-width: 520px) { .brand img { height: 32px; } .nav-shell { padding-left: 16px; } }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-950); color: #c9d5e6;
  padding: clamp(150px, 18vw, 200px) 0 clamp(80px, 9vw, 120px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: luminosity; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(0, 179, 201, .35), transparent 60%),
    radial-gradient(50% 55% at 10% 90%, rgba(242, 107, 15, .28), transparent 60%),
    linear-gradient(180deg, rgba(6,26,54,.55), rgba(6,26,54,.92));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  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: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lead { color: #b8c6da; max-width: 52ch; margin-top: 24px; font-weight: 400; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .hero-actions--mobile { display: none; }
@media (max-width: 640px) {
  .hero .hero-actions--top { display: none; }
  .hero .hero-actions--mobile { display: flex; justify-content: center; margin-top: 40px; }
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill-news {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: .88rem; font-weight: 500; backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s;
}
.pill-news:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; }
.pill-news .tag { background: var(--grad-warm); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.hero-card {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
}
.hero-card img { border-radius: var(--radius); }
.hero-card .hc-label { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: #fff; font-family: var(--font-display); font-weight: 700; }
.hero-card .hc-label > span { color: #9fb2cc; font-weight: 500; font-size: .85rem; font-family: var(--font-body); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid rgba(255,255,255,.12); }
.hero-stats div { padding: 24px 24px 0; text-align: center; }
.hero-stats div + div { border-left: 1px solid rgba(255,255,255,.12); }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); color: #fff; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats span { font-size: .9rem; color: #94a7c1; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(3) { border-left: 0; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-950); color: #b8c6da;
  padding: clamp(150px, 16vw, 190px) 0 clamp(64px, 8vw, 96px);
}
.page-hero .hero-bg img { opacity: .35; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 18ch; }
.page-hero .lead { color: #b8c6da; font-weight: 400; max-width: 60ch; margin: 20px 0 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #8fa3bf; margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a { color: #c9d5e6; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero .eyebrow { color: var(--orange-400); }

/* ---------- Logo marquee ---------- */
.logos { padding: 44px 0; border-bottom: 1px solid var(--line); background: #fff; }
.logos-label { text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 60s linear infinite; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 46px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: opacity .3s, filter .3s; }
.marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  color: var(--ink-2);
}
.card h3 { margin-top: 4px; }
.card p { color: var(--ink-3); font-size: .98rem; }
.card p:last-child { margin-bottom: 0; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink-2); }
.card .link-arrow { margin-top: auto; padding-top: 12px; }
.card-soft { background: var(--bg-soft); border-color: transparent; }
.icon-tile {
  width: 52px; height: 52px; display: grid; place-items: center; flex: none;
  border-radius: 14px; background: var(--bg-tint); color: var(--navy-700);
  font-size: 24px; margin-bottom: 22px;
  transition: background .3s, color .3s;
}
a.card:hover .icon-tile { background: var(--navy-700); color: #fff; }
.icon-tile.warm { background: #fff1e6; color: var(--orange-500); }
.card-num { position: absolute; top: 28px; right: 30px; font-family: var(--font-display); font-weight: 800; color: var(--line-2); font-size: .95rem; }

/* Bento: tarjeta destacada */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento > * { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }
@media (max-width: 960px) { .bento > *, .bento > .span-3, .bento > .span-4 { grid-column: span 3; } }
@media (max-width: 640px) { .bento > *, .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: span 6; } }

.card-dark {
  background: var(--navy-900); border-color: var(--navy-900); color: #b8c6da; overflow: hidden; isolation: isolate;
}
.card-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 80% at 100% 0%, rgba(0,179,201,.35), transparent 60%), radial-gradient(60% 70% at 0% 100%, rgba(242,107,15,.22), transparent 60%);
}
.card-dark h3, .card-dark h2, .card-dark strong { color: #fff; }
.card-dark p { color: #b8c6da; }
.card-dark .icon-tile { background: rgba(255,255,255,.1); color: #fff; }
.card-dark .link-arrow { color: #fff; }

/* ---------- Check list ---------- */
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink-2); line-height: 1.55; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f428c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.checklist.cols-2 { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
@media (max-width: 640px) { .checklist.cols-2 { grid-template-columns: 1fr; } }
.card-dark .checklist li { color: #c9d5e6; }
.card-dark .checklist li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* Lista con íconos (usa los íconos linearicons existentes) */
.ilist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ilist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.ilist li > [class^="icon-"], .ilist li > [class*=" icon-"] {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--bg-tint); color: var(--navy-700); font-size: 17px; margin-top: -4px;
}

/* ---------- Split (texto + imagen) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.reverse > .split-media { order: -1; }
.split.wide-text { grid-template-columns: 1.2fr .8fr; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: #fff; }
.split-media.contain img { object-fit: contain; padding: 18px; border: 1px solid var(--line); box-shadow: none; }
.split-media::after {
  content: ""; position: absolute; z-index: -1; inset: auto -14px -14px auto; width: 60%; height: 60%;
  border-radius: var(--radius-lg); background: var(--grad-warm); opacity: .14;
}
.split-media.no-deco::after { display: none; }
.split h2 { margin-bottom: 16px; }
.split .lead { margin-bottom: 20px; }
@media (max-width: 900px) {
  .split, .split.wide-text { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
}

/* Feature blocks: bloques alternados dentro de una sección */
.feature-stack { display: grid; gap: clamp(72px, 10vw, 128px); }
.norms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
}
.chip.warm { background: #fff4ea; border-color: #ffdcc0; color: #b04c05; }

/* ---------- Product spotlight ---------- */
.spotlight {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; background: var(--navy-950); color: #b8c6da;
  padding: clamp(32px, 5vw, 64px);
}
.spotlight::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 100% 0%, rgba(0,179,201,.35), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(242,107,15,.25), transparent 60%);
}
.spotlight::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.spotlight h2, .spotlight h3, .spotlight strong { color: #fff; }
.spotlight .lead, .spotlight p { color: #b8c6da; }
.spotlight .eyebrow { color: var(--orange-400); }
.spotlight .ilist li { color: #d5dfec; }
.spotlight .ilist li > [class^="icon-"] { background: rgba(255,255,255,.1); color: #fff; }
.spotlight .chip { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #d5dfec; }
.spotlight .split-media img { box-shadow: var(--shadow-lg); }
.spotlight .split-media::after { display: none; }

.hero-stats strong { white-space: nowrap; }
.hero-stats strong small { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-400); line-height: 1; margin-bottom: 4px; }
.hero-stats div:has(small) { margin-top: -18px; }

/* ---------- Dark section ---------- */
.section-dark { background: var(--navy-950); color: #b8c6da; position: relative; overflow: hidden; isolation: isolate; }
.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 60% at 90% 10%, rgba(0,179,201,.22), transparent 60%), radial-gradient(40% 50% at 5% 95%, rgba(242,107,15,.18), transparent 60%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p, .section-dark p { color: #a9b9cf; }
.section-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: #a9b9cf; }
.section-dark .icon-tile { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Client grid ---------- */
.client-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.client {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.client:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.client-logo { aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 22px 28px; }
.client-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.client-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-soft); }
.client-meta strong { font-family: var(--font-display); font-size: .92rem; line-height: 1.3; }
.client-meta span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); background: #fff; border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 960px) { .client-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .client-grid { grid-template-columns: repeat(2, 1fr); } .client-meta { flex-direction: column; align-items: flex-start; } }

/* ---------- Contact ---------- */
.contact-card { display: flex; flex-direction: column; gap: 4px; }
.contact-card .label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contact-card .value { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-card .sub { color: var(--ink-3); font-size: .95rem; }

/* ---------- Article / prose ---------- */
.prose { max-width: 760px; }
.prose p { font-size: 1.06rem; color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.8em; display: flex; align-items: center; gap: 12px; }
.prose h3 [class^="icon-"] { color: var(--orange-500); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(15,66,140,.3); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; }
.page-hero .meta-row { color: #9fb2cc; }

/* News card */
.news-card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; padding: 0; }
.news-card .news-media { overflow: hidden; background: var(--bg-soft); }
.news-card .news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.03); }
.news-card .news-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
@media (max-width: 860px) { .news-card { grid-template-columns: 1fr; } }

/* Policy blocks */
.policy { display: grid; grid-template-columns: 280px 1fr; gap: clamp(28px, 5vw, 72px); padding-block: 48px; border-top: 1px solid var(--line); }
.policy:first-child { border-top: 0; padding-top: 0; }
.policy-side .badge-iso { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--bg-tint); color: var(--navy-700); font-family: var(--font-display); font-weight: 800; font-size: .95rem; }
.policy-side .date { margin-top: 14px; font-size: .88rem; color: var(--ink-3); }
.numbered { list-style: none; padding: 0; margin: 0; counter-reset: n; display: grid; gap: 18px; }
.numbered li { counter-increment: n; position: relative; padding-left: 52px; }
.numbered li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 0;
  font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--orange-500);
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #fff4ea;
}
.numbered li strong { display: block; margin-bottom: 2px; }
@media (max-width: 860px) { .policy { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 12px 16px; font-size: .88rem; color: var(--ink-3); }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: s; }
.step { counter-increment: s; position: relative; padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 14px; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: clamp(40px, 6vw, 72px);
  background: var(--navy-900); color: #b8c6da;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 120% at 100% 50%, rgba(242,107,15,.45), transparent 60%), radial-gradient(40% 80% at 0% 0%, rgba(0,179,201,.3), transparent 60%);
}
.cta-band h2 { color: #fff; margin: 0 0 10px; max-width: 20ch; }
.cta-band p { margin: 0; color: #b8c6da; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #8fa3bf; padding: clamp(64px, 8vw, 96px) 0 32px; margin-top: var(--section-y); position: relative; overflow: hidden; }
.site-footer.no-gap { margin-top: 0; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad-brand); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand .logo-chip { display: inline-flex; padding: 12px 16px; background: #fff; border-radius: 14px; }
.footer-brand .logo-chip img { height: 34px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 34ch; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #a9b9cf; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; font-size: 16px; }
.socials a:hover { background: var(--orange-500); border-color: var(--orange-500); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-bottom a { color: #a9b9cf; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy-900); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange-500); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: .35s; }
.js .reveal-stagger.in > *:nth-child(n+7) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}

/* Utilidades */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }

/* Spotlight con encabezado a lo ancho y cuerpo en dos columnas */
.spotlight-head { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: clamp(32px, 6vw, 88px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.spotlight-head h2 { margin: 0; }
.spotlight-head .lead { margin: 0; }
.spotlight-body { grid-template-columns: 1.2fr .8fr; }
@media (max-width: 900px) {
  .spotlight-head { grid-template-columns: 1fr; row-gap: 16px; }
  .spotlight-body { grid-template-columns: 1fr; }
}

/* Diagramas SVG en línea */
.split-media svg.diagram { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Texto dorado (premios) */
.hero-card .hc-label strong { color: #fff; font-weight: 700; }
.gold { font-weight: 800; background: linear-gradient(180deg, #ffe08a 0%, #f5c242 45%, #c9921a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
