/* Caribbean Atoms Group · v1
   Blancos y grises titanio, acento vinotinto, tipografía Arial. */

:root {
  --white: #ffffff;
  --ti-50: #f8fafc;
  --ti-100: #f1f5f9;
  --ti-200: #e2e8f0;
  --ti-300: #cbd5e1;
  --ti-500: #64748b;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #475569;
  --wine: #7a1c2d;
  --wine-2: #991b1b;
  --wine-d: #4c0519;
  --rose: #e3b9a5;
  --ruby: #be123c;

  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-1: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-2: 0 2px 6px rgba(15, 23, 42, .08), 0 24px 60px rgba(15, 23, 42, .12);
  --steel: linear-gradient(180deg, rgba(248,250,252,.55) 0%, rgba(238,242,246,.7) 55%, rgba(248,250,252,.55) 100%);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@property --on { syntax: "<number>"; inherits: true; initial-value: 0; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.dots { position: fixed; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--wine); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ruby); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.wine { color: var(--wine); }
.small { font-size: 14px; color: var(--muted); }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wine); margin: 0 0 16px;
}
.h2 { font-size: clamp(25px, 2.7vw, 38px); letter-spacing: -.025em; font-weight: 700; margin-bottom: 20px; text-wrap: balance; }
.h3 { font-size: clamp(18px, 1.5vw, 22px); font-weight: 700; }
.h4 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 28px 0 12px; }
.lead { font-size: clamp(15.5px, 1.1vw, 17px); color: var(--muted); max-width: 62ch; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--wine {
  color: #fff;
  background: linear-gradient(180deg, #8f2337 0%, var(--wine) 55%, #64152a 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 18px rgba(122, 28, 45, .28);
}
.btn--wine:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 28px rgba(122, 28, 45, .38); }
.btn--ghost { color: var(--ink); background: rgba(255,255,255,.6); border-color: var(--ti-300); }
.btn--ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn--light { background: #fff; color: var(--wine); }
.btn--light:hover { transform: translateY(-2px); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--wine); font-weight: 700; text-decoration: underline; }

/* Badge en relieve vinotinto */
.badge {
  display: inline-block; margin-bottom: 18px; padding: 7px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #9b2a3f, var(--wine) 50%, var(--wine-d));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.25), 0 6px 16px rgba(122,28,45,.25);
}
.badge--xl { font-size: 13px; padding: 10px 18px; }
.badge--dark { background: linear-gradient(180deg, #1e293b, #0b1120); border: 1px solid rgba(227,185,165,.35); color: var(--rose); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ti-200);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 6px 24px rgba(15,23,42,.06); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 28px; width: min(1360px, 100% - 40px); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; flex-shrink: 0; }
.brand__mark { height: 56px; width: auto; }
.brand__word { display: flex; flex-direction: column; line-height: 1; margin-left: 2px; }
.brand__name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.brand__group { font-size: 10px; font-weight: 700; letter-spacing: .42em; text-transform: uppercase; color: var(--wine); margin-top: 5px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { position: relative; text-decoration: none; font-size: 13.5px; font-weight: 700; color: var(--ink-2); padding: 6px 0; transition: color .2s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--wine); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--wine); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--ti-300); border-radius: 6px; background: #fff; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s; }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 27px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 24px; border-top: 1px solid var(--ti-200); }
.mobile-menu a { padding: 14px 4px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--ti-100); }
.mobile-menu .btn { margin-top: 14px; }

@media (max-width: 1180px) { .nav__links { gap: 18px; } .nav__links a { font-size: 13.5px; } }
@media (max-width: 1060px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .brand__mark { height: 50px; }
}

/* ---------- Hero cinemático ---------- */
.hero { position: relative; height: 520vh; background: #0b1120; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__layers { position: absolute; inset: 0; }
.hero__layer {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; will-change: opacity, transform; transform-origin: 40% 50%;
}
.hero__layer:first-child { opacity: 1; }
.hero__layer--logo { object-position: 78% 50%; transform-origin: 38% 50%; }
@media (max-width: 900px) { .hero__layer--logo { object-position: 50% 0%; transform-origin: 50% 30%; } }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, rgba(248,250,252,.55) 0%, rgba(248,250,252,0) 42%),
    linear-gradient(0deg, rgba(15,23,42,.45) 0%, rgba(15,23,42,0) 32%);
}
.hero__panel { right: max(28px, 2.4vw) !important;
  position: absolute; right: max(24px, 3.5vw); top: 50%; transform: translateY(-46%);
  width: min(460px, 38vw); padding: 34px 32px 30px;
  background: linear-gradient(160deg, rgba(255,255,255,.86), rgba(241,245,249,.74));
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.75); border-radius: 12px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.9);
}
.hero__panel .kicker { font-size: 11px; letter-spacing: .14em; line-height: 1.6; }
.hero__title { font-size: clamp(30px, 2.9vw, 44px); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; margin-bottom: 18px; }
.hero__title .wine { background: linear-gradient(180deg, #9b2a3f, var(--wine) 60%, var(--wine-d)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__chapter {
  position: absolute; left: max(24px, 3.5vw); bottom: max(32px, 5vh);
  width: min(420px, 44vw); display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start;
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.hero__count { font-size: 36px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.hero__total { font-size: 14px; opacity: .7; margin-left: 4px; letter-spacing: 0; }
.hero__chapTitle { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--rose); margin: 2px 0 6px; }
.hero__chapText { margin: 0; font-size: 15px; line-height: 1.45; }
.hero__chapTitle, .hero__chapText { transition: opacity .35s, transform .35s var(--ease); }
.hero__chapter.is-swap .hero__chapTitle, .hero__chapter.is-swap .hero__chapText { opacity: 0; transform: translateY(8px); }
.hero__bar { grid-column: 1 / -1; height: 3px; margin-top: 14px; background: rgba(255,255,255,.25); border-radius: 3px; overflow: hidden; }
.hero__bar span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--rose), #fff); }
.hero.is-final .hero__chapter { color: var(--ink); text-shadow: none; }
.hero.is-final .hero__chapTitle { color: var(--wine); }
.hero.is-final .hero__bar { background: rgba(15,23,42,.15); }
.hero.is-final .hero__bar span { background: var(--wine); }

.hero__hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: .9; transition: opacity .4s;
}
.hero__hint span { width: 22px; height: 34px; border: 2px solid rgba(255,255,255,.8); border-radius: 12px; position: relative; }
.hero__hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: hint 1.6s infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.hero.is-moving .hero__hint { opacity: 0; }

@media (max-width: 900px) {
  .hero { height: 460vh; }
  .hero__panel { left: 16px; right: 16px; width: auto; top: auto; bottom: 16px; transform: none; padding: 24px 22px 22px; border-radius: 20px; }
  .hero__title { font-size: clamp(28px, 7.4vw, 40px); }
  .hero__lead { font-size: 15px; margin-bottom: 18px; }
  .hero__panel .kicker { margin-bottom: 10px; }
  .hero__chapter { top: calc(var(--nav-h) + 20px); bottom: auto; left: 16px; right: 16px; width: auto; }
  .hero__count { font-size: 32px; }
  .hero__chapText { font-size: 15px; }
  .hero__hint { display: none; }
  .hero__shade { background: linear-gradient(180deg, rgba(15,23,42,.55) 0%, rgba(15,23,42,0) 38%, rgba(15,23,42,0) 55%, rgba(15,23,42,.35) 100%); }
}
@media (max-width: 900px) and (max-height: 700px) { .hero__lead { display: none; } }

/* ---------- Clientes ---------- */
.clients { padding: 40px 0 44px; background: rgba(255,255,255,.6); border-bottom: 1px solid var(--ti-200); }
.clients__label { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ti-500); margin-bottom: 26px; padding-inline: 16px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img { height: 58px; width: auto; max-width: 180px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .7; transition: filter .3s, opacity .3s, transform .3s; }
.marquee__track img:hover { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--steel { background: var(--steel); }
.section__head { max-width: 820px; margin-bottom: 48px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

.photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ti-200); box-shadow: var(--shadow-1); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.photo figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; font-size: 13px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.photo--tall { aspect-ratio: 4 / 4.4; }
.about { background: rgba(248,250,252,.72); border-top: 1px solid var(--ti-200); }
.about__photo { aspect-ratio: 4 / 3; max-height: 440px; }
.about__photo img { object-position: 40% 60%; }
.badge--lg { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; padding: 11px 18px; }
.badge--lg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Acordeón */
.accordion { margin-top: 30px; display: grid; gap: 12px; }
.accordion details { background: #fff; border: 1px solid var(--ti-200); border-radius: 8px; overflow: hidden; }
.accordion summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; font-weight: 700; font-size: 16px; color: var(--ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion__hint { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wine); display: inline-flex; align-items: center; gap: 8px; }
.accordion__hint::before { content: attr(data-open); }
.accordion__hint::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .3s; }
.accordion details[open] .accordion__hint::before { content: attr(data-close); }
.accordion details[open] .accordion__hint::after { transform: rotate(45deg); }
.accordion details p { padding: 0 22px 20px; margin: 0; color: var(--muted); border-left: 3px solid var(--wine); margin-left: 22px; padding-left: 16px; margin-bottom: 20px; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: clamp(56px, 7vw, 88px); }
.kpi {
  position: relative; padding: 26px 22px 22px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, #ffffff, #f1f5f9);
  border: 1px solid var(--ti-200); box-shadow: var(--shadow-1), inset 0 1px 0 #fff;
}
.kpi { background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 38%, #e2e8f0 52%, #f8fafc 66%, #ffffff 100%); }
.kpi::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.85), transparent); transform: skewX(-18deg); pointer-events: none; }
.kpi.is-in::after { animation: sheen 1.6s .3s var(--ease) 1; }
.kpi:hover::after { animation: sheen 1s var(--ease) 1; }
@keyframes sheen { to { left: 130%; } }
.kpi__plus { color: var(--wine); margin-right: 2px; }
.kpi__pre { font-size: .4em; color: var(--wine); letter-spacing: .06em; margin-right: 6px; vertical-align: middle; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--wine), var(--ruby), var(--rose)); }
.kpi__value { font-size: clamp(38px, 3.6vw, 56px); font-weight: 700; color: var(--ink); letter-spacing: -.04em; line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.kpi__value small { font-size: .42em; letter-spacing: 0; color: var(--wine); font-weight: 700; }
.kpi__icon { position: absolute; top: 20px; right: 18px; width: 34px; height: 34px; object-fit: contain; opacity: .85; }
.kpi__label { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.kpi__delta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); margin: 0; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } }

