/* Insight4H — Home
 * Editorial-científico × pharma luxury × blueprint × data
 * Light paper, ink, teal heritage, product colors as accents only.
 */

:root {
  /* ===== Tipografía ===== */
  --ff-display: "Instrument Serif", "Source Serif 4", Georgia, serif;
  --ff-sans: "IBM Plex Sans", "Public Sans", system-ui, sans-serif;
  /* Solo 2 tipografías (petición cliente): se retira la mono "máquina de escribir".
     Las clases .mono/.eyebrow conservan mayúsculas + tracking, pero en la sans. */
  --ff-mono: var(--ff-sans);

  /* Escalas — modular, ratio ~1.33 */
  --t-step-mono: 11px;
  --t-step-eyebrow: 12px;
  --t-step-caption: 13px;
  --t-step-body: 17px;
  --t-step-lead: 21px;
  --t-step-h3: 28px;
  --t-step-h2: 44px;
  --t-step-h1: 84px;
  --t-step-display: 120px;

  /* ===== Color (light = papel editorial) ===== */
  --c-paper: oklch(0.985 0.005 85);          /* warm paper */
  --c-paper-2: oklch(0.97 0.006 85);         /* card bg */
  --c-paper-3: oklch(0.94 0.008 85);         /* deeper paper */
  --c-rule: oklch(0.86 0.01 85);             /* hairline */
  --c-rule-soft: oklch(0.92 0.008 85);

  --c-ink: oklch(0.18 0.012 240);            /* near-black, slight cool */
  --c-ink-2: oklch(0.32 0.012 240);          /* secondary text */
  --c-ink-3: oklch(0.5 0.012 240);           /* tertiary / captions */
  --c-ink-4: oklch(0.65 0.01 240);           /* faintest */

  --c-teal: #1AABB8;
  --c-theorema: #00CAB7;            /* color de marca oficial Theorema4H (brandbook) */
  --c-teal-deep: oklch(0.55 0.105 195);
  --c-teal-soft: oklch(0.92 0.04 195);

  /* Producto */
  --c-cost: #E85940;        /* coral */
  --c-market: #2A6FDB;      /* azul */
  --c-digital: #6B5BA8;     /* púrpura */
  --c-social: #D4A93C;      /* dorado */

  /* layout */
  --max: 1440px;
  --gutter: clamp(24px, 4vw, 56px);
  --col-gap: 24px;
  --rule-w: 1px;
}

[data-theme="dark"] {
  --c-paper: oklch(0.155 0.008 240);
  --c-paper-2: oklch(0.19 0.01 240);
  --c-paper-3: oklch(0.23 0.012 240);
  --c-rule: oklch(0.32 0.012 240);
  --c-rule-soft: oklch(0.26 0.012 240);

  --c-ink: oklch(0.96 0.006 85);
  --c-ink-2: oklch(0.82 0.008 85);
  --c-ink-3: oklch(0.62 0.01 85);
  --c-ink-4: oklch(0.46 0.01 85);

  --c-teal-soft: oklch(0.3 0.06 195);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--ff-sans);
  font-size: var(--t-step-body);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-feature-settings: "ss01", "cv11";
  transition: background 250ms ease, color 250ms ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }

