/* ==========================================================================
   Mister Lucky — estilos del sitio
   Tokens tomados de la entrega UX/UI (27/11/2026)
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #100e09;
  --bg-2: #14120d;
  --surface: #1a1813;
  --surface-2: #211e18;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --gold: #fbbe0a;
  --gold-2: #e0a800;
  --gold-line: rgba(251, 190, 10, .45);
  --text: #f5f2ea;
  --muted: #bdb7aa;
  --muted-2: #8b8579;

  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 6px;
  --radius-lg: 10px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
main { overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--gold); color: #111; padding: 8px 14px; border-radius: var(--radius); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(1360px + var(--gutter) * 2); }

.section { padding-block: clamp(72px, 9vw, 120px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--rule > .container::before { content: ''; display: block; height: 1px; background: var(--line-2); margin-bottom: clamp(28px, 3vw, 40px); }

.display { font-size: clamp(40px, 5.6vw, 80px); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; }
.h1 { font-size: clamp(34px, 4.6vw, 64px); font-weight: 700; letter-spacing: -.015em; }
.h2 { font-size: clamp(30px, 4.2vw, 60px); font-weight: 700; letter-spacing: -.015em; }
.h3 { font-size: clamp(26px, 2.7vw, 38px); }
.h4 { font-size: clamp(20px, 1.8vw, 24px); }
.lead { font-size: clamp(16px, 1.35vw, 20px); color: var(--text); font-weight: 400; }
.text-muted { color: var(--muted); }
.copy { color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); max-width: 62ch; }
.eyebrow { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.stack > * + * { margin-top: var(--stack, 20px); }

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  background: var(--gold); color: #17130a; border: 1px solid var(--gold);
  border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { background: #ffd23f; border-color: #ffd23f; transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(251, 190, 10, .55); }
.btn--ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .85); }
.btn--ghost:hover { background: #fff; color: #111; border-color: #fff; box-shadow: none; }
.btn--chip { --h: 42px; background: rgba(251, 190, 10, .04); color: var(--gold); border-color: var(--gold-line); font-weight: 400; font-size: 14px; padding: 0 16px; }
.btn--chip:hover { background: var(--gold); color: #17130a; }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--back { --h: 40px; background: transparent; color: var(--text); border-color: var(--line-2); font-weight: 400; font-size: 14px; padding: 0 14px; }
.btn--back:hover { background: var(--surface-2); border-color: var(--line-2); color: var(--text); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16, 14, 9, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(1360px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.brand img { width: 210px; height: auto; }
.main-nav { display: flex; align-items: center; flex: 1; justify-content: flex-end; gap: 24px; }
.main-nav__links { display: flex; gap: 40px; margin-right: auto; margin-left: auto; transform: translateX(-60px); }
.main-nav__links a { font-size: 15px; font-weight: 400; position: relative; padding: 6px 0; transition: color .2s; }
.main-nav__links a:hover, .main-nav__links a.is-active { color: var(--gold); }
.main-nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav__links a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-2); background: transparent; border-radius: var(--radius); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .brand img { width: 168px; }
  .nav-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 32px var(--gutter); gap: 32px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .main-nav__links { flex-direction: column; gap: 0; margin: 0; transform: none; }
  .main-nav__links a { font-family: var(--font-head); font-size: 28px; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav__links a::after { display: none; }
  .main-nav__cta { --h: 54px; font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 62vw, 820px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,14,9,.92) 0%, rgba(16,14,9,.55) 38%, rgba(16,14,9,0) 62%), linear-gradient(0deg, var(--bg) 0%, rgba(16,14,9,0) 22%); }
.hero__content { max-width: 640px; }
.hero__content .lead { margin-top: 24px; max-width: 46ch; color: var(--muted); font-weight: 300; font-size: clamp(16px, 1.25vw, 18px); }
.hero__content .btn-row { margin-top: 32px; }
.hero__media .is-parallax { will-change: transform; }

/* Hero páginas internas */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(48px, 6vw, 64px) clamp(48px, 6vw, 56px); }
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,14,9,.96) 0%, rgba(16,14,9,.7) 45%, rgba(16,14,9,.1) 75%); }
.page-hero__content { max-width: 720px; }
.page-hero .eyebrow { font-size: 12px; font-weight: 600; }
.page-hero .lead { margin-top: 20px; font-size: clamp(17px, 1.45vw, 21px); }
.page-hero .copy { margin-top: 14px; font-size: 15px; }
.page-hero .btn { margin-top: 24px; }

/* ---------- Patrón de tréboles ---------- */
.has-pattern { position: relative; overflow: hidden; }
.has-pattern::before { content: ''; position: absolute; inset: 0; background: url(../img/pattern-clovers.webp) center / cover no-repeat; opacity: .55; pointer-events: none; mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent); }
.has-pattern > * { position: relative; }