.units__title { margin: clamp(56px, 7vw, 88px) 0 28px; }
.units { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 28px; }
.units::before, .units::after { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 1px; }
.units::before { background: var(--ti-300); }
.units::after { background: linear-gradient(90deg, transparent, var(--wine) 20%, var(--ruby) 50%, var(--wine) 80%, transparent); background-size: 50% 100%; background-repeat: no-repeat; animation: chain 4s linear infinite; }
@keyframes chain { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.unit {
  --mx: 50%; --my: 0%;
  position: relative; overflow: hidden; padding: 30px 26px 24px; border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(122,28,45,.07), transparent 60%), #fff;
  border: 0;
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.unit:hover { border-color: rgba(122,28,45,.45); transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.unit__node { position: absolute; top: -28px; left: 26px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--wine); }
.units .unit { overflow: visible; }
.unit__num {
  position: absolute; right: 18px; top: 8px; font-size: 76px; font-weight: 700; line-height: 1; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1px var(--ti-300); transition: color .4s, -webkit-text-stroke-color .4s;
}
.unit:hover .unit__num { color: rgba(122,28,45,.08); -webkit-text-stroke-color: rgba(122,28,45,.5); }
.unit__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin-bottom: 14px; padding: 4px 8px; background: rgba(122,28,45,.07); border-radius: 5px; }
.unit h4 { font-size: 17px; margin-bottom: 10px; max-width: 24ch; position: relative; }
.unit__legal { font-size: 12.5px; color: var(--ti-500); margin: -4px 0 10px; }
.unit__desc { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.unit__contact { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--ti-300); display: grid; gap: 9px; font-size: 13.5px; font-weight: 700; color: var(--ink); }
.unit__contact li { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: baseline; }
.unit__contact span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ti-500); }
.unit__contact a { text-decoration: none; color: var(--ink); word-break: break-word; }
.unit__contact a:hover { color: var(--wine); }
.unit__meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--ti-300); }
.unit__meta dt { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ti-500); margin-bottom: 4px; }
.unit__meta dd { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .units { grid-template-columns: 1fr; padding-top: 0; padding-left: 28px; }
  .units::before, .units::after { top: 0; bottom: 0; left: 6px; right: auto; width: 1px; height: auto; }
  .units::after { background: linear-gradient(180deg, transparent, var(--wine), transparent); background-size: 100% 40%; animation: chainY 4s linear infinite; }
  @keyframes chainY { from { background-position: 0 -40%; } to { background-position: 0 140%; } }
  .unit__node { top: 30px; left: -28px; }
}

/* ---------- Catálogo ---------- */
.catalog__tools { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--ti-300); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-2); transition: all .2s; }
.chip:hover { border-color: var(--wine); color: var(--wine); }
.chip[aria-selected="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
.chip span { opacity: .6; font-weight: 400; margin-left: 4px; }
.search { position: relative; flex: 1 1 280px; max-width: 360px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--ti-500); stroke-width: 2; }
.search input { width: 100%; min-height: 42px; padding: 0 16px 0 42px; border-radius: 6px; border: 1px solid var(--ti-300); background: #fff; font: inherit; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(122,28,45,.12); }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--ti-200); background: #fff; box-shadow: var(--shadow-1);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; color: inherit;
  animation: cardIn .5s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(122,28,45,.35); }