/* ===== Tipografía utility ===== */
.mono {
  font-family: var(--ff-mono);
  font-size: var(--t-step-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 400;
}
.eyebrow {
  font-family: var(--ff-mono);
  font-size: var(--t-step-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  font-weight: 500;
}
.eyebrow .dot { color: var(--c-teal); margin: 0 6px; }
.serif { font-family: var(--ff-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: var(--t-step-h1); }
h2 { font-size: var(--t-step-h2); line-height: 1.04; }
h3 { font-size: var(--t-step-h3); line-height: 1.15; }

p { margin: 0; }

/* ===== Layout ===== */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule { height: var(--rule-w); background: var(--c-rule); border: 0; margin: 0; }
.rule-soft { background: var(--c-rule-soft); }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease, backdrop-filter 220ms ease, color 220ms ease;
}
.header.is-scrolled {
  background: color-mix(in oklch, var(--c-paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-rule-soft);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 92px;
}
.header__brand { display: flex; align-items: center; gap: 10px; }
.header__brand img {
  height: 72px;
  width: auto;
  /* white version over dark hero; original color when scrolled past */
  filter: brightness(0) invert(1);
  transition: filter 220ms ease;
}
.header.is-scrolled .header__brand img { filter: none; }

/* Nav and CTA color states */
.header .nav__item { color: rgba(255,255,255,0.75); }
.header .nav__item:hover { color: #fff; }
.header .nav__num { color: rgba(255,255,255,0.45); }
.header .nav__caret { color: rgba(255,255,255,0.45); }
.header.is-scrolled .nav__item { color: var(--c-ink-2); }
.header.is-scrolled .nav__item:hover { color: var(--c-ink); }
.header.is-scrolled .nav__num { color: var(--c-ink-4); }
.header.is-scrolled .nav__caret { color: var(--c-ink-4); }

.header .header__cta .mono { color: rgba(255,255,255,0.55); }
.header.is-scrolled .header__cta .mono { color: var(--c-ink-3); }
.header__brand-text {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  line-height: 1.1;
  padding-left: 10px;
  border-left: 1px solid var(--c-rule);
}
.header__brand-text strong { color: var(--c-ink); font-weight: 500; display: block; }

.nav { display: flex; gap: 28px; justify-content: center; }
.nav__item {
  position: relative;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--c-ink-2);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.nav__item:hover { color: var(--c-ink); }
.nav__num {
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--c-ink-4);
  letter-spacing: 0.06em;
}
.nav__caret { font-size: 10px; color: var(--c-ink-4); }
.submenu {
  position: absolute;
  top: 100%; left: -16px;
  background: var(--c-paper);
  border: 1px solid var(--c-rule);
  padding: 10px;
  min-width: 320px;
  opacity: 0; pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
}
.nav__item:hover .submenu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.submenu__row {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 15px;
  color: var(--c-ink) !important;
  font-weight: 400;
  white-space: nowrap;
}
.submenu__row:hover { background: var(--c-paper-2); color: var(--c-ink); }
.submenu__row .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.submenu__row .mono {
  color: var(--c-ink-3) !important;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header__cta { display: flex; gap: 12px; align-items: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-family: var(--ff-sans);
  font-size: 14px;
  letter-spacing: 0;
  border: 1px solid transparent;
  border-radius: 999px;          /* botones redondeados (petición cliente) */
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  line-height: 1;
}
.btn--primary {
  background: var(--c-teal);
  color: #ffffff;
}
.btn--primary:hover { background: var(--c-teal-deep); }
.btn--outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--outline:hover { background: var(--c-ink); color: var(--c-paper); }
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  padding: 12px 0;
  position: relative;
}
.btn--ghost::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  height: 1px;
  background: var(--c-ink);
  transform-origin: left;
  transition: transform 200ms ease;
}
.btn--ghost:hover::after { transform: scaleX(0.5); }
.btn .arrow {
  font-family: var(--ff-mono);
  font-size: 14px;
}

/* ===== Hero (dark, animated) ===== */
.hero {
  position: relative;
  padding: clamp(20px, 3vw, 40px) 0 clamp(48px, 6vw, 80px);
  background: #0a0d14;
  color: #f5efe6;
  /* full-bleed: rompe el .page padre y ocupa el viewport entero */
  margin: 0 calc(-1 * var(--gutter));
  /* pull hero behind transparent header */
  margin-top: -92px;
  padding-top: calc(92px + clamp(20px, 3vw, 40px));
  overflow: hidden;
  isolation: isolate;
}
.hero::before { /* hairline bottom for editorial frame */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: rgba(255,255,255,0.12);
  z-index: 3;
}

/* Background animation layers */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.55 0 0 0 0 0.5 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none;
}
.hero-bg__binary {
  position: absolute;
  top: 35%;
  width: 18%;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(140, 220, 230, 0.35);
  letter-spacing: 0.18em;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hero-bg__binary--l { left: 0.5%; align-items: flex-start; }
.hero-bg__binary--r { right: 0.5%; align-items: flex-end; }
.hero-bg__binary span {
  display: block;
  opacity: 0;
  animation: heroBinary 6s ease-in-out infinite;
}
@keyframes heroBinary {
  0%, 100% { opacity: 0; transform: translateX(0); }
  20% { opacity: 0.5; }
  50% { opacity: 0.7; transform: translateX(4px); }
  80% { opacity: 0.4; }
}

/* Hero content above background — alineado con .page (mismo max-width + mismo gutter) */
.hero > .hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.hero__topline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  color: rgba(255,255,255,0.55);
}
.hero__topline .line { height: 1px; background: rgba(255,255,255,0.15); }

.hero__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
  min-height: 38vh;
}
.hero__head h1 {
  font-size: clamp(28px, 3.8vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin-top: 0;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero__head h1 .serif {
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.hero__head h1 .em {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  color: #6ec9d6;
  letter-spacing: -0.025em;
}
.hero__sub {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245, 239, 230, 0.78);
  letter-spacing: -0.005em;
}
.hero .eyebrow { color: rgba(245, 239, 230, 0.7); }
.hero .eyebrow .dot { color: #6ec9d6; }
.hero__cta-row {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.hero .btn--primary {
  background: var(--c-teal);
  color: #ffffff;
}
.hero .btn--primary:hover { background: #58c0cd; color: #fff; }
.hero .btn--ghost { color: #ffffff; }
.hero .btn--ghost::after { background: #ffffff; }

.hero__figure {
  position: relative;
  border: 1px solid var(--c-rule);
  background:
    radial-gradient(80% 60% at 50% 40%, var(--c-paper-2), var(--c-paper) 75%),
    repeating-linear-gradient(45deg, transparent 0 12px, color-mix(in oklch, var(--c-rule-soft) 60%, transparent) 12px 13px);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.hero__figure-tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  display: flex;
  justify-content: space-between;
}
.hero__figure-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  pointer-events: none;
}
.hero__figure-center .placeholder-tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.hero__figure-center .placeholder-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 32px;
  color: var(--c-ink-2);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-top: 8px;
}
.hero__figure-corners::before,
.hero__figure-corners::after,
.hero__figure-corners > span::before,
.hero__figure-corners > span::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--c-ink);
}
.hero__figure-corners::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.hero__figure-corners::after { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.hero__figure-corners > span::before { bottom: 8px; left: 8px; border-right: 0; border-top: 0; position: absolute; }
.hero__figure-corners > span::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; position: absolute; }
.hero__figure-corners > span { position: absolute; inset: 0; pointer-events: none; }

.hero__marginalia {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__marginalia .mono { color: rgba(255,255,255,0.55); display: block; margin-bottom: 6px; }
.hero__marginalia .num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-teal);
}
.hero__marginalia .label {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  margin-top: 6px;
  max-width: 28ch;
}

/* ===== Section frame ===== */
.section { padding-block: clamp(44px, 6vw, 80px); position: relative; }   /* solo vertical: el gutter lateral lo da .page */
.section-head {
  display: grid;
  grid-template-columns: 8fr 3fr;   /* título | nota lateral (kicker eliminado) */
  gap: 24px 48px;
  align-items: baseline;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--c-rule);
}
.section-head .mono { color: var(--c-ink-3); }
.section-head h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  letter-spacing: -0.025em;
  font-weight: 300;
}
.section-head h2 .serif { font-weight: 400; }
.section-head .aside {
  font-size: 14px;
  color: var(--c-ink-3);
  line-height: 1.5;
}

/* ===== Origen Theorema → Insight ===== */

/* Accent: one teal word per heading to break the flatness */
.section-head h2 .accent,
.equipo__text h2 .accent,
.cta__head h2 .accent {
  color: var(--c-teal);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.section-head .aside .accent { color: var(--c-teal); font-weight: 500; }

/* Diptych: dark plate that sits inside the section, FULL-BLEED across viewport */
.origin--plate {
  position: relative;
  margin: 28px 0 0;
  padding: 52px 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(60% 80% at 15% 50%, rgba(110, 201, 214, 0.10), transparent 60%),
    radial-gradient(50% 70% at 85% 30%, rgba(110, 201, 214, 0.08), transparent 60%),
    #0a0d14;
  color: #f5efe6;
  overflow: hidden;
  isolation: isolate;
}
.origin--plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
}
.origin--plate::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 0;
}