/* ---------- Flujo Plataforma → Soporte ---------- */
.flow { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(16px, 2.6vw, 56px); counter-reset: flow; }
.flow li { position: relative; padding-top: 28px; border-top: 1px solid var(--line-2); font-family: var(--font-head); font-weight: 600; font-size: clamp(17px, 1.6vw, 22px); text-align: center; transition: color .4s; }
.flow li::before { content: ''; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--gold); transition: width .9s var(--ease); }
.flow li.is-lit::before { width: 100%; }
.flow li:not(:last-child)::after { content: ''; position: absolute; right: calc(clamp(16px, 2.6vw, 56px) / -2 - 9px); top: 33px; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6' fill='none' stroke='%23fbbe0a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.flow .flow__n { display: none; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .flow li { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; text-align: left; font-family: var(--font-body); font-weight: 500; font-size: 15px; display: flex; gap: 14px; align-items: center; }
  .flow li::after { display: none; }
  .flow li::before { top: auto; bottom: -1px; }
  .flow .flow__n { display: inline; color: var(--gold); font-size: 12px; }
}

/* ---------- Pilares (Control / Personalización / Acompañamiento) ---------- */
.pillars-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; }
.pillars-intro .copy { justify-self: end; max-width: 34ch; }
.pillars-intro .h2 span { display: inline-block; margin-right: .5em; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pillar { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: 32px 32px 64px; min-height: 260px; transition: background .45s var(--ease), border-color .45s, transform .45s var(--ease); cursor: default; isolation: isolate; }
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .35; transition: opacity .45s, transform 1.2s var(--ease); }
.pillar::before { content: ''; display: block; width: 46px; height: 3px; background: var(--gold); margin-bottom: 26px; transition: background .45s; }
.pillar h3 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 500; text-transform: uppercase; letter-spacing: .01em; }
.pillar p { margin-top: 14px; color: var(--muted); max-width: 30ch; transition: color .45s; }
.pillar.is-active { background: var(--gold-2); border-color: var(--gold); }
.pillar.is-active img { opacity: .22; mix-blend-mode: multiply; transform: scale(1.06); }
.pillar.is-active::before { background: #17130a; }
.pillar.is-active h3, .pillar.is-active p { color: #17130a; }
.deco-lines { position: absolute; left: 0; width: 100%; pointer-events: none; color: var(--gold); opacity: .55; }
.deco-lines path { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-dasharray: 2400; stroke-dashoffset: 2400; transition: stroke-dashoffset 2.6s var(--ease); }
.in-view .deco-lines path, .deco-lines.in-view path { stroke-dashoffset: 0; }
@media (max-width: 900px) {
  .pillars-intro { grid-template-columns: 1fr; }
  .pillars-intro .copy { justify-self: start; }
  .pillars { grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
  .pillar { min-height: 0; padding: 24px 24px 28px; }
  .pillar::before { display: none; }
  .pillar h3 { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .06em; }
  .pillar.is-active { background: var(--surface); border-color: var(--line); }
  .pillar.is-active img { opacity: .35; mix-blend-mode: normal; transform: none; }
  .pillar.is-active h3 { color: var(--gold); }
  .pillar.is-active p { color: var(--muted); }
  .deco-lines { display: none; }
}

/* ---------- Tarjetas de infraestructura ---------- */
.infra-head p { margin-top: 20px; }
.infra-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 80px); }
.infra-card { grid-column: span 4; position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 360px; padding: 24px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; isolation: isolate; background: var(--bg-2); transition: border-color .4s, transform .5s var(--ease); }
.infra-card--sm { grid-column: span 3; min-height: 300px; }
.infra-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: -2; opacity: .5; transition: opacity .5s, transform 1.2s var(--ease); }
.infra-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(16,14,9,.95) 18%, rgba(16,14,9,.25) 70%, rgba(16,14,9,.4)); }
.infra-card__n { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: clamp(56px, 6vw, 88px); line-height: .9; letter-spacing: -.02em; text-align: center; transition: transform .5s var(--ease); }
.infra-card--sm .infra-card__n { font-size: clamp(48px, 4.8vw, 68px); }
.infra-card h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 500; margin-top: 2px; }
.infra-card--sm h3 { font-size: clamp(19px, 1.7vw, 24px); }
.infra-card p { margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 34ch; }
.infra-card:hover { border-color: var(--gold-line); }
.infra-card:hover img { opacity: .75; transform: scale(1.05); }
.infra-card:hover .infra-card__n { transform: translateY(-6px); }
.infra-cta { margin-top: 32px; }
@media (max-width: 1000px) {
  .infra-card, .infra-card--sm { grid-column: span 6; }
}
/* Mobile: carrusel con flechas */
@media (max-width: 640px) {
  .infra-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .infra-grid::-webkit-scrollbar { display: none; }
  .infra-card, .infra-card--sm { flex: 0 0 86%; scroll-snap-align: center; min-height: 440px; }
  .infra-card__n { text-align: left; font-size: 15px; font-family: var(--font-body); font-weight: 500; letter-spacing: .05em; }
  .infra-card__n::after { content: attr(data-total); color: var(--gold); }
  .infra-card img { object-fit: contain; object-position: center 24px; height: 66%; opacity: .95; }
  .infra-card::after { background: linear-gradient(0deg, var(--bg-2) 34%, rgba(16,14,9,0) 60%); }
}