.card__stage {
  position: relative; height: 270px; display: grid; place-items: center; perspective: 900px;
  background: radial-gradient(60% 55% at 50% 42%, #ffffff 0%, #f1f5f9 70%, #e2e8f0 100%);
}
.card__stage::after { content: ""; position: absolute; left: 50%; bottom: 26px; width: 46%; height: 18px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(15,23,42,.32), rgba(15,23,42,0)); filter: blur(2px); }
.card__stage img { position: relative; z-index: 1; height: 232px; width: auto; transition: transform .5s var(--ease); }
.card:hover .card__stage img { transform: translateY(-6px) scale(1.03); }
.card__stage--icon img { height: 120px; filter: none; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__line { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.card__code { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.card__name { font-size: 14px; color: var(--muted); }
.card__more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--wine); }
.card--text .card__code { font-size: 17px; }
.card__stage--photo { overflow: hidden; background: var(--ti-200); }
.card__stage--photo::after { display: none; }
.card__stage--photo img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__stage--photo img:first-child { transform: scale(1.06); }
.card__stage--photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,23,42,0) 45%, rgba(15,23,42,.55)); }
.card__badge { position: absolute !important; z-index: 2; left: 14px; bottom: 14px; width: 44px !important; height: 44px !important; padding: 6px; background: rgba(255,255,255,.92); border-radius: 8px; object-fit: contain; }
.catalog__empty { text-align: center; margin-top: 24px; color: var(--muted); }
@media (max-width: 560px) {
  .catalog { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__stage { height: 190px; }
  .card__stage img { height: 160px; }
  .card__stage--icon img { height: 80px; }
  .card__body { padding: 14px 14px 16px; }
  .card__code { font-size: 17px; }
  .card--text .card__code { font-size: 15px; }
  .card__name { font-size: 13.5px; }
}
@media (max-width: 900px) { .hero.is-final .hero__chapter { opacity: 0; transition: opacity .4s; } }

/* ---------- Ingeniería ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 28px 24px; border-radius: var(--radius); background: linear-gradient(170deg, #fff, var(--ti-50)); border: 1px solid var(--ti-200); box-shadow: var(--shadow-1); transition: transform .3s var(--ease), box-shadow .3s; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.service img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 18px; }
.service h3 { font-size: 17px; margin-bottom: 10px; }
.service p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

.field-gallery { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 18px; margin-top: 40px; height: 380px; }
@media (max-width: 860px) { .field-gallery { grid-template-columns: 1fr 1fr; height: auto; } .field-gallery .photo { aspect-ratio: 4/3; } .field-gallery .photo:first-child { grid-column: 1 / -1; } }

.process { margin-top: clamp(64px, 8vw, 100px); padding: clamp(28px, 4vw, 48px); border-radius: 12px; background: var(--steel); border: 1px solid var(--ti-200); }
.process__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; margin-bottom: 36px; }
.process__head p { margin: 0; color: var(--muted); max-width: 44ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; --p: 0; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: var(--ti-300); }
.steps::after { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--wine), var(--ruby)); transform: scaleX(var(--p)); transform-origin: left; }
.steps__head { position: absolute !important; z-index: 2; top: 17px; left: calc(22px + (100% - 44px) * var(--p)); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 0 4px rgba(190,18,60,.18), 0 0 18px rgba(190,18,60,.7); pointer-events: none; }
.steps li:not(.steps__head) { position: relative; z-index: 1; opacity: .45; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.steps li.is-on { opacity: 1; transform: none; }
.steps__head { list-style: none; }
.steps__n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 11px; background: #fff; border: 1.5px solid var(--ti-300); color: var(--ti-500); font-weight: 700; font-size: 14px; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--ti-50); transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.steps li.is-on .steps__n { background: linear-gradient(180deg, #9b2a3f, var(--wine)); border-color: var(--wine); color: #fff; box-shadow: 0 0 0 6px var(--ti-50), 0 8px 20px rgba(122,28,45,.3); }
.steps li.is-on .steps__n::after { content: ""; position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 11px; border: 2px solid var(--ruby); animation: stepPing 1.2s var(--ease) 1; opacity: 0; }
@keyframes stepPing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.steps h4 { font-size: 15.5px; margin-bottom: 6px; }
.steps p { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.steps__t { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--wine); background: rgba(122,28,45,.08); padding: 3px 8px; border-radius: 5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before, .steps::after { top: 22px; bottom: 22px; left: 22px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(var(--p)); transform-origin: top; }
  .steps__head { left: 23px; top: calc(17px + (100% - 44px) * var(--p)); }
  .steps li:not(.steps__head) { padding-left: 64px; }
  .steps__n { position: absolute; left: 0; top: 0; }
}

/* ---------- Laboratorio ---------- */
.lab { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.photo--lab { aspect-ratio: 4 / 3; }
.tests { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tests li { position: relative; padding: 11px 14px 11px 38px; background: #fff; border: 1px solid var(--ti-200); border-radius: 6px; font-weight: 700; font-size: 14px; color: var(--ink); }
.tests li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f87171, var(--ruby) 50%, var(--wine-d)); box-shadow: 0 2px 4px rgba(122,28,45,.4); }
.lab__equip { color: var(--muted); font-size: 15px; }
.lab__media { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; gap: 18px; margin-top: 48px; }
.clip { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: #0f172a; aspect-ratio: 4 / 5; box-shadow: var(--shadow-1); }
.clip video { width: 100%; height: 100%; object-fit: cover; }
.clip figcaption, .photo--clip figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: 13px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.photo--clip { aspect-ratio: 4 / 5; }
@media (max-width: 960px) { .lab { grid-template-columns: 1fr; } .lab__media { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tests { grid-template-columns: 1fr; } }

/* ---------- Cobertura ---------- */
.coverage { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.coverage__map { margin: 0; position: relative; filter: drop-shadow(0 24px 40px rgba(122,28,45,.22)); animation: float 8s ease-in-out infinite; }
.map__fx { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map__routes path { fill: none; stroke: #f6e3c6; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; filter: drop-shadow(0 6px 6px rgba(40,0,10,.45)); transition: stroke .3s, stroke-width .3s; }
.coverage__map.is-in .map__routes path { animation: draw 1.4s var(--ease) forwards; }
.coverage__map.is-in .map__routes path:nth-child(2) { animation-delay: .25s; }
.coverage__map.is-in .map__routes path:nth-child(3) { animation-delay: .5s; }
.coverage__map.is-in .map__routes path:nth-child(4) { animation-delay: .75s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map__routes path.is-hot { stroke: #fff; stroke-width: 22; }
.map__flow path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 2 70; opacity: 0; }
.coverage__map.is-in .map__flow path { animation: flow 1.6s linear infinite, fadeIn .6s 1.8s forwards; }
@keyframes flow { to { stroke-dashoffset: -72; } }
@keyframes fadeIn { to { opacity: .95; } }
.map__hub circle { fill: #fff; }
.map__ring { fill: none !important; stroke: #fff; stroke-width: 5; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.map__ring--2 { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
.coverage__map.is-focus .map__routes path:not(.is-hot) { stroke-opacity: .35; }
.states span:hover, .states span.is-hub { border-color: var(--wine); color: var(--wine); }
.states span.is-hub { background: var(--wine); color: #fff; }
@keyframes float { 50% { transform: translateY(-10px); } }
.states { display: flex; flex-wrap: wrap; gap: 10px; }
.states span { padding: 8px 14px; border-radius: 6px; cursor: default; transition: all .25s; background: #fff; border: 1px solid var(--ti-300); font-weight: 700; font-size: 15px; color: var(--ink); box-shadow: var(--shadow-1); }
.fronts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.fronts li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--ti-200); position: relative; font-size: 15px; }
.fronts li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; background: var(--wine); transform: rotate(45deg); }
@media (max-width: 900px) { .coverage { grid-template-columns: 1fr; } .coverage__map { max-width: 520px; margin-inline: auto; } }
@media (max-width: 520px) { .fronts { grid-template-columns: 1fr; } }

/* ---------- Resultados ---------- */
.tabs { background: #fff; border: 1px solid var(--ti-200); border-radius: 12px; box-shadow: var(--shadow-2); overflow: hidden; }
.tabs__list { display: flex; overflow-x: auto; border-bottom: 1px solid var(--ti-200); background: var(--ti-50); }
.tabs__list button { flex: 1 0 auto; min-height: 54px; font-size: 14px !important; padding: 0 24px; border: 0; background: none; font-weight: 700; font-size: 15px; color: var(--muted); border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.tabs__list button[aria-selected="true"] { color: var(--wine); border-bottom-color: var(--wine); background: #fff; }
.tabs__panel { padding: clamp(24px, 4vw, 48px); }
.metric { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.metric p { color: var(--muted); }
.donut { width: 240px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--wine) calc(var(--v) * 1% * var(--on, 0)), var(--ti-200) 0); transition: --on 1.4s; position: relative; }
.donut::before { content: ""; position: absolute; inset: 22px; border-radius: 50%; background: #fff; box-shadow: inset 0 2px 8px rgba(15,23,42,.08); }
.donut span { position: relative; text-align: center; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; }
.donut strong { font-size: 42px; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 18px 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.legend__a::before { background: var(--wine); }
.legend__b::before { background: var(--rose); }
.tabs__panel:not(#tab-pozos) .legend__b::before { background: var(--rose); }
#tab-pozos .legend__b::before { background: var(--ti-300); }
@media (max-width: 760px) { .metric { grid-template-columns: 1fr; justify-items: center; text-align: left; } .donut { width: 200px; } }

.bars { display: grid; gap: 20px; margin-bottom: 8px; }
.bars__row { display: grid; grid-template-columns: 56px 1fr 110px; gap: 16px; align-items: center; }
.bars__label { font-weight: 700; color: var(--ink); font-size: 18px; }
.bars__track { height: 44px; border-radius: 10px; background: var(--ti-100); display: flex; overflow: hidden; }
.bars__fill { height: 100%; width: calc(var(--w) * var(--on, 0)); transition: width 1.4s var(--ease); }
.bars__fill--a { background: linear-gradient(180deg, #9b2a3f, var(--wine)); }
.bars__fill--b { background: linear-gradient(180deg, #edcbbb, var(--rose)); }
.bars__val { font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bars__row { grid-template-columns: 44px 1fr; } .bars__val { grid-column: 2; text-align: left; } }

.columns { display: flex; justify-content: center; align-items: end; gap: clamp(20px, 6vw, 72px); height: 300px; padding-top: 10px; border-bottom: 2px solid var(--ti-200); }
.columns__col { display: flex; flex-direction: column; align-items: center; justify-content: end; height: 100%; width: 110px; gap: 8px; }
.columns__col strong { order: -1; font-size: 22px; color: var(--ink); font-variant-numeric: tabular-nums; }
.columns__col > span:last-child { font-weight: 700; color: var(--muted); margin-bottom: -34px; }
.columns__title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.columns__title img { width: 30px; height: 30px; object-fit: contain; }
.columns__bar { position: relative; display: grid; place-items: start center; padding-top: 12px; width: 100%; height: calc(var(--h) * var(--on, 0) * .82); border-radius: 4px 4px 0 0; overflow: hidden; background: linear-gradient(180deg, #cbd5e1, #94a3b8); transition: height 1.4s var(--ease); }
.columns__bar--hi { background: linear-gradient(180deg, #9b2a3f, var(--wine)); }
.columns__bar img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.highlights div { padding: 18px; border-radius: 8px; background: var(--ti-50); border: 1px solid var(--ti-200); }
.highlights img { width: 34px; height: 34px; object-fit: contain; margin-bottom: 10px; }
.highlights strong { display: block; font-size: 24px; color: var(--wine); letter-spacing: -.02em; }
.highlights span { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .highlights { grid-template-columns: 1fr 1fr; } }
.is-on { --on: 1; }

/* ---------- CTA ---------- */
.cta { position: relative; padding: clamp(100px, 14vw, 180px) 0; overflow: hidden; color: #fff; isolation: isolate; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(76,5,25,.92) 0%, rgba(122,28,45,.78) 45%, rgba(15,23,42,.35) 100%); }
.cta .h2 { color: #fff; max-width: 18ch; }
.cta .lead { color: rgba(255,255,255,.85); margin-bottom: 30px; }

/* ---------- Neura-RTO ---------- */
.rto { position: relative; padding: clamp(90px, 12vw, 150px) 0; background: #020617; color: #cbd5e1; overflow: hidden; isolation: isolate; }
.rto::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 70% 50%, #000, transparent); }
.rto .h2 { color: #fff; }
.rto__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.rto__intro { font-size: 17px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.rto__text { font-size: 15.5px; line-height: 1.7; color: #94a3b8; }
.rto__mails { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.rto__mails a { padding: 9px 14px; border-radius: 6px; border: 1px solid rgba(227,185,165,.35); color: var(--rose); text-decoration: none; font-size: 14px; font-weight: 700; transition: background .2s; }
.rto__mails a:hover { background: rgba(227,185,165,.1); }
.rto__visual { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 40px 28px 120px; border-radius: 12px; background: linear-gradient(160deg, rgba(30,41,59,.7), rgba(2,6,23,.8)); border: 1px solid rgba(148,163,184,.18); box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06); }
.node { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 22px 12px; border-radius: 8px; background: rgba(15,23,42,.9); border: 1px solid rgba(148,163,184,.2); }
.node strong { color: #fff; font-size: 16px; }
.node span:last-child { font-size: 12.5px; color: #94a3b8; }
.node__dot { width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; margin-bottom: 6px; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.tunnel { position: relative; width: clamp(90px, 12vw, 160px); height: 40px; border-top: 1px dashed rgba(227,185,165,.5); border-bottom: 1px dashed rgba(227,185,165,.5); }
.tunnel span { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 12px var(--rose); animation: packet 2.4s linear infinite; }
.tunnel span:nth-child(2) { animation-delay: .8s; animation-direction: reverse; background: #60a5fa; box-shadow: 0 0 12px #60a5fa; }
.tunnel span:nth-child(3) { animation-delay: 1.6s; }
@keyframes packet { from { left: 0; } to { left: calc(100% - 8px); } }
.tunnel em { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 120px; text-align: center; line-height: 1.35; font-style: normal; font-size: 11px; letter-spacing: .06em; color: var(--rose); }
.rto__wave { position: absolute; left: 28px; right: 28px; bottom: 26px; height: 64px; border-top: 1px solid rgba(148,163,184,.15); }
.rto__wave svg { width: 100%; height: 100%; }
.rto__wave path { fill: none; stroke: #f87171; stroke-width: 2; vector-effect: non-scaling-stroke; }
@media (max-width: 960px) { .rto__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .rto__visual { grid-template-columns: 1fr; padding-bottom: 110px; } .tunnel { width: 40px; height: 70px; margin-inline: auto; border: 0; border-left: 1px dashed rgba(227,185,165,.5); border-right: 1px dashed rgba(227,185,165,.5); } .tunnel span { left: 50% !important; margin-left: -4px; animation-name: packetY; } @keyframes packetY { from { top: 0; } to { top: 100%; } } .tunnel em { top: 50%; left: calc(100% + 10px); transform: translateY(-50%); } }

/* ---------- Footer ---------- */
.footer { background: var(--ti-100); border-top: 1px solid var(--ti-200); padding: 72px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1.2fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: var(--ink-2); }
.footer a:hover { color: var(--wine); }
.footer p { color: var(--muted); }
.brand--footer .brand__mark { height: 56px; }
.footer__claim { margin-top: 16px; font-weight: 700; color: var(--ink) !important; }
.footer__ids { font-size: 13px; font-variant-numeric: tabular-nums; }
.footer__contact strong { color: var(--ink); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 22px 0 calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ti-300); font-size: 13px; color: var(--ti-500); }
@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Modales ---------- */
.modal { border: 0; padding: 0; border-radius: 12px; width: min(980px, 100% - 32px); max-height: min(92vh, 900px); background: #fff; color: var(--ink-2); box-shadow: 0 40px 120px rgba(2,6,23,.4); overflow: auto; }
.modal::backdrop { background: rgba(15,23,42,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: sticky; float: right; top: 14px; margin: 14px 14px 0 0; z-index: 3; width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--ti-200); background: #fff; font-size: 26px; line-height: 1; color: var(--ink); }
.modal__close:hover { color: var(--wine); border-color: var(--wine); }

.pm { display: grid; grid-template-columns: 1fr 1.05fr; }
.pm__stage { position: relative; min-height: 560px; display: grid; place-items: center; perspective: 1000px; background: radial-gradient(55% 50% at 50% 40%, #fff 0%, var(--ti-100) 65%, var(--ti-200) 100%); }
.pm__halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; top: 12%; background: radial-gradient(closest-side, rgba(255,255,255,1), rgba(255,255,255,0)); }
.pm__stage img { position: relative; z-index: 1; height: 440px; width: auto; transform-style: preserve-3d; transition: transform .25s ease-out; filter: drop-shadow(0 18px 24px rgba(15,23,42,.22)); }
.pm__pedestal { position: absolute; bottom: 48px; width: 48%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15,23,42,.35), rgba(15,23,42,0)); filter: blur(3px); }
.pm__info { padding: 48px 40px 40px; }
.pm__code { font-size: 36px; letter-spacing: -.03em; margin-bottom: 6px; }
.pm__name { font-size: 18px; font-weight: 700; color: var(--wine); margin-bottom: 14px; }
.pm__info > p { color: var(--muted); }
.pm__pres { border: 0; padding: 0; margin: 24px 0; }
.pm__pres legend { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button, .seg label span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--ti-300); background: #fff; font-size: 14px; font-weight: 700; color: var(--ink-2); cursor: pointer; transition: all .2s; }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; }
.seg input:focus-visible + span { outline: 3px solid var(--ruby); outline-offset: 2px; }
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 14.5px; }
.spec caption { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--ti-200); }
.spec th { color: var(--ink); width: 46%; }
.spec td { color: var(--ti-500); font-style: italic; }
@media (max-width: 820px) { .pm { grid-template-columns: 1fr; } .pm__stage { min-height: 360px; } .pm__stage img { height: 300px; } .pm__pedestal { bottom: 26px; } .pm__info { padding: 28px 22px 28px; } .pm__code { font-size: 34px; } }

/* Cotizador */
.modal--quote { width: min(760px, 100% - 32px); }
.quote { padding: 36px clamp(20px, 4vw, 44px) 28px; }
.quote__head h2 { font-size: 26px; margin-bottom: 22px; }
.quote__steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.quote__steps li { counter-increment: s; font-size: 13px; font-weight: 700; color: var(--ti-500); padding-top: 12px; border-top: 3px solid var(--ti-200); transition: all .3s; }
.quote__steps li::before { content: counter(s) ". "; }
.quote__steps li.is-active, .quote__steps li.is-done { color: var(--wine); border-top-color: var(--wine); }
.quote__step { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; color: var(--ink); }
.field input:not([type=radio]):not([type=checkbox]), .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 6px; border: 1px solid var(--ti-300); background: #fff; font: inherit; font-size: 16px; color: var(--ink);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 4px rgba(122,28,45,.12); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--ruby); }
.field.is-invalid > span::after { content: " · requerido"; color: var(--ruby); font-weight: 400; }
.field.is-invalid .seg span, .field.is-invalid .cards3 span { border-color: var(--ruby); }
.field__hint { margin: 0; color: var(--muted); }
.field__error { color: var(--ruby); font-weight: 700; margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inline { display: flex; gap: 8px; } .inline select { width: 90px !important; flex: none; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cards3 label { position: relative; }
.cards3 input, .checks input { position: absolute; opacity: 0; pointer-events: none; }
.cards3 span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 6px; border: 1px solid var(--ti-300); font-size: 13px; color: var(--muted); cursor: pointer; transition: all .2s; height: 100%; }
.cards3 strong { font-size: 15px; color: var(--ink); }
.cards3 input:checked + span, .checks input:checked + span { border-color: var(--wine); background: rgba(122,28,45,.05); box-shadow: 0 0 0 2px var(--wine) inset; }
.cards3 input:focus-visible + span, .checks input:focus-visible + span { outline: 3px solid var(--ruby); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checks label { position: relative; }
.checks span { display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 16px 48px; border-radius: 6px; border: 1px solid var(--ti-300); font-size: 13.5px; color: var(--muted); cursor: pointer; height: 100%; position: relative; transition: all .2s; }
.checks span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--ti-300); background: #fff; }
.checks input:checked + span::before { background: var(--wine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--wine); }
.checks strong { color: var(--ink); font-size: 15px; }
.quote__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--ti-200); }
.quote__nav #qNext { margin-left: auto; }
.quote__summary { text-align: center; }
.quote__ok { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 12px; display: grid; place-items: center; font-size: 30px; color: #fff; background: linear-gradient(180deg, #9b2a3f, var(--wine)); box-shadow: 0 10px 30px rgba(122,28,45,.35); }
.quote__summary h3 { font-size: 26px; margin-bottom: 10px; }
.quote__summary > p { color: var(--muted); }
.quote__pre { text-align: left; white-space: pre-wrap; font-family: var(--font); font-size: 14px; line-height: 1.6; background: var(--ti-50); border: 1px solid var(--ti-200); border-radius: 6px; padding: 18px 20px; max-height: 280px; overflow: auto; margin: 18px 0; }
.quote__final { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 620px) { .row2, .cards3, .checks { grid-template-columns: 1fr; } .quote__steps li { font-size: 11px; } }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Ajustes móviles: cifras y laboratorio ---------- */
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 18px 14px 16px; }
  .kpi__value { font-size: 30px; }
  .kpi__label { font-size: 12.5px; margin-bottom: 10px; }
  .kpi__delta { font-size: 10px; }
  .kpi__pre { display: block; margin-bottom: 4px; }
  .lab__media { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lab__media figcaption { display: none; }
  .unit__contact li { grid-template-columns: 64px 1fr; font-size: 13px; }
}

/* ---------- Barra superior más baja y botón compacto ---------- */
.nav__cta { min-height: 35px; padding: 0 17px; font-size: 11.5px; }
.chip[aria-selected="true"], .seg button[aria-pressed="true"], .seg input:checked + span, .states span.is-hub { border-radius: 8px; }
.columns__bar { border-radius: 8px 8px 0 0 !important; }

/* ---------- Footer reorganizado ---------- */
.footer { padding-top: 56px; }
.footer__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; align-items: start; padding-bottom: 40px; }
.footer__brand .footer__claim { margin: 14px 0 0; max-width: 28ch; }
.footer__sites { gap: 14px !important; }
.footer__sites li { display: flex; flex-direction: column; gap: 2px; }
.footer__sites strong { color: var(--ink); }
.footer__sites span { font-size: 13.5px; color: var(--muted); }
.footer__contact { gap: 10px !important; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Selector de idioma ---------- */
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--ti-300); border-radius: 8px; background: #fff; flex-shrink: 0; }
.lang button { min-width: 34px; height: 28px; padding: 0 8px; border: 0; border-radius: 6px; background: none; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--ti-500); transition: background .2s, color .2s; }
.lang button:hover { color: var(--wine); }
.lang button[aria-pressed="true"] { background: var(--wine); color: #fff; }
@media (max-width: 1060px) { .lang { margin-left: auto; } .nav__burger { margin-left: 10px; } }

/* ---------- Contenido centrado con márgenes laterales ---------- */
.wrap { width: min(1120px, 100% - 64px); }
.nav__inner { width: min(1200px, 100% - 64px); gap: 22px; }
.nav__links { gap: 22px; }
.hero__panel { right: max(32px, calc((100vw - 1200px) / 2)); }
.hero__chapter { left: max(32px, calc((100vw - 1200px) / 2)); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
@media (max-width: 1180px) { .nav__links { gap: 16px; } }
@media (max-width: 900px) {
  .wrap, .nav__inner { width: min(1120px, 100% - 40px); }
  .hero__panel { right: 16px; }
  .hero__chapter { left: 16px; }
}

/* ---------- Footer compacto ---------- */
.footer { padding-top: 32px; }
.footer__grid { gap: 32px; padding-bottom: 20px; align-items: center; }
.footer h4 { margin-bottom: 10px; }
.brand--footer .brand__mark { height: 44px; }
.footer__brand .footer__claim { margin-top: 8px; font-size: 14px; }
.footer__sites { gap: 6px !important; }
.footer__sites li { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.footer__sites span::before { content: "· "; }
.footer__contact { grid-template-columns: auto auto; gap: 6px 20px !important; font-size: 14px; }
.footer__base { padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 520px) { .footer__contact { grid-template-columns: 1fr; } }
@media (max-width: 1060px) { .nav__inner { gap: 10px; } }
@media (max-width: 420px) { .brand__name { font-size: 16px; } .brand__mark { height: 44px !important; } .lang button { min-width: 30px; padding: 0 6px; } }

/* =========================================================
   Portada: texto directo sobre la imagen, alineado a la derecha
   ========================================================= */
.hero__panel { right: max(28px, 2.4vw) !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  padding: 0 !important; width: min(640px, 52vw) !important;
  text-align: right; color: #fff; transform: translateY(-40%) !important;
}
.hero__brand { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero__dot { display: block; width: 5px; height: 5px; margin: 10px 0 10px auto; background: var(--ruby); border-radius: 1px; box-shadow: 0 0 10px rgba(190,18,60,.8); }
.hero__sub { margin: 0 0 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.85); text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero__title { color: #fff !important; font-size: clamp(38px, 4.4vw, 68px) !important; line-height: 1.04 !important; letter-spacing: -.035em !important; margin: 0 !important; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.hero__line { display: block; }
.hero__title .wine { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; color: #c0293f !important; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero__panel > * { opacity: 0; translate: 0 16px; animation: heroIn .9s var(--ease) forwards; }
.hero__panel > :nth-child(2) { animation-delay: .1s; }
.hero__panel > :nth-child(3) { animation-delay: .18s; }
.hero__panel > :nth-child(4) { animation-delay: .28s; }
@keyframes heroIn { to { opacity: 1; translate: 0 0; } }
.hero__shade { background:
    linear-gradient(270deg, rgba(8,12,24,.62) 0%, rgba(8,12,24,.32) 34%, rgba(8,12,24,0) 62%),
    linear-gradient(0deg, rgba(8,12,24,.5) 0%, rgba(8,12,24,0) 30%) !important; transition: opacity .6s; }
.hero.is-final .hero__shade { opacity: 0; }
.hero.is-final .hero__brand, .hero.is-final .hero__sub, .hero.is-final .hero__title { color: var(--ink) !important; text-shadow: none; }
.hero.is-final .hero__title .wine { color: var(--wine) !important; text-shadow: none; }
.hero__brand, .hero__sub, .hero__title { transition: color .6s; }
@media (max-width: 900px) {
  .hero__panel { left: 16px !important; right: 16px !important; width: auto !important; top: auto !important; bottom: 28px !important; transform: none !important; }
  .hero__title { font-size: clamp(32px, 9vw, 44px) !important; }
  .hero__shade { background: linear-gradient(180deg, rgba(8,12,24,.55) 0%, rgba(8,12,24,0) 30%, rgba(8,12,24,0) 45%, rgba(8,12,24,.7) 100%) !important; }
}

/* =========================================================
   Catálogo en rueda 3D
   ========================================================= */
.carousel { position: relative; }
.carousel__stage {
  position: relative; height: 480px; perspective: 1300px; perspective-origin: 50% 60%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; overflow: hidden;
  border-radius: 14px;
  background: transparent;
  border: 0;
}
.carousel__stage:focus-visible { box-shadow: 0 0 0 3px rgba(190,18,60,.35); }
.carousel__stage.is-drag { cursor: grabbing; }
.carousel__glow { display: none; position: absolute; left: 50%; top: 4%; width: 420px; height: 420px; margin-left: -210px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,1), rgba(255,255,255,0)); pointer-events: none; }
.carousel__floor { position: absolute; left: 50%; bottom: 46px; width: min(980px, 96%); height: 150px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(15,23,42,.14), rgba(15,23,42,.04) 60%, transparent); pointer-events: none; }
.carousel__ring { position: absolute; left: 50%; top: 70px; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.ring__item {
  position: absolute; left: -75px; top: 0; width: 150px; height: 300px; padding: 0; border: 0; background: none;
  display: flex; align-items: flex-end; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; cursor: inherit;
}
.ring__jar { height: 270px; width: auto; pointer-events: none; -webkit-box-reflect: below 2px linear-gradient(transparent 72%, rgba(255,255,255,.28)); transition: transform .5s var(--ease); }
.ring__item.is-front .ring__jar { transform: translateY(-10px) scale(1.06); }
.ring__tile { position: relative; display: block; width: 150px; height: 200px; margin-bottom: 30px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--ti-200); box-shadow: 0 14px 30px rgba(15,23,42,.14); transition: transform .5s var(--ease); }
.ring__tile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ring__tile img.ring__icon { object-fit: contain; padding: 34px 26px 60px; }
.ring__tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,23,42,.72)); }
.ring__tag { position: absolute; z-index: 1; left: 10px; right: 10px; bottom: 10px; font-size: 12.5px; font-weight: 700; line-height: 1.25; color: #fff; text-align: left; }
.ring__item.is-front .ring__tile { transform: translateY(-10px) scale(1.06); box-shadow: 0 22px 40px rgba(122,28,45,.25); border-color: rgba(122,28,45,.5); }

.carousel__bar { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; gap: 20px; max-width: 760px; margin: 26px auto 0; }
.carousel__nav { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--ti-300); background: #fff; display: grid; place-items: center; transition: all .25s var(--ease); }
.carousel__nav svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel__nav:hover { background: var(--wine); border-color: var(--wine); transform: translateY(-2px); }
.carousel__nav:hover svg { stroke: #fff; }
.carousel__info { text-align: center; min-height: 172px; transition: opacity .2s, transform .2s; }
.carousel__info.is-swap { opacity: 0; transform: translateY(6px); }
.carousel__line { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }
.carousel__code { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.03em; margin-bottom: 4px; }
.carousel__name { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.carousel__desc { margin: 0 auto 18px; max-width: 46ch; color: var(--muted); font-size: 14.5px; }
.carousel__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.carousel__meta { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 18px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ti-500); }
.carousel__count strong { color: var(--wine); font-size: 14px; }
.carousel__hint::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--ti-300); vertical-align: middle; margin-right: 12px; }
@media (max-width: 640px) {
  .carousel__stage { height: 360px; }
  .carousel__ring { top: 40px; }
  .ring__item { left: -56px; width: 112px; height: 240px; }
  .ring__jar { height: 210px; }
  .ring__tile { width: 112px; height: 150px; margin-bottom: 26px; }
  .ring__tile img.ring__icon { padding: 24px 18px 46px; }
  .ring__tag { font-size: 11px; }
  .carousel__bar { grid-template-columns: 44px 1fr 44px; gap: 10px; }
  .carousel__nav { width: 44px; height: 44px; }
  .carousel__glow { width: 300px; height: 300px; margin-left: -150px; }
}

/* ---------- Carrusel plano: profundidad por tamaño ---------- */
.carousel__stage { height: 400px; perspective: none; overflow: hidden; }
.carousel__ring { position: absolute; inset: 0; width: auto; height: auto; transform: none !important; transform-style: flat; }
.carousel__floor { bottom: 34px; height: 90px; width: min(760px, 90%); background: radial-gradient(closest-side, rgba(15,23,42,.12), rgba(15,23,42,.03) 60%, transparent); }
.ring__item {
  left: 50%; top: auto; bottom: 70px; width: 170px; height: 300px; margin-left: -85px;
  transform-origin: 50% 100%; backface-visibility: visible; -webkit-backface-visibility: visible;
  will-change: transform, opacity;
}
.ring__jar { height: 290px; -webkit-box-reflect: below 2px linear-gradient(transparent 78%, rgba(255,255,255,.3)); }
.ring__item.is-front .ring__jar, .ring__item.is-front .ring__tile { transform: none; }
.ring__tile { width: 170px; height: 230px; margin-bottom: 0; }
.ring__item:not(.is-front) { cursor: pointer; }
@media (max-width: 640px) {
  .carousel__stage { height: 300px; }
  .ring__item { width: 118px; height: 210px; margin-left: -59px; bottom: 52px; }
  .ring__jar { height: 200px; }
  .ring__tile { width: 118px; height: 160px; }
}

/* =========================================================
   Títulos estilo editorial (Arial ExtraBold, tracking ajustado)
   ========================================================= */
.h2 { font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-weight: 800; color: #0f172a; letter-spacing: -.025em; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.1; text-wrap: balance; }

/* =========================================================
   Paneles de cifras (anatomía AI Studio)
   ========================================================= */
.kpis { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.kpi2 {
  position: relative; overflow: hidden; padding: 24px; border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  transition: box-shadow .3s, border-color .3s, transform .3s;
}
.kpi2:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); border-color: rgba(122,28,45,.4); }
.kpi2::before {
  content: ""; position: absolute; top: 0; right: 0; width: 96px; height: 96px; pointer-events: none;
  background: linear-gradient(to bottom left, rgba(122,28,45,.10), rgba(227,185,165,.15), transparent);
  border-bottom-left-radius: 100%; transform-origin: top right; transition: transform .3s;
}
.kpi2:hover::before { transform: scale(1.1); }
.kpi2__top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi2__badge { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #7a1c2d; padding: 2px 8px; border-radius: 999px; background: rgba(122,28,45,.10); }
.kpi2__icon { width: 32px; height: 32px; border-radius: 12px; background: rgba(122,28,45,.10); color: #7a1c2d; display: grid; place-items: center; }
.kpi2__icon svg, .kpi2__trend svg, .kpi2__check { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kpi2__value { margin: 0 0 4px; font-size: clamp(30px, 2.8vw, 36px); font-weight: 800; color: #0f172a; letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi2__unit { font-size: clamp(20px, 1.8vw, 24px); font-weight: 700; color: #7a1c2d; letter-spacing: -.01em; }
.kpi2__desc { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: #334155; line-height: 1.375; min-height: 2.75em; }
.kpi2__foot { padding-top: 12px; border-top: 1px solid rgba(226,232,240,.8); font-size: 11px; color: #64748b; font-weight: 500; }
.kpi2__foot--row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi2__foot--start { justify-content: flex-start; color: #475569; }
.kpi2__trend { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: #047857; background: #ecfdf5; padding: 2px 8px; border-radius: 6px; }
.kpi2__trend svg { width: 12px; height: 12px; }
.kpi2__row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.kpi2__row strong { color: #0f172a; }
.kpi2__bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.kpi2__bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #7a1c2d, #be123c); transition: width 1.4s var(--ease) .3s; }
.kpi2.is-in .kpi2__bar span { width: 76%; }
.kpi2__live { width: 8px; height: 8px; border-radius: 50%; background: #10b981; flex: none; animation: livePulse 2s cubic-bezier(.4,0,.6,1) infinite; }
@keyframes livePulse { 50% { opacity: .5; } }
.kpi2__check { width: 14px; height: 14px; color: #7a1c2d; flex: none; }
@media (max-width: 1024px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; gap: 16px; } }

/* =========================================================
   Neura-RTO: servidores, túnel binario y telemetría MWD
   ========================================================= */
.rto__visual { display: block !important; padding: 28px 24px 22px !important; }
.rto__link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.srv { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.srv__art { width: 104px; height: auto; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); }
.srv__screen { font: 700 9px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; fill: #4ade80; letter-spacing: .08em; }
.srv__scan { fill: rgba(74,222,128,.15); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 50% { fill: rgba(74,222,128,.45); } }
.vent { stroke: #334155; stroke-width: 1.4; stroke-linecap: round; }
.led { animation: blink 1.4s steps(2, jump-none) infinite; }
.led--g { fill: #22c55e; } .led--a { fill: #f59e0b; } .led--r { fill: #f43f5e; }
.d1 { animation-delay: .2s; } .d2 { animation-delay: .55s; } .d3 { animation-delay: .9s; } .d4 { animation-delay: 1.15s; }
@keyframes blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: .25; } }
.srv figcaption { display: flex; flex-direction: column; align-items: center; text-align: center; line-height: 1.3; }
.srv figcaption strong { color: #fff; font-size: 14px; }
.srv figcaption span { color: #94a3b8; font-size: 11.5px; }

.bin { position: relative; height: 150px; margin-top: -34px; }
.bin__lane { position: absolute; left: 0; right: 0; height: 40px; overflow: hidden; border-top: 1px dashed rgba(227,185,165,.35); border-bottom: 1px dashed rgba(227,185,165,.35); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.bin__lane--out { top: 34px; }
.bin__lane--in { top: 80px; border-color: rgba(96,165,250,.3); }
.bin__lane span { position: absolute; left: 0; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; white-space: nowrap; animation: binOut 2s linear forwards; }
.bin__lane--out span { color: var(--rose); text-shadow: 0 0 8px rgba(227,185,165,.6); }
.bin__lane--in span { color: #60a5fa; text-shadow: 0 0 8px rgba(96,165,250,.6); animation-name: binIn; }
@keyframes binOut { from { left: -12%; } to { left: 100%; } }
@keyframes binIn { from { left: 100%; } to { left: -12%; } }
.bin__label { position: absolute; left: 0; right: 0; top: 128px; margin: 0; display: flex; flex-direction: column; align-items: center; font-size: 10.5px; letter-spacing: .08em; color: var(--rose); line-height: 1.35; text-align: center; }

.tel { margin-top: 22px; padding: 14px 14px 12px; border-radius: 12px; background: rgba(2,6,23,.75); border: 1px solid rgba(148,163,184,.16); }
.tel__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tel__title { display: inline-flex; align-items: center; gap: 8px; font: 700 10.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .14em; text-transform: uppercase; color: #e2e8f0; }
.tel__live { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
.tel__note { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.tel__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trk { padding: 8px 10px 4px; border-radius: 8px; background: rgba(15,23,42,.9); border: 1px solid rgba(148,163,184,.12); }
.trk__top { display: flex; justify-content: space-between; align-items: baseline; font: 700 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.trk__top b { color: #f8fafc; font-size: 11px; letter-spacing: .02em; }
.trk__top i { font-style: normal; font-variant-numeric: tabular-nums; }
.trk svg { width: 100%; height: 46px; display: block; }
.trk__line { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.trk__fill { stroke: none; opacity: .18; }
.trk[data-key="rop"] .trk__line { stroke: #f87171; } .trk[data-key="rop"] .trk__fill { fill: #f87171; }
.trk[data-key="wob"] .trk__line { stroke: #60a5fa; } .trk[data-key="wob"] .trk__fill { fill: #60a5fa; }
.trk[data-key="gr"] .trk__line { stroke: #4ade80; } .trk[data-key="gr"] .trk__fill { fill: #4ade80; }
.trk[data-key="tq"] .trk__line { stroke: #fbbf24; } .trk[data-key="tq"] .trk__fill { fill: #fbbf24; }
.svy { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: rgba(122,28,45,.18); border: 1px solid rgba(227,185,165,.2); font: 600 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #cbd5e1; letter-spacing: .04em; }
.svy b { color: #fff; font-variant-numeric: tabular-nums; }
.svy__tag { color: var(--rose); text-transform: uppercase; letter-spacing: .12em; }
.svy.is-new { animation: svyFlash 1s ease-out; }
@keyframes svyFlash { from { background: rgba(190,18,60,.5); } }
@media (max-width: 520px) {
  .rto__link { grid-template-columns: 1fr 1fr; }
  .bin { grid-column: 1 / -1; grid-row: 2; height: 120px; margin-top: 0; }
  .bin__lane--out { top: 10px; } .bin__lane--in { top: 56px; } .bin__label { top: 102px; }
  .srv__art { width: 86px; }
}

/* ---------- Neura-RTO: visor 3D del subsuelo ---------- */
.geo { position: relative; margin-top: 18px; height: 320px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(148,163,184,.18); background: #030712; box-shadow: inset 0 0 60px rgba(0,0,0,.6); }
.geo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.geo__legend { position: absolute; top: 10px; left: 10px; padding: 9px 11px; border-radius: 8px; background: rgba(15,23,42,.78); border: 1px solid rgba(148,163,184,.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); pointer-events: none; }
.geo__title { margin: 0 0 6px; font-size: 11.5px; font-weight: 800; color: #fff; letter-spacing: .01em; }
.geo__legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.geo__legend li { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: #cbd5e1; }
.geo__legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); opacity: .85; }
.geo__legend i.geo__well { width: 14px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #3b82f6, #22c55e, #eab308, #ef4444); opacity: 1; }
.geo__gr { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 2px 0; margin-top: 7px; padding-top: 6px; border-top: 1px solid rgba(148,163,184,.2); }
.geo__gr span { grid-column: 1 / -1; font: 700 9px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .1em; color: #94a3b8; text-transform: uppercase; }
.geo__gr b { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #3b82f6 0 25%, #22c55e 25% 50%, #eab308 50% 75%, #ef4444 75%); }
.geo__gr em { font-style: normal; font-size: 9px; color: #64748b; }
.geo__status { position: absolute; right: 10px; top: 10px; padding: 5px 10px; border-radius: 999px; font: 700 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #fda4af; background: rgba(190,18,60,.18); border: 1px solid rgba(244,63,94,.4); }
.geo__status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #f43f5e; vertical-align: 1px; animation: livePulse 1s infinite; }
.geo__status.is-done { color: #86efac; background: rgba(34,197,94,.15); border-color: rgba(74,222,128,.45); }
.geo__status.is-done::before { background: #22c55e; }
.bin { height: 120px; }
@media (max-width: 520px) { .geo { height: 240px; } .geo__legend { transform: scale(.88); transform-origin: top left; } }

@media (max-width: 520px) { .geo__legend ul { display: none; } .geo__title { margin-bottom: 4px; } }


/* ---------- Servidores de rack realistas ---------- */
.srv__art { width: 132px !important; filter: drop-shadow(0 16px 26px rgba(0,0,0,.55)); }
.rk-led { fill: #22c55e; }
.rk-on { opacity: .85; filter: drop-shadow(0 0 1.5px rgba(34,197,94,.9)); }
.rk-pwr { fill: #38bdf8; filter: drop-shadow(0 0 2px rgba(56,189,248,.9)); }
.rk-act { opacity: .3; transition: opacity .08s; }
.rk-act.is-busy { opacity: 1; filter: drop-shadow(0 0 1.5px rgba(34,197,94,.9)); }
.rk-lcd { font: 700 5.6px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; fill: #4ade80; letter-spacing: .06em; }
.rk-txt { font: 700 5px Arial, sans-serif; fill: #64748b; letter-spacing: .12em; }
.bin__lane span { font-size: 10.5px; opacity: .8; }

/* Neura-RTO: texto alineado arriba con el panel */
.rto__grid { align-items: start; }

/* ---------- Encabezado de Quiénes somos (AI Studio) ---------- */
.about__head { max-width: 768px; margin-bottom: 48px; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; }
.badge-xl {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; margin-bottom: 20px;
  border-radius: 16px; background: linear-gradient(to right, #7a1c2d, #991b1b);
  color: #fff; font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; line-height: 1.5;
  box-shadow: 0 10px 15px -3px rgba(122,28,45,.25), 0 4px 6px -4px rgba(122,28,45,.25);
}
.badge-xl svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: #fecdd3; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.about__lead { margin: 16px 0 0; color: #475569; font-size: 16px; line-height: 1.625; text-wrap: balance; }
@media (min-width: 768px) { .badge-xl { font-size: 20px; } .about__lead { font-size: 18px; } }
.about__head + .accordion { margin-top: 0; }

/* ---------- Badges de sección: misma estética, 20% más pequeños ---------- */
.badge-xl { gap: 10px; padding: 8px 16px; margin-bottom: 16px; border-radius: 13px; font-size: 12.8px; letter-spacing: .05em; }
.badge-xl svg { width: 19px; height: 19px; }
@media (min-width: 768px) { .badge-xl { font-size: 16px; } }
.rto .badge-xl { box-shadow: 0 10px 24px -6px rgba(190,18,60,.35); }

/* =========================================================
   Laboratorio: visor en secuencia
   ========================================================= */
.labshow { position: relative; aspect-ratio: 4 / 5; max-height: 600px; width: 100%; border-radius: 24px; overflow: hidden; background: #0f172a; box-shadow: 0 25px 50px -12px rgba(15,23,42,.35); border: 1px solid #e2e8f0; }
.labshow__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .45s var(--ease); }
.labshow__slide.is-active { opacity: 1; }
.labshow__slide img, .labshow__slide video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s ease-out; }
.labshow__slide.is-active img, .labshow__slide.is-active video { transform: scale(1); }
.labshow__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,6,23,.45) 0%, transparent 22%, transparent 62%, rgba(2,6,23,.75) 100%); pointer-events: none; }
.labshow__slide figcaption { position: absolute; z-index: 1; left: 22px; right: 90px; bottom: 22px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; }
.labshow__n { flex: none; font: 700 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 4px 8px; border-radius: 999px; background: rgba(122,28,45,.85); letter-spacing: .1em; }
.labshow__bars { position: absolute; z-index: 2; top: 16px; left: 16px; right: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.labshow__bars span { height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; position: relative; }
.labshow__bars span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; }
.labshow__nav { position: absolute; z-index: 2; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.labshow__nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35); background: rgba(15,23,42,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background .2s; }
.labshow__nav button:hover { background: var(--wine); border-color: var(--wine); }
.labshow__nav svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lab { align-items: center; }
@media (max-width: 960px) { .labshow { aspect-ratio: 4 / 4.6; } }

/* =========================================================
   Resultados: tres paneles
   ========================================================= */
.res { display: grid; gap: 24px; }
.rpanel {
  position: relative; overflow: hidden; padding: 28px 30px 30px; border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.08);
  transition: box-shadow .3s, border-color .3s;
}
.rpanel:hover { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); border-color: rgba(122,28,45,.35); }
.rpanel::before { content: ""; position: absolute; top: 0; right: 0; width: 160px; height: 160px; pointer-events: none; background: linear-gradient(to bottom left, rgba(122,28,45,.10), rgba(227,185,165,.15), transparent); border-bottom-left-radius: 100%; }
.rpanel__head { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.rpanel__head .kpi2__icon img { width: 18px; height: 18px; object-fit: contain; }
.rpanel__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.rpanel__title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.rpanel__big { margin: 0 0 12px; font-size: clamp(40px, 4vw, 56px); font-weight: 800; color: #0f172a; letter-spacing: -.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.rpanel__big small { display: block; margin-top: 6px; font-size: 14px; font-weight: 700; color: #7a1c2d; letter-spacing: 0; }
.rpanel__note { margin: 14px 0 0; font-size: 13.5px; color: #64748b; }
.rpanel__text { font-size: 14.5px; color: #475569; }
.rpanel__label { margin: 18px 0 8px; font: 700 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.rpanel .kpi2__trend { font-size: 12px; }

/* Ventas por tambor: columnas con tendencia */
.vbars { position: relative; height: 250px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 26px; padding: 26px 18px 30px; }
.vbars__grid { position: absolute; inset: 26px 0 30px; display: grid; grid-template-rows: repeat(4, 1fr); pointer-events: none; }
.vbars__grid span { border-top: 1px dashed #e2e8f0; }
.vbars__col { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.vbars__col b { font-size: 17px; font-weight: 800; color: #0f172a; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.vbars__bar { width: min(78px, 100%); height: calc(var(--h) * var(--on, 0) * .82); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, #cbd5e1, #94a3b8); transition: height 1.4s var(--ease); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.vbars__col.is-hi .vbars__bar { background: linear-gradient(180deg, #be123c, #7a1c2d); box-shadow: 0 12px 24px -8px rgba(122,28,45,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.vbars__col em { position: absolute; bottom: -24px; font-style: normal; font-size: 12.5px; font-weight: 700; color: #64748b; }
.vbars__trend { position: absolute; z-index: 2; left: 18px; right: 18px; top: 52px; height: calc((100% - 82px) * .82 - 26px); width: calc(100% - 36px); overflow: visible; pointer-events: none; }
.vbars__trend polyline { fill: none; stroke: #be123c; stroke-width: 2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .6s 1.2s; }
.rpanel.is-in .vbars, .rpanel.is-in .hbars { --on: 1; }
.rpanel.is-in .vbars__trend polyline { opacity: .7; }
.rpanel__minis { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(226,232,240,.9); }
.rpanel__minis div { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid #e2e8f0; }
.rpanel__minis img { grid-row: 1 / 3; width: 30px; height: 30px; object-fit: contain; }
.rpanel__minis strong { font-size: 20px; font-weight: 800; color: #7a1c2d; line-height: 1.1; }
.rpanel__minis span { font-size: 12px; color: #64748b; line-height: 1.3; }

/* Producción: barras horizontales apiladas */
.hbars { display: grid; gap: 16px; }
.hbars__row { display: grid; grid-template-columns: 48px 1fr 92px; gap: 14px; align-items: center; }
.hbars__y { font-size: 17px; font-weight: 800; color: #0f172a; }
.hbars__track { display: flex; height: 46px; border-radius: 12px; background: #e2e8f0; overflow: hidden; }
.hbars__a, .hbars__b { display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; font-size: 12.5px; font-weight: 800; width: calc(var(--w) * var(--on, 0)); transition: width 1.4s var(--ease); }
.hbars__a { background: linear-gradient(180deg, #9b2a3f, #7a1c2d); color: #fff; }
.hbars__b { background: linear-gradient(180deg, #f0d2c4, #e3b9a5); color: #4c0519; }
.hbars__t { text-align: right; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.hbars .legend { margin: 4px 0 0; }
.hbars .legend__b::before { background: #e3b9a5 !important; }
.deltas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.deltas div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.75); border: 1px solid #e2e8f0; }
.deltas span { font: 700 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.deltas strong { font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.deltas strong.up { color: #047857; }
.deltas em { font-style: normal; font-size: 12px; color: #64748b; }

/* Intervención de pozos: anillo animado */
.ring2 { position: relative; width: min(260px, 100%); aspect-ratio: 1; margin-inline: auto; }
.ring2 svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring2 circle { fill: none; stroke-width: 12; }
.ring2__bg { stroke: #e2e8f0; }
.ring2__fg { stroke: url(#ringG); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.rpanel.is-in .ring2__fg { stroke-dashoffset: 75.4; }
.ring2__c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring2__c strong { font-size: 52px; font-weight: 800; color: #0f172a; letter-spacing: -.04em; line-height: 1; }
.ring2__c > span { font-size: 13px; color: #64748b; font-weight: 600; }
.split2 { display: flex; height: 34px; border-radius: 10px; overflow: hidden; margin-top: 14px; font-size: 12px; font-weight: 700; }
.split2 div { display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.split2 b { font-size: 14px; }
.split2__a { flex: 76; background: linear-gradient(90deg, #7a1c2d, #be123c); color: #fff; }
.split2__b { flex: 24; background: #e2e8f0; color: #475569; }
.wells { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wells li { font: 700 11.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 5px 9px; border-radius: 8px; background: rgba(122,28,45,.08); color: #7a1c2d; border: 1px solid rgba(122,28,45,.15); }

@media (max-width: 900px) {
  .rpanel { padding: 22px 18px 24px; }
  .rpanel__grid { grid-template-columns: 1fr; gap: 24px; }
  .rpanel__minis { grid-template-columns: 1fr 1fr; }
  #rpWells .ring2 { width: 220px; }
}
@media (max-width: 520px) {
  .rpanel__minis { grid-template-columns: 1fr; }
  .hbars__row { grid-template-columns: 40px 1fr; }
  .hbars__t { grid-column: 2; text-align: left; font-size: 13px; }
  .vbars { gap: 14px; padding-inline: 4px; }
}

/* =========================================================
   Ingeniería: tarjetas de servicio con ícono propio
   ========================================================= */
.services { gap: 20px; }
.svc {
  position: relative; overflow: hidden; padding: 24px; border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
  border: 1px solid #e2e8f0; box-shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.08);
  transition: box-shadow .3s, border-color .3s, transform .3s var(--ease);
}
.svc::before { content: ""; position: absolute; top: 0; right: 0; width: 96px; height: 96px; pointer-events: none; background: linear-gradient(to bottom left, rgba(122,28,45,.10), rgba(227,185,165,.15), transparent); border-bottom-left-radius: 100%; transition: transform .3s; transform-origin: top right; }
.svc:hover { transform: translateY(-4px); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); border-color: rgba(122,28,45,.4); }
.svc:hover::before { transform: scale(1.15); }
.svc__top { position: relative; margin-bottom: 18px; }
.svc__icon {
  position: relative; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, #9b2a3f, #7a1c2d 55%, #4c0519);
  box-shadow: 0 10px 20px -6px rgba(122,28,45,.45), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .4s var(--ease);
}
.svc__icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.22), transparent 45%); }
.svc__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc:hover .svc__icon { transform: rotate(-6deg) scale(1.06); }
.svc h3 { position: relative; font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.svc p { position: relative; margin: 0; font-size: 13.5px; color: #475569; }

/* =========================================================
   Ingeniería: montaje tipo video
   ========================================================= */
.reel { position: relative; margin-top: 36px; aspect-ratio: 21 / 9; border-radius: 24px; overflow: hidden; background: #0f172a; box-shadow: 0 25px 50px -12px rgba(15,23,42,.35); }
.reel__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease; will-change: opacity, transform; }
.reel__frames img.is-active { opacity: 1; z-index: 2; }
.reel__frames img.is-out { opacity: 0; z-index: 1; }
.reel__frames img.kb1 { animation: kb1 1.8s linear forwards; }
.reel__frames img.kb2 { animation: kb2 1.8s linear forwards; }
.reel__frames img.kb3 { animation: kb3 1.8s linear forwards; }
.reel__frames img.kb4 { animation: kb4 1.8s linear forwards; }
@keyframes kb1 { from { transform: scale(1.08) translate(-1.5%, 0); } to { transform: scale(1.14) translate(1.5%, -1%); } }
@keyframes kb2 { from { transform: scale(1.14) translate(1%, 1%); } to { transform: scale(1.06) translate(-1%, 0); } }
@keyframes kb3 { from { transform: scale(1.06) translate(0, 1%); } to { transform: scale(1.13) translate(0, -1.5%); } }
@keyframes kb4 { from { transform: scale(1.12) translate(1.5%, -1%); } to { transform: scale(1.06) translate(-1.5%, 1%); } }
.reel__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(2,6,23,.35) 0%, transparent 25%, transparent 70%, rgba(2,6,23,.55) 100%); }
.reel__hud { position: absolute; z-index: 4; left: 20px; right: 20px; bottom: 22px; display: flex; align-items: center; gap: 10px; color: #fff; font: 700 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .16em; text-transform: uppercase; }
.reel__rec { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 10px rgba(244,63,94,.9); animation: livePulse 1.2s infinite; }
.reel__count { margin-left: auto; opacity: .85; }
.reel__bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); }
.reel__bar span { display: block; height: 100%; background: linear-gradient(90deg, #be123c, #e3b9a5); transform: scaleX(0); transform-origin: left; transition: transform .9s linear; }
@media (max-width: 760px) { .reel { aspect-ratio: 16 / 10; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .reel__frames img[data-src="assets/img/reel/r01.webp"] { opacity: 1; } }

/* =========================================================
   Portada con video de fondo
   ========================================================= */
.hero--video { height: 100vh; height: 100svh; min-height: 560px; }
.hero--video .hero__stage { position: relative; height: 100%; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; background: #0b1120; }
.hero--video .hero__shade { background:
    linear-gradient(270deg, rgba(6,10,20,.78) 0%, rgba(6,10,20,.5) 30%, rgba(6,10,20,.12) 58%, rgba(6,10,20,0) 72%),
    linear-gradient(0deg, rgba(6,10,20,.45) 0%, rgba(6,10,20,0) 26%),
    linear-gradient(180deg, rgba(6,10,20,.25) 0%, rgba(6,10,20,0) 18%) !important; }
.hero--video .hero__panel { transform: translateY(-46%) !important; }
@media (max-width: 900px) {
  .hero--video .hero__panel { transform: none !important; }
  .hero--video .hero__shade { background: linear-gradient(180deg, rgba(6,10,20,.35) 0%, rgba(6,10,20,0) 22%, rgba(6,10,20,0) 42%, rgba(6,10,20,.82) 100%) !important; }
  .hero--video .hero__hint { display: none; }
}


/* Barra superior semitransparente */
.nav { background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-bottom-color: rgba(226,232,240,.6); }
.nav.is-scrolled { background: rgba(255,255,255,.7); }
.mobile-menu { background: rgba(255,255,255,.96); }

/* =========================================================
   Escala general 90% en escritorio (equivale al zoom del navegador)
   ========================================================= */
@media (min-width: 1100px) {
  html { zoom: .9; }
  /* las unidades de pantalla también se reducen con el zoom: se compensan */
  .hero--video { height: calc(100vh / .9); height: calc(100svh / .9); }
}

/* ---------- Foto de Quiénes somos: encuadre centrado en la cuadrilla ---------- */
.about__photo img { object-position: 50% 50%; }

/* ---------- Título de filiales como badge ---------- */
.units__title { margin: clamp(56px, 7vw, 88px) 0 28px; }
.units__title .badge-xl { margin-bottom: 0; }

/* ---------- Laboratorio: pruebas como tarjetas con ícono ---------- */
.tests { gap: 10px; }
.tests li {
  display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px !important; border-radius: 14px !important; border: 1px solid #e2e8f0 !important;
  background: linear-gradient(135deg, #ffffff, #f8fafc) !important; box-shadow: 0 1px 2px rgba(15,23,42,.05);
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.tests li::before { display: none !important; }
.tests li:hover { border-color: rgba(122,28,45,.4) !important; box-shadow: 0 10px 20px -8px rgba(15,23,42,.18); transform: translateY(-2px); }
.tests__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(122,28,45,.1); color: #7a1c2d; transition: background .25s, color .25s; }
.tests__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tests li:hover .tests__icon { background: linear-gradient(135deg, #9b2a3f, #7a1c2d); color: #fff; }
.tests__txt { font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.25; }
.tests__n { font: 700 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #94a3b8; letter-spacing: .08em; }

/* ---------- Neura-RTO: varios párrafos ---------- */
.rto__text + .rto__text { margin-top: -4px; }

/* =========================================================
   Procedimiento operacional con fotos del dossier
   ========================================================= */
.process__sub { margin: 4px 0 0 !important; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a1c2d !important; }
.steps--photo::before, .steps--photo::after { top: calc(var(--imgh, 150px) + 37px); }
.steps--photo .steps__head { top: calc(var(--imgh, 150px) + 32px); }
.steps__img { position: relative; margin: 0 0 14px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #e2e8f0; box-shadow: 0 8px 20px -10px rgba(15,23,42,.35); }
.steps__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); filter: grayscale(.6) brightness(.95); transition: transform .8s var(--ease), filter .6s; }
.steps li.is-on .steps__img img { transform: scale(1); filter: none; }
.steps li:hover .steps__img img { transform: scale(1.06); }
.steps__img .steps__t { position: absolute; right: 8px; bottom: 8px; margin: 0; background: rgba(122,28,45,.92); color: #fff; padding: 4px 9px; font-size: 11.5px; border-radius: 6px; backdrop-filter: blur(4px); }
.steps--photo h4 { font-size: 14.5px; line-height: 1.25; }
@media (max-width: 900px) {
  .steps--photo::before, .steps--photo::after { top: 22px; }
  .steps--photo .steps__head { top: calc(17px + (100% - 44px) * var(--p)); }
  .steps--photo li:not(.steps__head) { padding-left: 64px; }
  .steps__img { aspect-ratio: 16 / 9; max-width: 420px; }
}

/* =========================================================
   Filiales en cascada: matriz arriba, dos filiales colgando
   ========================================================= */
.tree { display: block !important; padding-top: 0 !important; }
.tree::before, .tree::after { display: none !important; }
.tree__root { max-width: 520px; margin: 0 auto; position: relative; }
.tree__root .unit { border-color: rgba(122,28,45,.35); box-shadow: 0 18px 40px -16px rgba(122,28,45,.35); background: radial-gradient(420px circle at var(--mx) var(--my), rgba(122,28,45,.09), transparent 60%), linear-gradient(135deg, #fff, #f8fafc); }
.tree__stem { position: relative; width: 2px; height: 44px; margin: 0 auto; background: linear-gradient(180deg, #7a1c2d, #be123c); }
.tree__stem::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #be123c; box-shadow: 0 0 0 4px rgba(190,18,60,.15); }
.tree__branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 44px; }
.tree__branches::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 2px; background: linear-gradient(90deg, #be123c, #7a1c2d 50%, #be123c); }
.tree__branches::after { content: ""; position: absolute; top: -1px; left: 25%; right: 25%; height: 4px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent); background-size: 30% 100%; background-repeat: no-repeat; animation: treeFlow 3s linear infinite; }
@keyframes treeFlow { from { background-position: -30% 0; } to { background-position: 130% 0; } }
.tree__drop { position: absolute; top: -44px; left: 50%; width: 2px; height: 44px; margin-left: -1px; background: linear-gradient(180deg, #be123c, #7a1c2d); }
.tree__drop::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #fff; border: 2px solid #7a1c2d; }
.tree .unit { overflow: visible; }
.tree .unit__desc { margin-bottom: 0; }
@media (max-width: 760px) {
  .tree__branches { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; }
  .tree__branches::before, .tree__branches::after { display: none; }
  .tree__drop { top: -36px; height: 36px; }
  .tree__stem { height: 0; }
}

/* Laboratorio: ahora son 3 piezas en el visor */
.labshow__bars { grid-template-columns: repeat(3, 1fr); }

/* Franja de clientes al cierre */
.clients--end { border-top: 1px solid var(--ti-200); border-bottom: 0; }

/* Frascos agrupados (tecnologías especiales) en el carrusel */
.ring__jar { max-width: none; }

/* La primera imagen del montaje dura el doble: su movimiento también */
.reel__frames img[data-hold="2"].kb1, .reel__frames img[data-hold="2"].kb2, .reel__frames img[data-hold="2"].kb3, .reel__frames img[data-hold="2"].kb4 { animation-duration: 3.2s; }

/* Logos en las tarjetas de filiales */
.unit__logo { display: block; height: 46px; width: auto; max-width: 70%; object-fit: contain; object-position: left center; margin-bottom: 14px; }
.unit__logo--chinso { height: 50px; }

/* Panel de direcciones, separado de las filiales */
.offices {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 36px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f8fafc 60%, #f1f5f9); border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(0,0,0,.06);
}
.office { position: relative; padding: 22px 24px; text-align: center; }
.office + .office::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 1px; background: #e2e8f0; }
.office__icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 10px; background: rgba(122,28,45,.1); color: #7a1c2d; }
.office__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.office h4 { font-size: 14.5px; font-weight: 800; color: #0f172a; margin-bottom: 8px; letter-spacing: -.01em; }
.office p { margin: 0 0 3px; font-size: 13px; color: #475569; }
.office a { color: #475569; text-decoration: none; }
.office a:hover { color: #7a1c2d; }
@media (max-width: 860px) {
  .offices { grid-template-columns: 1fr; }
  .office + .office::before { left: 24px; right: 24px; top: 0; bottom: auto; width: auto; height: 1px; }
}
.unit__logo { height: 62px; } .unit__logo--chinso { height: 64px; }

/* Crédito del desarrollador */
.footer__credit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px dashed var(--ti-300); font-size: 12px; color: var(--ti-500); }
.footer__credit a { color: var(--wine); font-weight: 700; text-decoration: none; }
.footer__credit a:hover { text-decoration: underline; }
.footer__base { padding-bottom: 12px !important; }
@media (max-width: 760px) { .footer__credit { flex-direction: column; align-items: flex-start; } }

/* Neura-RTO: enlaces a su sitio y correo */
.rto__mails a { display: inline-flex; align-items: center; gap: 8px; }
.rto__mails svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rto__web { color: #fff !important; border-color: rgba(227,185,165,.6) !important; background: rgba(190,18,60,.18); }
.rto__web:hover { background: rgba(190,18,60,.32) !important; }
.rto__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--rto { color: #fff; background: transparent; border-color: rgba(227,185,165,.5); }
.btn--rto:hover { border-color: #e3b9a5; background: rgba(227,185,165,.1); transform: translateY(-2px); }

/* Formulario: envío al servidor */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.quote__msg { min-height: 1.4em; margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
.quote__msg.is-err { color: var(--ruby); font-weight: 700; }
.quote__msg.is-ok { color: #047857; font-weight: 700; }
.quote__final .btn:disabled { opacity: .7; cursor: progress; }