.origin--plate > .page {
  position: relative;
  z-index: 1;
}

.origin__grid {
  display: grid;
  grid-template-columns: 5fr 1fr 5fr;
  gap: 24px;
  align-items: stretch;
}

.origin__card {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  position: relative;
  border: 1px solid transparent;
  transition: transform 240ms ease, border-color 240ms ease;
  overflow: hidden;
}
.origin__card-inner {
  position: relative;
  z-index: 1;
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.wave-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.origin__card--dark {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.10);
  color: #f5efe6;
}
.origin__card--dark:hover { border-color: rgba(255,255,255,0.22); }
.origin__card--teal {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0) 60%),
    var(--c-teal);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 24px 60px -20px rgba(26, 171, 184, 0.45);
}
.origin__card--teal:hover { transform: translateY(-2px); }

.origin__card .mono { color: rgba(255,255,255,0.55); margin-bottom: 22px; }
.origin__card--teal .mono { color: rgba(255,255,255,0.78); }

.origin__card .title {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-style: normal;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.origin__card .title b {
  font-style: normal;
  font-family: var(--ff-sans);
  font-weight: 300;
  letter-spacing: -0.03em;
}
.origin__card--dark .title b::after {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--c-teal);
  border-radius: 50%;
  margin-left: 12px;
  vertical-align: middle;
  transform: translateY(-12px);
}

.origin__card .body {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.78);
  margin-top: 22px;
  flex: 1;
  max-width: 44ch;
}
.origin__card--teal .body { color: rgba(255, 255, 255, 0.86); }
.origin__card .body .accent {
  color: #ffffff;            /* sin subrayado (petición cliente) */
}
.origin__card--teal .body .accent { color: #fff; }

.origin__card .foot { margin-top: 22px; }
.origin__card .foot a {
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  color: var(--c-teal);
}
.origin__card--teal .foot a { color: #fff; }

.origin__pivot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  padding: 12px 0;
}
.origin__pivot .mono { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.2em; font-size: 10px; }
.origin__pivot .gear {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(110, 201, 214, 0.5);
  position: relative;
  margin: 14px 0;
  background:
    radial-gradient(circle at center, rgba(110, 201, 214, 0.35), transparent 70%);
  box-shadow: 0 0 24px rgba(110, 201, 214, 0.35);
}
.origin__pivot .gear::after {
  content: "→";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--c-teal);
  font-family: var(--ff-mono);
  font-size: 16px;
}
.origin__pivot::before {
  content: "";
  position: absolute;
  top: 32px; bottom: 32px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(110, 201, 214, 0.4), transparent);
  left: 50%;
}

/* ===== Iconos rows (ámbitos) ===== */
.icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.icons__cell {
  position: relative;
  padding: 24px 22px 28px;
  background: var(--c-teal);
  color: #ffffff;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  transition: transform 240ms ease, background 240ms ease, box-shadow 240ms ease;
  isolation: isolate;
  box-shadow: 0 14px 36px -22px rgba(26, 171, 184, 0.55);
}
/* Top hairline accent */
.icons__cell::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}
/* Faint dot grid texture */
.icons__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}
.icons__cell > * { position: relative; z-index: 1; }
.icons__cell:hover { transform: translateY(-2px); background: #1FBDCC; }

.icons__cell .num {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.icons__cell .iconwrap {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  margin-top: auto;
}
.icons__cell .iconwrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.icons__cell .name {
  font-size: 16px;
  letter-spacing: -0.015em;
  color: #ffffff;
  line-height: 1.25;
  font-weight: 400;
  max-width: 22ch;
}

/* Accent retained as visual variation — deeper teal tile */
.icons__cell--accent {
  background: #0e8a96;
  box-shadow: 0 16px 40px -18px rgba(14, 138, 150, 0.55);
}
.icons__cell--accent::before { background: rgba(255, 255, 255, 0.55); }
.icons__cell--accent:hover { background: #10a0ae; }

.icons-block + .icons-block { margin-top: 48px; }
.icons-block__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 24px;
  color: var(--c-ink-3);
}

/* ===== Productos (lista editorial vertical) ===== */
.products { padding: clamp(44px, 6vw, 80px) 0; }
.product {
  background: rgba(26, 171, 184, 0.05);
  padding: 56px 48px 64px;
  display: grid;
  grid-template-columns: 1fr 7fr 4fr;
  gap: 32px;
  position: relative;
  transition: background 280ms ease, transform 280ms ease, box-shadow 280ms ease;
  isolation: isolate;
  overflow: hidden;
}
.product + .product { margin-top: 16px; }
.product:hover {
  background: rgba(26, 171, 184, 0.10);
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -40px rgba(26, 171, 184, 0.25);
}
.product:hover .product__visual { transform: translateY(-2px); }
.product__visual {
  transition: transform 360ms ease, box-shadow 360ms ease;
}
.product__num {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.product__num small {
  display: block;
  font-family: var(--ff-mono);
  font-style: normal;
  font-size: 10px;
  color: var(--c-ink-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 6px;
}
.product__body { min-width: 0; }
.product__meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.product__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ink-2);
}
.product__chip .swatch {
  width: 10px; height: 10px;
}
.product__title {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 300;
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}
.product__title .name-color { color: var(--c-ink); }
.product__title .name-mono { color: var(--c-ink-3); font-weight: 300; }
.product__title .desc-tag {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 24px;
  color: var(--c-ink-3);
  letter-spacing: -0.01em;
}
.product__desc {
  margin-top: 28px;
  max-width: 64ch;
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-ink-2);
}
.product__features {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-rule);
}
.product__features .feat {
  padding: 16px 24px;                 /* aire a ambos lados de la barrita divisoria */
  border-right: 1px solid var(--c-rule);
  font-size: 13px;
  color: var(--c-ink-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.form-error {
  color: #c0392b;
  font-size: 14px;
  margin: 4px 0 0;
  font-weight: 500;
}
.contact-form .btn[disabled] { opacity: 0.6; cursor: default; }

.product__features .feat:first-child { padding-left: 0; }
.product__features .feat:last-child { border-right: 0; padding-right: 0; }
.product__features .feat .k {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--c-ink-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product__cta {
  margin-top: 36px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.product__cta .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
  padding-bottom: 4px;
}
.product__cta .status {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product__cta .status .led {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-teal-deep);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--c-teal) 30%, transparent);
}

.product__visual {
  border: 1px solid var(--c-rule);
  background: var(--c-paper);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.product__visual-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  z-index: 2;
}
.product__visual-tag b { color: var(--c-ink); font-weight: 500; }

/* Card style variant: minimal */
[data-cards="minimal"] .product__visual {
  background: transparent;
  border-color: var(--c-rule-soft);
}

/* Card style variant: dossier */
[data-cards="dossier"] .product__visual {
  background: var(--c-paper-3);
  border-color: var(--c-rule);
  box-shadow: 12px 12px 0 -10px color-mix(in oklch, var(--c-ink) 25%, transparent);
}

/* Card style variant: tinted */
[data-cards="tinted"] .product {
  /* will be overridden inline per-product */
}

/* ===== Mini visuals per product — animated ===== */

/* Table (Cost4H): rows highlight in sequence */
.viz-table {
  position: absolute; inset: 36px 12px 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  color: var(--c-ink-2);
  display: grid;
  grid-template-rows: auto repeat(5, 1fr);
  border: 1px solid var(--c-rule);
  background: var(--c-paper);
}
.viz-table .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--c-rule-soft);
  align-items: center;
  transition: background 240ms ease;
}
.viz-table .row > div { padding: 6px 8px; border-right: 1px solid var(--c-rule-soft); }
.viz-table .row > div:last-child { border-right: 0; }
.viz-table .row.head { background: var(--c-paper-2); color: var(--c-ink-3); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; }
.viz-table .row .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.viz-table .row:not(.head) {
  animation: vizTableHL 8s linear infinite;
}
.viz-table .row:not(.head):nth-of-type(2) { animation-delay: 0s; }
.viz-table .row:not(.head):nth-of-type(3) { animation-delay: 1.6s; }
.viz-table .row:not(.head):nth-of-type(4) { animation-delay: 3.2s; }
.viz-table .row:not(.head):nth-of-type(5) { animation-delay: 4.8s; }
.viz-table .row:not(.head):nth-of-type(6) { animation-delay: 6.4s; }
@keyframes vizTableHL {
  0%, 92%, 100% { background: transparent; }
  4%, 14% { background: rgba(232, 89, 64, 0.10); }
}