/* ---------- Proceso (acordeón horizontal) ---------- */
.process { display: flex; gap: 0; margin-top: clamp(32px, 4vw, 56px); height: 360px; margin-inline: calc(var(--gutter) * -1 + 18px); }
.process__item { position: relative; flex: 1 1 0; min-width: 0; border: 1px solid var(--line); border-right-width: 0; background: var(--surface); overflow: hidden; cursor: pointer; transition: flex-grow .7s var(--ease), border-color .4s, box-shadow .5s, transform .5s var(--ease); isolation: isolate; text-align: left; padding: 0; font: inherit; color: inherit; }
.process__item:last-child { border-right-width: 1px; }
.process__item.is-active { flex-grow: 3.4; border: 1px solid var(--gold-line); border-radius: var(--radius-lg); z-index: 2; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); transform: translateY(-36px); height: calc(100% + 36px); }
.process__head { position: absolute; top: 0; left: 0; right: 0; padding: 22px 16px; display: flex; align-items: center; gap: 14px; z-index: 2; }
.process__head .num { font-size: 13px; color: var(--gold); font-weight: 400; }
.process__head img { width: 24px; height: 24px; object-fit: contain; }
.process__img { position: absolute; inset: 68px 0 0 0; z-index: -1; }
.process__img img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: grayscale(.3); transition: opacity .6s, filter .6s; }
.process__item::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--surface) 22%, rgba(26,24,19,0) 55%); transition: opacity .5s; }
.process__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 26px; }
.process__body .process__title { font-family: var(--font-body); font-weight: 600; font-size: 14px; line-height: 1.3; white-space: nowrap; transition: font-size .5s var(--ease); }
.process__body .process__desc { max-height: 0; opacity: 0; overflow: hidden; font-size: 14px; color: var(--muted); transition: max-height .6s var(--ease), opacity .4s, margin .4s; max-width: 46ch; }
.process__item.is-active .process__img { inset: 68px 0 104px 0; }
.process__item.is-active .process__img img { opacity: 1; filter: none; }
.process__item.is-active::after { opacity: 0; }
.process__item.is-active .process__body { background: var(--surface); }
.process__item.is-active .process__body .process__title { font-family: var(--font-head); font-size: 22px; }
.process__item.is-active .process__body .process__desc { max-height: 80px; opacity: 1; margin-top: 10px; transition-delay: .25s; }
.process__item:not(.is-active):hover { border-color: var(--line-2); }
.process__item:not(.is-active):hover .process__img img { opacity: .5; }
.carousel-nav { display: none; }
@media (max-width: 900px) {
  .process { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-inline: 0; scrollbar-width: none; }
  .process::-webkit-scrollbar { display: none; }
  .process__item, .process__item.is-active { flex: none; height: auto; transform: none; border: 0; border-radius: var(--radius-lg); scroll-snap-align: start; box-shadow: none; background: var(--surface); cursor: default; }
  .process__head { position: static; order: 2; padding: 16px 16px 0; justify-content: space-between; }
  .process__head img { width: 32px; height: 32px; }
  .process__img, .process__item.is-active .process__img { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .process__img img { opacity: 1; filter: none; }
  .process__item::after { display: none; }
  .process__item { display: flex; flex-direction: column; }
  .process__head .num::after { content: ' / ' attr(data-total); }
  .process__body, .process__item.is-active .process__body { position: static; order: 3; padding: 8px 16px 22px; background: none; }
  .process__body .process__title, .process__item.is-active .process__body .process__title { font-family: var(--font-head); font-size: 22px; }
  .process__body .process__desc { max-height: none; opacity: 1; margin-top: 10px; }
  .carousel-nav { display: flex; justify-content: space-between; margin-top: -14px; }
}

/* ---------- Carrusel nav compartido (mobile) ---------- */
.carousel-btn { width: 36px; height: 44px; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(16,14,9,.7); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel-wrap { position: relative; }
@media (max-width: 640px) {
  .carousel-wrap .carousel-nav { display: flex; position: absolute; left: -10px; right: -10px; top: 32%; justify-content: space-between; pointer-events: none; margin: 0; }
  .carousel-wrap .carousel-btn { pointer-events: auto; }
}

/* ---------- Dos necesidades, dos caminos ---------- */
.paths-title { text-align: center; }
.paths-title span { display: inline-block; margin-inline: .3em; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(36px, 4vw, 56px); padding-inline: 0; }
.path { background: var(--surface); border-radius: 0; padding: 32px; display: flex; flex-direction: column; transition: background .4s; }
.path:hover { background: var(--surface-2); }
.path__media { position: relative; aspect-ratio: 644 / 220; overflow: hidden; isolation: isolate; }
.path__media .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.path__media .fg { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); transition: transform .8s var(--ease); }
.path:hover .path__media .fg { transform: translateX(-50%) scale(1.04); }
.path__media .ghost { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 700; font-size: clamp(60px, 8vw, 110px); color: rgba(255,255,255,.12); z-index: -0; line-height: 1; }
.path__body { padding-top: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; flex: 1; }
.path__body .eyebrow { font-weight: 400; font-size: 14px; }
.path__body h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; }
.path__body p { margin-top: 20px; margin-bottom: 24px; color: var(--muted); font-size: 16px; max-width: 54ch; }
.path__body .btn { margin-top: auto; align-self: center; }
.path--b .path__body .btn { align-self: center; }
@media (max-width: 820px) {
  .paths { grid-template-columns: 1fr; gap: 16px; }
  .path { padding: 0; border-radius: var(--radius-lg); overflow: hidden; }
  .path__media { aspect-ratio: 16 / 9; }
  .path__media .ghost { display: none; }
  .path__body { padding: 22px 18px 24px; }
  .path__body .btn, .path--b .path__body .btn { align-self: stretch; }
}

/* ---------- Video ---------- */
.video-block { display: grid; grid-template-columns: 1.65fr 1fr; gap: clamp(24px, 3vw, 48px); align-items: start; margin-top: 48px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--surface); border-radius: 2px; overflow: hidden; display: grid; place-items: center; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-btn { width: 88px; height: 88px; border-radius: 50%; background: var(--gold); border: 0; display: grid; place-items: center; cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; box-shadow: 0 0 0 0 rgba(251,190,10,.5); animation: pulse 2.6s infinite; }
.play-btn svg { width: 22px; height: 22px; margin-left: 4px; color: #17130a; }
.play-btn:hover { transform: scale(1.06); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(251,190,10,.45); } 70% { box-shadow: 0 0 0 22px rgba(251,190,10,0); } 100% { box-shadow: 0 0 0 0 rgba(251,190,10,0); } }
.video-frame__caption { position: absolute; left: 32px; bottom: 28px; font-size: 14px; color: var(--muted); }
.video-text h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; }
.video-text p { margin-top: 18px; color: var(--muted); font-size: 16px; }
.video-under { margin-top: 18px; }
@media (max-width: 900px) { .video-block { grid-template-columns: 1fr; } .play-btn { width: 64px; height: 64px; } .video-frame__caption { display: none; } }

/* ---------- CTA final ---------- */
.cta-final { position: relative; isolation: isolate; }
.cta-final::before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -1; background: radial-gradient(60% 70% at 35% 45%, rgba(251,190,10,.08), transparent 70%); }
.cta-final .h2 { max-width: 18ch; }
.cta-final p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.cta-final .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 48px 40px; font-size: 15px; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 2fr 1.2fr; gap: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.site-footer__brand img { width: 210px; }
.site-footer__brand p { margin-top: 16px; color: var(--muted); font-size: 14px; }
.site-footer__col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.site-footer__col .eyebrow { margin-bottom: 4px; font-size: 14px; }
.site-footer__col a { font-weight: 400; transition: color .2s; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__social a { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__social svg { width: 16px; height: 16px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 120px; padding-top: 24px; font-size: 14px; }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer__bottom nav a:hover, .site-footer__bottom .linklike:hover { color: var(--gold); }
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer__bottom { flex-direction: column-reverse; align-items: flex-start; gap: 20px; }
  .site-footer__bottom nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; width: 100%; }
}

.chat-fab { position: fixed; right: clamp(16px, 2vw, 24px); bottom: clamp(16px, 2vw, 24px); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #17130a; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); transition: transform .3s var(--ease); }
.chat-fab:hover { transform: translateY(-3px) scale(1.04); }
.chat-fab svg { width: 30px; height: 30px; }

/* ---------- Soluciones ---------- */
.sol-hero { text-align: center; padding-top: clamp(40px, 5vw, 56px); }
.sol-hero .display { font-size: clamp(38px, 5.4vw, 76px); }
.sol-hero .lead { max-width: 52ch; margin: 24px auto 0; color: var(--muted); font-weight: 300; text-align: justify; text-align-last: center; }
.sol-hero .btn-row { justify-content: center; margin-top: 28px; }
.laptop-closed { width: min(660px, 90%); margin: 40px auto 0; filter: drop-shadow(0 40px 40px rgba(0,0,0,.6)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.feature { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(36px, 4vw, 56px); }
.feature--rev { grid-template-columns: 1.9fr 1fr; }
.feature--rev .feature__text { order: 2; }
.feature--half { grid-template-columns: 1fr 1.25fr; }
.feature--half.feature--rev { grid-template-columns: 1.25fr 1fr; }
.feature__text h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; letter-spacing: -.02em; }
.feature__text p { margin-top: 22px; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); max-width: 34ch; }
.feature__media { position: relative; }
.feature__media img { width: 100%; }
.support-visual { position: relative; }
.support-visual .screen { width: 82%; border-radius: 6px; }
.support-visual .agent { position: absolute; right: 0; bottom: 0; width: 34%; }
.tablet { transform: perspective(1600px) rotateY(var(--ry, -8deg)) rotateX(3deg); transition: transform 1s var(--ease); filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.feature--rev .tablet { --ry: 8deg; }
.feature:hover .tablet { transform: perspective(1600px) rotateY(0) rotateX(0); }
@media (max-width: 900px) {
  .feature, .feature--rev, .feature--half, .feature--half.feature--rev { grid-template-columns: 1fr; }
  .feature--rev .feature__text { order: 0; }
  .feature__text p { max-width: none; }
}

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.55fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); padding-block: 18px 20px; }
.faq__item summary { list-style: none; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; flex: 0 0 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); opacity: 0; }
.faq__item p { margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__item summary::after { opacity: 1; }
  .faq__item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
}

/* ---------- Tabs con imagen (operadores) ---------- */
.tabs { display: grid; grid-template-columns: 1fr 2fr; gap: 26px; margin-top: 24px; align-items: stretch; }
.tabs__list { display: flex; flex-direction: column; gap: 12px; }
.tab { display: flex; align-items: center; gap: 22px; padding: 0 16px; min-height: 72px; flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; cursor: pointer; transition: background .35s, border-color .35s, color .35s; position: relative; overflow: hidden; }
.tab .n { font-size: 11px; color: var(--gold); font-weight: 500; }
.tab .t { font-family: var(--font-head); font-weight: 600; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.2; }
.tab:hover { border-color: var(--line-2); }
.tab.is-active { background: var(--gold); border-color: var(--gold); color: #17130a; }
.tab.is-active .n { color: #17130a; }
.tab .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: rgba(23,19,10,.4); }
.tab.is-active .bar { animation: tabbar var(--autoplay, 5s) linear forwards; }
.tabs.is-paused .tab.is-active .bar { animation-play-state: paused; }
@keyframes tabbar { to { width: 100%; } }
.tabs__panels { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 330px; background: var(--bg-2); }
.tab-panel { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.tab-panel.is-active { opacity: 1; }
.tab-panel img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 6s linear; }
.tab-panel.is-active img { transform: scale(1); }
.tab-panel--contain img { object-fit: contain; padding: 4%; }
.tab-panel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 18px; font-size: 14px; background: linear-gradient(0deg, rgba(16,14,9,.85), transparent); }
.tabs__mobile-text { display: none; }
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tabs__list::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; min-height: 48px; gap: 10px; }
  .tabs__panels { min-height: 0; aspect-ratio: 16 / 10; order: -1; }
}