/* Bars (Market4H): grow + subtle continuous pulse */
.viz-bars {
  position: absolute; inset: 36px 16px 16px;
  display: flex; align-items: flex-end; justify-content: space-around;
  gap: 8px;
}
.viz-bars .bar {
  width: 14%;
  background: var(--c-market);
  position: relative;
  transform-origin: bottom;
  animation: vizBarsRise 1100ms cubic-bezier(.2,.7,.2,1) both, vizBarsPulse 3.6s ease-in-out infinite;
}
.viz-bars .bar:nth-child(1) { animation-delay: 0ms, 200ms; }
.viz-bars .bar:nth-child(2) { animation-delay: 90ms, 450ms; }
.viz-bars .bar:nth-child(3) { animation-delay: 180ms, 700ms; }
.viz-bars .bar:nth-child(4) { animation-delay: 270ms, 950ms; }
.viz-bars .bar:nth-child(5) { animation-delay: 360ms, 1200ms; }
@keyframes vizBarsRise {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes vizBarsPulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.12); }
}
.viz-bars .bar::after {
  content: attr(data-label);
  position: absolute;
  bottom: -18px; left: 0; right: 0;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--c-ink-3);
  letter-spacing: 0.06em;
}
.viz-bars .bar .num {
  position: absolute;
  top: -16px; left: 0; right: 0;
  text-align: center;
  font-family: var(--ff-mono);
  font-size: 9px;
  color: var(--c-ink-2);
}

/* Wave (Digital4H): each bar oscillates around equator */
.viz-wave {
  position: absolute; inset: 36px 16px 16px;
  display: grid;
  place-items: center;
}
.viz-wave svg { width: 100%; height: 100%; overflow: visible; }
.viz-wave svg rect {
  transform-origin: 50% 50%;
  animation: vizWaveBeat 1.6s ease-in-out infinite;
}
@keyframes vizWaveBeat {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.45); }
}

/* Dots (Social4H): turn on/off in waves */
.viz-persons {
  position: absolute; inset: 36px 16px 16px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 1fr;
  gap: 4px;
}
.viz-persons span {
  background: var(--c-rule);
  border-radius: 1px;
  transition: background 600ms ease, opacity 600ms ease;
  animation: vizPersonsBlink 6s ease-in-out infinite;
}
.viz-persons span.on {
  background: var(--c-social);
}
@keyframes vizPersonsBlink {
  0%, 100% { opacity: 0.9; }
  50%      { opacity: 0.4; }
}
.viz-persons span.on { animation-name: vizPersonsBlinkOn; }
@keyframes vizPersonsBlinkOn {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* ===== Equipo / quote ===== */
.equipo--plate {
  position: relative;
  margin: 0;
  padding: clamp(48px, 6vw, 84px) 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(60% 80% at 12% 30%, rgba(110, 201, 214, 0.10), transparent 60%),
    radial-gradient(60% 80% at 88% 80%, rgba(110, 201, 214, 0.08), transparent 60%),
    #0a0d14;
  color: #f5efe6;
  overflow: hidden;
  isolation: isolate;
}

/* Inverted section-head when sitting on dark plate */
.section-head--invert {
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 48px;
  margin-bottom: 56px;
}
.section-head--invert .mono { color: rgba(255,255,255,0.55); }
.section-head--invert h2 { color: #ffffff; }
.section-head--invert h2 .serif { color: #ffffff; }
.section-head--invert .aside { color: rgba(255,255,255,0.65); }
.equipo--plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.equipo--plate::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255,255,255,0.08);
  pointer-events: none;
  z-index: 0;
}
.equipo--plate > .page { position: relative; z-index: 1; }
.equipo__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: center;
}
.equipo__text h2 {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 300;
  letter-spacing: -0.025em;
  color: #ffffff;
}
.equipo__text h2 .serif { font-weight: 400; color: #ffffff; }
.equipo__text .body {
  margin-top: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.78);
  max-width: 56ch;
}
.equipo__text .quote {
  margin-top: 32px;
  padding-left: 18px;
  border-left: 2px solid var(--c-teal);
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 24px;
  line-height: 1.35;
  color: #ffffff;
  max-width: 46ch;
}
.equipo__text .quote-author {
  margin-top: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal);
}