/* Split imagen/texto */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 3.4vw, 48px); align-items: center; }
.split__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 378 / 234; object-fit: cover; }
.split__text h2 { font-size: clamp(28px, 3vw, 42px); }
.split__text p { margin-top: 20px; color: var(--muted); font-size: 16px; max-width: 48ch; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* Showcase de dashboards */
.showcase { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: 40px; }
.showcase__stage { position: relative; aspect-ratio: 16 / 9.5; perspective: 1600px; }
.showcase__slide { position: absolute; top: 12%; left: 18%; width: 64%; border-radius: 8px; overflow: hidden; border: 1px solid var(--gold-line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); transition: transform .9s var(--ease), opacity .9s var(--ease), filter .9s; }
.showcase__slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.showcase__slide[data-pos="0"] { transform: translateZ(0); z-index: 3; }
.showcase__slide[data-pos="1"] { transform: translateX(38%) translateZ(-260px) rotateY(-24deg); z-index: 2; opacity: .45; filter: blur(1px) brightness(.6); }
.showcase__slide[data-pos="2"] { transform: translateX(-38%) translateZ(-260px) rotateY(24deg); z-index: 1; opacity: .45; filter: blur(1px) brightness(.6); }
.showcase__text h3 { font-size: clamp(22px, 2.1vw, 28px); font-weight: 600; }
.showcase__text .tag { color: var(--gold); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; min-height: 1.4em; transition: opacity .4s; }
.showcase__text p { margin-top: 18px; color: var(--muted); }
.showcase__text .btn { margin-top: 24px; }
.showcase__dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.showcase__dots button { width: 28px; height: 3px; border: 0; background: var(--line-2); padding: 0; cursor: pointer; transition: background .3s; }
.showcase__dots button.is-active { background: var(--gold); }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } .showcase__slide[data-pos="1"], .showcase__slide[data-pos="2"] { opacity: .25; } }

/* ---------- Contacto ---------- */
.contact-hero { padding-block: clamp(36px, 4vw, 56px) 32px; }
.contact-hero .page-hero__media img { object-position: right center; }
.contact-hero .h1 { max-width: 16ch; }
.contact-hero .copy { margin-top: 18px; font-size: 15px; max-width: 64ch; }
.profiles-title { text-align: center; font-size: clamp(22px, 2.2vw, 30px); margin: clamp(24px, 3vw, 40px) 0 28px; }
.profiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 1000px; }
.profile-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-align: center; padding-bottom: 24px; display: flex; flex-direction: column; transition: border-color .3s, transform .4s var(--ease); }
.profile-card:hover { border-color: var(--gold-line); transform: translateY(-4px); }
.profile-card__media { position: relative; aspect-ratio: 490 / 150; overflow: hidden; }
.profile-card__media .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.profile-card__media .fg { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; max-width: none; transform: translateX(-50%); }
.profile-card .eyebrow { text-transform: none; font-size: 12px; margin: 16px 0 6px; }
.profile-card h3 { font-size: clamp(20px, 1.9vw, 25px); }
.profile-card p { margin: 10px auto 0; color: var(--muted); font-size: 14px; max-width: 46ch; padding-inline: 16px; flex: 1; }
.profile-card .btn { margin: 18px auto 0; }
@media (max-width: 760px) { .profiles { grid-template-columns: 1fr; } }

.wizard { max-width: 880px; padding-block: 24px 80px; }
.wizard[hidden], .wizard-step[hidden] { display: none !important; }
.progress { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; }
.progress span:first-child { color: var(--gold); }
.progress-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 18px; }
.progress-bars i { height: 2px; background: var(--line-2); position: relative; overflow: hidden; }
.progress-bars i::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.progress-bars i.is-done::after { transform: scaleX(1); }
.wizard-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 28px); min-height: 560px; display: flex; flex-direction: column; }
.wizard-step { animation: stepin .45s var(--ease); }
@keyframes stepin { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.wizard-step h2 { font-size: clamp(24px, 2.3vw, 30px); }
.wizard-step .intro { margin-top: 12px; color: var(--muted); font-size: 14px; }
.q { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.q legend { font-family: var(--font-head); font-weight: 600; font-size: clamp(16px, 1.4vw, 18px); padding: 0; }
.q .hint { display: block; font-size: 12px; color: var(--muted-2); margin-top: 4px; }
.options { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 10px; margin-top: 14px; }
.option { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 10px 16px; background: rgba(255,255,255,.015); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 400; transition: border-color .25s, background .25s; }
.option:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .box { flex: 0 0 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.option input[type="radio"] + .box { border-radius: 50%; }
.option .box::after { content: ''; width: 8px; height: 5px; border-left: 2px solid #17130a; border-bottom: 2px solid #17130a; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.option input:checked + .box { background: var(--gold); border-color: var(--gold); }
.option input:checked + .box::after { opacity: 1; }
.option:has(input:checked) { border-color: var(--gold-line); background: rgba(251,190,10,.06); }
.option input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.q.has-error .options .option { border-color: rgba(255, 99, 71, .45); }
.field-error { color: #ff8f73; font-size: 13px; margin-top: 8px; display: none; }
.has-error .field-error { display: block; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 20px; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; background: rgba(255,255,255,.02); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); font: inherit; font-size: 14px; padding: 10px 12px; transition: border-color .2s; }
.field textarea { min-height: 64px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.has-error input { border-color: rgba(255, 99, 71, .7); }
.field--full { grid-column: 1 / -1; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 13px; cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 16px; }
.consent a { color: var(--gold); display: inline-block; margin-top: 4px; }
.wizard-actions { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wizard-actions .spacer { flex: 1; }
.wizard-step .wizard-actions-spacer { height: 32px; }
.form-status { font-size: 14px; color: #ff8f73; margin-top: 12px; }
.hp { position: absolute; left: -5000px; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.confirm { display: grid; grid-template-columns: 1fr 1.15fr; max-width: 1000px; margin: clamp(40px, 8vw, 120px) auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; animation: stepin .5s var(--ease); }
.confirm[hidden] { display: none; }
.confirm__media { padding: 28px; border-right: 1px solid var(--line); }
.confirm__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.confirm__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.confirm__body .eyebrow { text-transform: none; font-size: 12px; }
.confirm__body h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; }
.confirm__body p { margin-top: 18px; color: var(--muted); }
.confirm__body .btn { margin-top: 22px; align-self: flex-start; text-transform: uppercase; }
@media (max-width: 760px) {
  .options, .options[style] { --cols: 1 !important; }
  .fields { grid-template-columns: 1fr; }
  .wizard-card { min-height: 0; }
  .confirm { grid-template-columns: 1fr; }
  .confirm__media { border-right: 0; border-bottom: 1px solid var(--line); }
  .wizard-actions .btn:not(.btn--back) { flex: 1; }
}

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal--left { transform: translateX(-36px); }
.reveal--right { transform: translateX(36px); }
.reveal--scale { transform: scale(.96); }
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Banner de cookies */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 560px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 20px; font-size: 14px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); animation: stepin .4s var(--ease); }
.cookie-banner p { color: var(--muted); }
.cookie-banner .btn-row { margin-top: 14px; }
.process__title, .process__desc { display: block; }
.process__body { display: block; }
.tabs__panels--stage { background: radial-gradient(70% 80% at 60% 50%, rgba(251,190,10,.07), transparent 70%), url(../img/hero-page.webp) right center / cover; }
.section--rule > .container::before { grid-column: 1 / -1; }
.section--rule > .faq { row-gap: 0; }
.section--rule > .faq::before { margin-bottom: clamp(28px, 3vw, 40px); }
.profiles { margin-inline: auto; }

/* ---- Ajustes mobile (QA) ---- */
@media (max-width: 900px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16, 14, 9, .97); }
}
@media (max-width: 640px) {
  .hero { min-height: 640px; align-items: stretch; padding-block: 28px 32px; }
  .hero > .container { display: flex; }
  .hero__content { display: flex; flex-direction: column; width: 100%; }
  .hero__content .btn-row { margin-top: auto; flex-direction: column; align-items: center; }
  .hero__content .btn-row .btn { width: 86%; --h: 50px; }
  .hero__media { top: 200px; }
  .hero__media img, .hero__media video { object-position: 88% center; }
  .hero__media::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(16,14,9,0) 22%, rgba(16,14,9,0) 70%, rgba(16,14,9,.6) 100%); }
  .page-hero__media::after { background: linear-gradient(90deg, rgba(16,14,9,.92), rgba(16,14,9,.6)); }
}

/* Video del logo 3D */
.video-frame { background: #100d09; }
.video-frame__poster, .video-frame__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-frame .play-btn { position: relative; z-index: 1; }
.video-frame video { object-fit: contain; background: #100d09; }
@media (max-width: 640px) { .video-frame { aspect-ratio: 4 / 5; } }
.video-frame { place-items: end center; }
.video-frame .play-btn { margin-bottom: 3.5%; width: 64px; height: 64px; }
@media (max-width: 640px) { .video-frame .play-btn { margin-bottom: 12%; width: 60px; height: 60px; } }

/* Bloque "Conocé lo que hay detrás": sin video, solo texto */
.video-block:not(.has-video) { grid-template-columns: 1fr; margin-top: 28px; }
.video-block:not(.has-video) .video-text { max-width: 640px; }

/* ---- Hero: entra completo en la primera pantalla ---- */
@media (min-width: 641px) {
  .hero { min-height: clamp(560px, calc(100svh - var(--header-h)), 820px); }
}

/* ---- Red interactiva de isotipos ---- */
.constellation { position: absolute; inset: 0; z-index: 0; pointer-events: none; mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.has-constellation::before { display: none; }
.has-constellation > .container { position: relative; z-index: 1; }

/* ---- Plataforma · Integraciones · Gestión · Soporte: destacado al pasar ---- */
.flow li { cursor: default; padding-bottom: 6px; transition: color .35s var(--ease), transform .45s var(--ease), opacity .35s, text-shadow .35s; outline: none; }
.flow li::before { box-shadow: 0 0 0 rgba(251,190,10,0); transition: width .9s var(--ease), box-shadow .35s, height .35s; }
.flow li .flow__t { position: relative; display: inline-block; }
.flow li .flow__t::after { content: ''; position: absolute; left: 50%; top: 50%; width: 140%; height: 220%; transform: translate(-50%, -50%) scale(.6); background: radial-gradient(closest-side, rgba(251,190,10,.22), transparent); opacity: 0; transition: opacity .4s, transform .5s var(--ease); z-index: -1; pointer-events: none; }
.flow li.is-hot, .flow li:hover, .flow li:focus-visible { color: var(--gold); transform: translateY(-6px); text-shadow: 0 0 22px rgba(251,190,10,.45); }
.flow li.is-hot::before, .flow li:hover::before, .flow li:focus-visible::before { width: 100%; height: 3px; box-shadow: 0 0 16px 2px rgba(251,190,10,.7); }
.flow li.is-hot .flow__t::after, .flow li:hover .flow__t::after, .flow li:focus-visible .flow__t::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.flow:hover li:not(:hover) { opacity: .45; }
@media (max-width: 760px) {
  .flow li.is-hot, .flow li:hover { transform: none; border-color: var(--gold-line); background: rgba(251,190,10,.07); }
  .flow li .flow__t::after { display: none; }
}

/* ---- Título del hero con colores de marca ---- */
.hero__title { font-size: clamp(36px, 4vw, 60px); line-height: 1.04; }
.hero__line { display: block; }
.hero__gold {
  background: linear-gradient(100deg, #ffd65a 0%, #fbbe0a 30%, #f4a323 62%, #c97a12 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
  padding-bottom: .06em; /* que no se corte la descendente */
}
/* destello que recorre el dorado */
.hero__gold::after {
  content: attr(data-text); position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 0%, transparent 40%, rgba(255,250,225,.95) 50%, transparent 60%, transparent 100%);
  background-size: 250% 100%; background-position: 150% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: goldShine 7s var(--ease) 1.2s infinite;
  pointer-events: none;
}
@keyframes goldShine { 0% { background-position: 150% 0; } 22%, 100% { background-position: -50% 0; } }
@media (min-width: 900px) { .hero__content { max-width: 760px; } .hero__line { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .hero__gold::after { display: none; } }

/* ---------- Tarjeta "Agendar demo" (interés demostrado) ---------- */
.lead-pop { position: fixed; right: clamp(16px, 2vw, 24px); bottom: calc(clamp(16px, 2vw, 24px) + 68px); z-index: 45; width: min(380px, calc(100vw - 32px)); background: linear-gradient(160deg, #221e16, #16130e 60%); border: 1px solid var(--gold-line); border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(251,190,10,.06), 0 0 40px -12px rgba(251,190,10,.35); opacity: 0; transform: translateY(24px) scale(.97); transform-origin: bottom right; transition: opacity .45s var(--ease), transform .55s var(--ease); overflow: hidden; }
.lead-pop.is-open { opacity: 1; transform: none; }
.lead-pop::before { content: ''; position: absolute; right: -56px; bottom: -48px; width: 190px; height: 190px; background: url(../brand/isotipo-mister-lucky.svg) center / contain no-repeat; opacity: .035; transform: rotate(-12deg); pointer-events: none; }
.lead-pop__body { position: relative; padding: 24px 22px 22px; }
.lead-pop__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.06); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.lead-pop__close:hover { background: rgba(255,255,255,.12); color: var(--text); }
.lead-pop__close svg { width: 16px; height: 16px; }
.lead-pop__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.lead-pop__title { font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.15; padding-right: 28px; }
.lead-pop__text { margin-top: 8px; font-size: 14px; color: var(--muted); }
.lead-pop__form { display: grid; gap: 10px; margin-top: 16px; }
.lead-pop__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; }
.lead-pop__seg label { position: relative; cursor: pointer; }
.lead-pop__seg input { position: absolute; opacity: 0; }
.lead-pop__seg span { display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 8px; border-radius: 7px; font-size: 13px; font-weight: 500; text-align: center; color: var(--muted); transition: background .25s, color .25s; }
.lead-pop__seg input:checked + span { background: var(--gold); color: #17130a; }
.lead-pop__seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.lead-pop__f input { width: 100%; min-height: 44px; background: rgba(0,0,0,.25); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: inherit; font-size: 16px; padding: 0 12px; transition: border-color .2s; }
.lead-pop__f input::placeholder { color: var(--muted-2); }
.lead-pop__f input:focus { outline: none; border-color: var(--gold); }
.lead-pop__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); cursor: pointer; line-height: 1.45; }
.lead-pop__consent input { margin-top: 2px; accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 16px; }
.lead-pop__consent a { color: var(--gold); }
.lead-pop__err { font-size: 13px; color: #ff8f73; margin: 0; }
.lead-pop__submit { width: 100%; --h: 48px; margin-top: 2px; }
.lead-pop__ok { text-align: center; padding: 34px 26px 30px; }
.lead-pop__ok .lead-pop__title { padding: 0; margin-top: 14px; }
.lead-pop__check { width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: #17130a; display: inline-grid; place-items: center; animation: pulse 2.4s infinite; }
.lead-pop__check svg { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .lead-pop { left: 0; right: 0; bottom: 0; width: 100%; border-radius: 18px 18px 0 0; border-bottom: 0; transform: translateY(100%); transform-origin: bottom center; max-height: 88svh; overflow-y: auto; }
  .lead-pop.is-open { transform: none; }
  .lead-pop__body { padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); }
  .lead-pop-open .chat-fab { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .lead-pop { transition: opacity .2s; transform: none !important; } }

/* ---- Dorado de marca en títulos: la promesa / el resultado ---- */
.gold {
  background: linear-gradient(100deg, #ffd65a 0%, #fbbe0a 35%, #f4a323 70%, #d98a14 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; /* el degradé sigue en cada renglón */
}
@media (forced-colors: active) { .gold, .hero__gold { color: CanvasText; background: none; } }
.nobr { white-space: nowrap; }

/* ---- Separador con isotipo en "Tu operación · Tu marca · Mayor control" ---- */
.control-title > span { display: block; }
.control-title__row { display: flex !important; align-items: center; flex-wrap: wrap; column-gap: .32em; }
.pillars-intro .h2.control-title span { margin-right: 0; }
.title-sep { display: inline-block; width: .74em; height: auto; flex: 0 0 auto; filter: drop-shadow(0 0 14px rgba(251,190,10,.45)); transform: rotate(-90deg) scale(.6); opacity: 0; transition: transform 1.1s var(--ease) .35s, opacity .6s .35s; }
.control-title.in-view .title-sep, .no-js .title-sep { transform: none; opacity: 1; }
.control-title:hover .title-sep { transform: rotate(45deg); transition-delay: 0s; }
@media (min-width: 901px) { .pillars-intro { grid-template-columns: 1.6fr 1fr; } .control-title__row { flex-wrap: nowrap; white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .title-sep { transform: none; opacity: 1; } }
@media (max-width: 900px) { .control-title { font-size: min(clamp(30px, 4.2vw, 60px), 7.6vw); } .control-title__row { flex-wrap: nowrap; white-space: nowrap; } }

/* ---------- Dos caminos: diagnóstico + bifurcación ---------- */
.paths-title { display: flex; justify-content: center; align-items: center; column-gap: .32em; flex-wrap: wrap; }
.paths-title > span { margin-inline: 0 !important; }
.paths-title.in-view .title-sep { transform: none; opacity: 1; }
.paths-title:hover .title-sep { transform: rotate(45deg); transition-delay: 0s; }
.paths-lead { text-align: center; max-width: 60ch; margin: 18px auto 0; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }

.fork-node { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; width: max-content; align-self: center; margin: 34px auto 0; padding: 9px 18px 9px 12px; border: 1px solid var(--gold-line); border-radius: 999px; background: linear-gradient(160deg, #241f15, #16130e); box-shadow: 0 0 30px -6px rgba(251,190,10,.35); font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--gold); }
.fork-node img { width: 26px; height: 26px; animation: forkSpin 9s linear infinite; }
@keyframes forkSpin { to { transform: rotate(360deg); } }
.fork { position: relative; align-self: stretch; width: 100%; height: 96px; margin: 0 0 -2px; order: 2; }
.fork__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fork__base, .fork__glow { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fork__base { stroke: rgba(251,190,10,.35); stroke-width: 1.5; }
.fork__lines { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) .25s; }
.fork.in-view .fork__lines { clip-path: inset(0 0 -10% 0); }
.fork__glow { stroke: var(--gold); stroke-width: 2.5; opacity: 0; filter: drop-shadow(0 0 6px rgba(251,190,10,.9)); transition: opacity .4s; }
.fork__end { position: absolute; bottom: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 2px rgba(251,190,10,.6); transform: translateX(-50%) scale(0); transition: transform .5s var(--ease) 1.2s; }
.fork__end--a { left: 25%; } .fork__end--b { left: 75%; }
.fork.in-view .fork__end { transform: translateX(-50%) scale(1); }
/* el nodo va arriba de las líneas */
.paths-section .container { display: flex; flex-direction: column; }
.paths-section .fork-node { order: 1; }
.paths-section .paths { order: 3; margin-top: 0; }
.paths-section .paths-help { order: 4; }
.paths-section .paths-title { order: -2; } .paths-section .paths-lead { order: -1; }
/* resalta el camino del lado donde está el mouse */
.paths-section:has(.path--a:hover) .fork__glow.fork__a,
.paths-section:has(.path--b:hover) .fork__glow.fork__b { opacity: 1; }
.paths-section:has(.path--a:hover) .path--b,
.paths-section:has(.path--b:hover) .path--a { opacity: .7; }
.path { transition: background .4s, opacity .4s; }

.path__scope { margin: 22px 0 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.path__scope-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.path__scope ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.path__scope li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255,255,255,.02); }
.path__scope li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(251,190,10,.7); }
.path__body p:not(.eyebrow) { margin-bottom: 0; }

.paths-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; margin-top: 36px; }
.paths-help p { font-family: var(--font-head); font-weight: 600; font-size: clamp(18px, 1.6vw, 22px); }

@media (max-width: 820px) {
  .fork { display: none; }
  .fork-node { margin: 22px auto 18px; }
  .paths-title { flex-direction: column; row-gap: 4px; }
  .paths-title .title-sep { width: .6em; }
  .paths-help { flex-direction: column; text-align: center; }
  .paths-help .btn { width: 100%; }
  .paths-section:has(.path--a:hover) .path--b, .paths-section:has(.path--b:hover) .path--a { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .fork-node img { animation: none; } }

.cta-final__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-final__actions .btn { margin-top: 0; }
.cta-final .h2 { max-width: 24ch; }
.cta-final .h2 .gold { display: inline-block; }
@media (min-width: 761px) { .cta-final .h2 .gold { display: block; } }
/* Home sin la sección de video: el cierre sube y sigue directo a "Dos caminos" */
.paths-section + [data-needs-video][hidden] + .cta-final { padding-top: clamp(32px, 4vw, 56px); }

/* Mobile: sin contador "01 / 07" en las tarjetas de infraestructura */
@media (max-width: 640px) {
  .infra-card .infra-card__n, .infra-card--sm .infra-card__n { display: none; }
}
@media (max-width: 640px) {
  .infra-card, .infra-card--sm { min-height: 360px; }
  .infra-card img { height: 64%; }
}