.equipo__figure {
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.equipo__figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.02);
}
.equipo__figure .tag {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  position: absolute;
  top: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between;
  z-index: 2;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.section--all-dark { padding: 0; }

/* ===== Final CTA ===== */
.cta {
  margin: clamp(48px, 7vw, 96px) 0;   /* más aire arriba/abajo (petición cliente) */
  /* padding horizontal = gutter para que el titular no quede pegado/cortado al borde */
  padding: clamp(72px, 10vw, 132px) var(--gutter);
  border-top: 1px solid var(--c-ink);
  border-bottom: 1px solid var(--c-ink);
}
.cta__inner {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 48px;
  align-items: end;
}
.cta__head h2 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.cta__head h2 .serif { font-weight: 400; }
.cta__aside {
  font-size: 16px;
  color: var(--c-ink-2);
  max-width: 44ch;
  margin-left: auto;
  text-align: right;
}
.cta__aside .btn-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  padding: 72px 0 28px;
  margin-top: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background:
    radial-gradient(50% 80% at 15% 30%, rgba(110, 201, 214, 0.08), transparent 60%),
    #0a0d14;
  color: rgba(245, 239, 230, 0.78);
  border-top: 0;
  overflow: hidden;
  isolation: isolate;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.footer > .page { position: relative; z-index: 1; }
.footer__grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr;
  gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__col h4 {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
  margin-top: 0;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(245, 239, 230, 0.78);
  transition: color 160ms ease;
}
.footer__col a:hover { color: #ffffff; }
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer__brand img {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}
.footer__brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  max-width: 38ch;
  line-height: 1.55;
  margin: 0;
}
.footer__base {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  padding-top: 22px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.footer__base a { color: rgba(255,255,255,0.55); }
.footer__base a:hover { color: #ffffff; }

/* logo in dark mode */
[data-theme="dark"] .header__brand img,
[data-theme="dark"] .footer__brand img {
  filter: brightness(0) invert(1) opacity(0.92);
}

/* Responsive (minimal) */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .origin { grid-template-columns: 1fr; }
  .origin__grid { grid-template-columns: 1fr; }
  .origin__pivot { padding: 24px 0; flex-direction: row; gap: 16px; }
  .origin__pivot .mono { writing-mode: horizontal-tb; transform: none; }
  .origin__pivot::before { display: none; }
  .product { grid-template-columns: 1fr; }
  .product__features { grid-template-columns: 1fr 1fr; }
  .icons { grid-template-columns: 1fr 1fr; }
  .equipo__grid, .cta__inner, .footer__grid { grid-template-columns: 1fr; }
  .cta__aside { text-align: left; margin-left: 0; }
  .cta__aside .btn-row { justify-content: flex-start; }
  .product-hero__inner { grid-template-columns: 1fr; }
  .includes-grid, .contact-grid, .plans { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .sol-preview { grid-template-columns: 1fr 1fr; }
}



/* ============================================================
 * MULTI-PAGE — Page heroes, product pages, contact form, etc.
 * ============================================================
 */

/* Generic light page hero (Theorema, Soluciones, Contacto) */
.page-hero {
  padding: clamp(104px, 11vw, 144px) 0 clamp(36px, 4.5vw, 60px);
  border-bottom: 1px solid var(--c-rule);
}
.page-hero__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.page-hero .eyebrow { color: var(--c-ink-3); display: inline-block; margin-bottom: 18px; }
.page-hero h1 {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 300;
}
.page-hero h1 .serif { font-weight: 400; }
.page-hero h1 .accent-teal {
  color: var(--c-teal);
  font-style: italic;
  font-weight: 400;
}
.page-hero__sub {
  margin-top: 28px;
  max-width: 70ch;
  font-size: 18px;
  color: var(--c-ink-2);
  line-height: 1.5;
}
.page-hero__index {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-rule);
  border: 1px solid var(--c-rule);
}
.page-hero__index-row {
  background: var(--c-paper);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 22px 22px;
  font-size: 15px;
  color: var(--c-ink);
  transition: background 200ms ease, color 200ms ease;
}
.page-hero__index-row:hover { background: var(--c-paper-2); }
.page-hero__index-row .mono { color: var(--c-ink-3); font-size: 11px; letter-spacing: 0.14em; }
.page-hero__index-row .arrow { color: var(--c-teal); }
@media (max-width: 1024px) {
  .page-hero__index { grid-template-columns: 1fr; }
}

/* Soluciones preview cards (home) */
.sol-preview {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: transparent;
  border: 0;
}
.sol-preview__card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--c-rule);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px 24px 22px;
  gap: 16px;
  min-height: 240px;
  transition: border-color 280ms ease, transform 280ms ease, box-shadow 280ms ease;
  color: var(--c-ink);
  overflow: hidden;
  isolation: isolate;
}
.sol-preview__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(110, 201, 214, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 280ms ease;
  pointer-events: none;
  z-index: 0;
}
.sol-preview__card > * { position: relative; z-index: 1; }
.sol-preview__card:hover {
  border-color: rgba(110, 201, 214, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -20px rgba(0, 0, 0, 0.18);
}
.sol-preview__card:hover::before { opacity: 1; }
.sol-preview__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sol-preview__top .mono {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.sol-preview__swatch {
  width: 14px; height: 14px;
}
.sol-preview__card h3 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-top: 4px;
}
.sol-preview__card p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-ink-2);
  flex: 1;
}
.sol-preview__logo {
  flex: 1;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 8px 0 2px;
}
.sol-preview__logo img {
  max-width: 100%;
  max-height: 124px;
  object-fit: contain;
}
.sol-preview__more {
  font-family: var(--ff-sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid var(--c-rule);
}

/* ===== Cost4H product page ===== */

/* Cost-specific accent */
.accent-cost {
  color: var(--c-cost);
  font-style: italic;
  font-family: var(--ff-display);
  font-weight: 400;
}
.btn--cost {
  background: var(--c-cost);
  color: #fff;
}
.btn--cost:hover { background: #d4452d; }
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover { background: #fff; color: #0a0d14; }

/* Product hero */
.product-hero {
  /* gutter lateral lo da el .page del __inner (evita doble padding) */
  padding: clamp(120px, 14vw, 180px) 0 clamp(64px, 8vw, 100px);
  background: linear-gradient(180deg, rgba(232, 89, 64, 0.06) 0%, transparent 60%);
  border-bottom: 1px solid var(--c-rule);
}
.product-hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 48px;
  align-items: center;
}
.product-hero h1 {
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 300;
  margin-top: 12px;
}
.product-hero h1 .serif { font-weight: 400; }
.product-hero__sub {
  margin-top: 22px;
  max-width: 60ch;
  font-size: 17px;
  color: var(--c-ink-2);
  line-height: 1.55;
}
.product-hero__cta {
  margin-top: 36px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.product-hero__viz {
  position: relative;
  border: 1px solid var(--c-rule);
  background: var(--c-paper);
  min-height: 320px;
  overflow: hidden;
  box-shadow: 20px 20px 0 -16px rgba(232, 89, 64, 0.25);
}

/* 2-col prose for introduction blocks */
.prose-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}
.prose-2col p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--c-ink-2);
}
.prose-2col p b { color: var(--c-ink); font-weight: 500; }
@media (max-width: 1024px) { .prose-2col { grid-template-columns: 1fr; } }

/* Placeholder block (Metodología) */
.placeholder-block {
  margin-top: 48px;
  padding: 56px;
  background: var(--c-paper-2);
  border: 1px dashed var(--c-rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.placeholder-block .mono { color: var(--c-ink-3); letter-spacing: 0.18em; }
.placeholder-block p { max-width: 60ch; color: var(--c-ink-2); line-height: 1.5; }

/* ¿Para quién? cards on dark plate */
.audience-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.audience-card {
  padding: 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 130px;
  transition: background 200ms ease, border-color 200ms ease;
}
.audience-card:hover { background: rgba(232, 89, 64, 0.12); border-color: var(--c-cost); }
.audience-card .mono {
  font-family: var(--ff-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.14em;
}
.audience-card h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #fff;
  line-height: 1.25;
}
.audience-foot {
  margin-top: 40px;
  max-width: 80ch;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 239, 230, 0.7);
}

/* ¿Por qué? — 8 benefits, 4x2 grid with teal cards */
.benefits-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.benefit-card {
  position: relative;
  padding: 24px 22px 28px;
  background: rgba(232, 89, 64, 0.10);   /* fondo naranja suave (petición cliente) */
  border: 1px solid rgba(232, 89, 64, 0.26);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
}
.benefit-card:hover {
  background: rgba(232, 89, 64, 0.15);   /* naranja un poco más intenso al pasar */
  border-color: rgba(232, 89, 64, 0.45);
  transform: translateY(-2px);
}
.benefit-card .num {
  color: var(--c-ink-3);
}
.benefit-card .benefit-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
}
.benefit-card .benefit-icon img {
  max-width: 48px; max-height: 48px;    /* tope absoluto: no desbordar la caja (evita pisar el título) */
  width: auto; height: auto;
  object-fit: contain;
}
.benefit-card h4 {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.benefit-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-ink-2);
}

/* ¿Qué incluye? */
.includes-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 48px;
  align-items: start;
}
.includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.includes-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-rule-soft);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-ink);
}
.includes-list li:last-child { border-bottom: 0; }
.includes-list .check {
  font-family: var(--ff-mono);
  color: var(--c-cost);
  font-weight: 500;
}
.includes-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--c-rule);
  background: var(--c-paper);
  overflow: hidden;
}
.includes-figure img {
  width: 100%;
  height: auto;
  display: block;
  padding: 18px 24px 24px;
  box-sizing: border-box;
}
.includes-figure .product__visual-tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  z-index: 2;
}

/* Planes — 2 plan cards on dark plate */
.plans {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.plan-card {
  padding: 36px 32px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #fff;
  transition: background 240ms ease, border-color 240ms ease;
}
.plan-card:hover { border-color: rgba(255,255,255,0.22); }
.plan-card header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.plan-card .mono {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.plan-card h3 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
}
.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.plan-card li {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(245, 239, 230, 0.85);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
}
.plan-card li .check {
  font-family: var(--ff-mono);
  color: var(--c-teal);
}
.plan-card .btn { align-self: flex-start; }

.plan-card--featured {
  background: linear-gradient(180deg, rgba(232, 89, 64, 0.18) 0%, rgba(232, 89, 64, 0.04) 70%);
  border-color: rgba(232, 89, 64, 0.4);
  box-shadow: 0 24px 60px -20px rgba(232, 89, 64, 0.35);
}
.plan-card--featured .mono { color: var(--c-cost); }
.plan-card--featured li .check { color: var(--c-cost); }

/* ===== Contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 56px;
  align-items: start;
}
.contact-aside h3 {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.contact-aside p {
  color: var(--c-ink-2);
  line-height: 1.5;
}
.contact-links {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--c-rule);
}
.contact-links li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--c-rule);
  font-size: 14px;
}
.contact-links .mono {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-ink-3);
  align-self: center;
}
.contact-links a { color: var(--c-ink); border-bottom: 1px solid var(--c-ink); padding-bottom: 1px; }

.contact-form {
  background: rgba(26, 171, 184, 0.05);
  padding: 40px 44px 32px;
  border: 1px solid var(--c-rule);
}
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field span {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink-3);
}
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 15px;
  font-family: var(--ff-sans);
  color: var(--c-ink);
  background: var(--c-paper);
  border: 1px solid var(--c-rule);
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--c-teal);
  background: #fff;
}
.field--full { grid-column: 1 / -1; }
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--c-ink-2);
}
.field--check input { width: 18px; height: 18px; margin-top: 2px; }
.field--check span { font-family: var(--ff-sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--c-ink-2); }
.field--check a.underline { color: var(--c-ink); border-bottom: 1px solid var(--c-ink); padding-bottom: 1px; }

.contact-form__foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--c-rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-form__foot .mono { color: var(--c-ink-3); letter-spacing: 0.12em; }

.form-thanks {
  padding: 48px;
  background: var(--c-paper-2);
  border: 1px solid var(--c-rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.form-thanks .mono { color: var(--c-teal); letter-spacing: 0.14em; }
.form-thanks h3 { font-size: 32px; font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.form-thanks p { color: var(--c-ink-2); max-width: 60ch; }
.form-thanks .btn { margin-top: 12px; }


/* ============================================================
 * MOBILE — viewport ≤ 720px
 * ============================================================ */
@media (max-width: 720px) {
  /* Header — logo y CTA más compactos, ocultar nav central */
  .header__inner { height: 76px; gap: 12px; }
  .header__brand img { height: 50px; }
  .header__brand-text { display: none; }
  .header .nav { display: none; }
  .header__cta .btn { padding: 10px 14px; font-size: 13px; }

  /* Hero — globo más sutil, texto al frente, números apilados */
  .hero-bg__canvas { opacity: 0.35; }
  .hero-bg__binary { display: none; }
  .hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10,13,20,0.45) 0%, rgba(10,13,20,0.7) 60%, rgba(10,13,20,0.85) 100%);
    pointer-events: none;
  }

  .hero { padding-bottom: 48px; }
  .hero__topline { display: none; }
  .hero h1 { font-size: clamp(36px, 9vw, 52px) !important; line-height: 1.02; letter-spacing: -0.02em; }
  .hero__sub { font-size: 15px; margin-top: 18px; }
  .hero__cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero__cta-row .btn { justify-content: center; width: 100%; }
  .hero__marginalia { grid-template-columns: 1fr; gap: 22px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
  .hero__marginalia .num { font-size: 32px; }

  /* Sol preview — 1 columna en mobile */
  .sol-preview { grid-template-columns: 1fr; }
  .sol-preview__card { min-height: auto; padding: 22px 20px 20px; }

  /* Origin cards — padding interno menor */
  .origin__card-inner { padding: 24px 22px 26px; }
  .origin__card { min-height: auto; }
  .origin .page { padding: 32px var(--gutter); }

  /* Section-head — h2 más pequeño */
  .section-head h2, .section h2 { font-size: clamp(28px, 7vw, 40px); }

  /* Footer */
  .footer__grid { gap: 32px; }
}

/* ============================================================
 * POLISH 2026-06-09 — comentarios cliente (Insight4H)
 * Selector idioma · logos de producto · iconos ¿para quién? · "crea"
 * ============================================================ */

/* ---- Selector de idioma (header) ---- */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.lang__opt {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 2px;
  color: inherit;
  background: none;
  border: 0;
}
.lang__sep { opacity: 0.4; font-size: 12px; }
.lang__opt--soon { opacity: 0.55; cursor: pointer; transition: opacity 160ms ease; }
.lang__opt--soon:hover { opacity: 0.9; }
.lang__opt.is-active { font-weight: 600; }
/* Estados de color del header (sobre hero oscuro vs. con scroll claro) */
.header .lang { color: rgba(255, 255, 255, 0.8); }
.header .lang__opt.is-active { color: #ffffff; }
.header.is-scrolled .lang { color: var(--c-ink-3); }
.header.is-scrolled .lang__opt.is-active { color: var(--c-ink); }

/* ---- Logo de producto en la página Soluciones ---- */
.product--logo { grid-template-columns: 7fr 4fr; }
.product__logo { margin: 0 0 6px; }
.product__logo img {
  width: 100%;
  max-width: 360px;
  max-height: 132px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 1024px) {
  .product--logo { grid-template-columns: 1fr; }
  .product__logo img { max-width: 300px; }
}

/* ---- Iconos en tarjetas "¿Para quién?" (Cost4H) ---- */
.audience-card .ico {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.audience-card .ico img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* ---- Logo en hero de producto (Cost4H) ---- */
.product-hero__logo { margin-bottom: 10px; }
.product-hero__logo img {
  width: 100%;
  max-width: 420px;
  max-height: 150px;
  object-fit: contain;
  object-position: left center;
}

/* ---- Cost4H · Introducción: descripción de datos + imágenes de la BD ---- */
.cost-data {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: 44px;
  align-items: center;
}
.cost-data__lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--c-ink-2);
  border-left: 2px solid var(--c-cost);
  padding-left: 20px;
}
.cost-data__fig { margin: 0; }
.cost-data__fig img { width: 100%; height: auto; display: block; }
@media (max-width: 1024px) {
  .cost-data { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
 * RESPONSIVE OVERHAUL 2026-06-09 — "mobile cien por diez"
 * Va al FINAL a propósito: el bloque @media(max-width:1024px) de mitad de
 * archivo quedaba ANULADO por las reglas base de componentes definidas
 * después (orden de cascada). Esto las re-establece y, al ir al final, gana.
 * ============================================================ */

/* el header__inner debe quedar por encima del drawer (mismo contexto de apilado) */
.header__inner { position: relative; z-index: 2; }
.header.is-menu-open { background: var(--c-paper); backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--c-rule-soft); }
.footer__legal { display: inline-flex; gap: 24px; }

/* ===== Hamburguesa ===== */
.hamburger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
  margin-left: 2px;
}
.hamburger span {
  display: block; width: 24px; height: 2px; border-radius: 2px;
  background: var(--c-ink);
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .18s ease, background .2s ease;
}
.hamburger:focus { outline: none; }                         /* sin caja fea al pulsar */
.hamburger:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 3px; border-radius: 10px; }
.header:not(.is-scrolled) .hamburger span { background: rgba(255, 255, 255, 0.92); }
.is-menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-menu-open .hamburger span:nth-child(2) { opacity: 0; }
.is-menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Drawer móvil ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1;                      /* dentro del contexto del header (30); header__inner va por encima */
  background: var(--c-paper);
  display: flex;
  flex-direction: column;          /* nav scrolleable + barra de acción fija abajo */
  padding: 0;
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .26s ease, transform .28s cubic-bezier(.22,1,.36,1), visibility .26s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }

/* Zona de navegación: ocupa el alto disponible y hace scroll bajo el header (64px) */
.mobile-menu__nav {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  padding: 84px var(--gutter) 20px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Selector de idioma como segmento compacto, arriba a la derecha (fuera del CTA) */
.mobile-menu__lang { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.mobile-menu__lang .lang {
  border: 1px solid var(--c-rule);
  border-radius: 999px;
  padding: 3px 4px;
  gap: 2px;
}
.mobile-menu__lang .lang__sep { display: none; }
.mobile-menu__lang .lang__opt {
  font-size: 12.5px; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: 999px;
  color: var(--c-ink-3);
}
.mobile-menu__lang .lang__opt.is-active { background: var(--c-ink); color: var(--c-paper); font-weight: 600; }

/* Enlaces de primer nivel — escala armónica (≈1.25 sobre los subitems) */
.mobile-menu__link {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  padding: 15px 0;
  border-bottom: 1px solid var(--c-rule-soft);
}
.mobile-menu__link.is-active { color: var(--c-teal); }
.mobile-menu__sub {
  display: flex; flex-direction: column;
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--c-rule-soft);
}
.mobile-menu__sublink {
  display: grid;
  grid-template-columns: 10px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 9px 0 9px 4px;
  font-size: 15.5px;
  color: var(--c-ink-2);
}
.mobile-menu__sublink .dot { width: 9px; height: 9px; border-radius: 50%; }
.mobile-menu__subdesc { grid-column: 2; font-size: 12px; color: var(--c-ink-3); margin-top: 1px; }

/* Barra de acción inferior fija — solo el CTA, con filete superior */
.mobile-menu__foot {
  flex: 0 0 auto;
  padding: 14px var(--gutter) max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--c-rule-soft);
  background: var(--c-paper);
}
.mobile-menu__cta { width: 100%; justify-content: center; padding: 15px 22px; font-size: 15px; }

/* ===== TABLET (≤1024): colapsos que el bloque muerto no llegaba a aplicar ===== */
@media (max-width: 1024px) {
  .product-hero__inner { grid-template-columns: 1fr; gap: 36px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .includes-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .prose-2col { grid-template-columns: 1fr; }
  .cost-data { grid-template-columns: 1fr; }
  .product--logo { grid-template-columns: 1fr; }
  .sol-preview { grid-template-columns: 1fr 1fr; }
}

/* ===== Header móvil (≤860): hamburguesa visible; nav + CTA inline ocultos ===== */
@media (max-width: 860px) {
  .header .nav { display: none; }
  .header__cta .lang,
  .header__cta-btn { display: none; }
  .hamburger { display: inline-flex; }
  /* Con el nav oculto, el grid de 3 columnas dejaba el burger en el centro.
     Dos columnas: logo a la izquierda (1fr) y burger a la derecha (auto). */
  .header__inner { grid-template-columns: 1fr auto; gap: 12px; height: 64px; align-items: center; }
  .header__brand img { height: 40px; }
  .header__cta { gap: 0; justify-self: end; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ===== TELÉFONO (≤640): una columna, gutters reales, escala y touch ===== */
@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* Ritmo comprimido en móvil (el gutter lateral lo dan .page / __inner) */
  .section.page { padding: 38px var(--gutter); }
  .page-hero { padding-top: clamp(88px, 22vw, 112px); padding-bottom: 28px; }

  /* Todo a una columna */
  .benefits-grid,
  .audience-grid,
  .sol-preview,
  .icons,
  .product__features,
  .footer__grid { grid-template-columns: 1fr; }

  /* Tipografía contenida */
  .page-hero h1 { font-size: clamp(34px, 9vw, 50px); }
  .page-hero__sub { font-size: 16px; margin-top: 20px; }
  .product-hero h1 { font-size: clamp(33px, 9vw, 44px); }
  .section-head h2, .section h2 { font-size: clamp(28px, 7.4vw, 38px); }
  .cta__head h2 { font-size: clamp(32px, 9vw, 46px); }
  .equipo__text .quote { font-size: 20px; }
  .product__title { font-size: clamp(34px, 9vw, 48px); }

  /* Soluciones: tarjeta de producto apilada */
  .product { padding: 34px var(--gutter) 38px; gap: 22px; }
  .product__visual { min-height: 210px; }
  .product__logo img { max-width: 280px; }
  .product__cta { flex-wrap: wrap; gap: 16px 24px; }

  /* Cost4H hero */
  .product-hero { padding-bottom: 52px; }
  .product-hero__viz { min-height: 230px; box-shadow: 12px 12px 0 -10px rgba(232, 89, 64, 0.22); }
  .product-hero__logo img { max-width: 300px; }
  .cost-data__lead { font-size: 16px; }

  /* Planes / contacto */
  .plan-card { padding: 26px 22px; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 20px 22px; }

  /* Origin / equipo plates: respiración */
  .origin__card-inner { padding: 26px 22px 28px; }

  /* Footer legible y con touch targets */
  .footer__base { grid-template-columns: 1fr; gap: 14px; }
  .footer__legal { flex-wrap: wrap; gap: 12px 20px; }
  .footer__col a { padding: 10px 0; }
  .footer__col h4 { margin-bottom: 10px; }
}

/* ===== TELÉFONO ESTRECHO (≤380) ===== */
@media (max-width: 380px) {
  .hero__head h1 { font-size: clamp(30px, 8.6vw, 38px) !important; }
  .header__brand img { height: 42px; }
  .product__features .feat { padding-right: 0; }
}

/* ===== Ajustes finos móvil (≤640) — segunda pasada ===== */
@media (max-width: 640px) {
  /* El hero usaba margin negativo para romper un .page padre que aquí no existe,
     y dejaba el texto pegado al borde. A pantalla completa sin negativo: */
  .hero { margin-left: 0; margin-right: 0; }
  /* Tarjetas: sin alto mínimo fijo para que no sobre hueco al apilar */
  .benefit-card, .audience-card, .sol-preview__card { min-height: auto; }
  .icons__cell { min-height: 150px; }
}

/* El hero es hijo directo del root (no de un .page): el margen negativo lateral
   lo hacía sobresalir del viewport (scroll horizontal sutil en TODOS los anchos).
   Sin negativo ocupa el ancho completo sin desbordar. */
.hero { margin-left: 0; margin-right: 0; }

/* Gutter lateral también en tablet (≤1024): el "flush-edge" editorial se reserva
   a desktop ancho; en iPad el contenido necesita margen real. */
@media (max-width: 1024px) {
  .section.page { padding-left: var(--gutter); padding-right: var(--gutter); }
  /* .page-hero ya recibe el gutter vía .page-hero__inner */
}
