/* Capa de experiencia: idioma, interruptor, demo de la app, mapa 3D y cotizador */

/* Barra de progreso e idioma */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--green); transform-origin: left; transform: scaleX(var(--p, 0)); }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid currentColor; opacity: .92; }
.nav__links { margin-left: auto; }

/* Hero: título por palabras y rótulo de la figura */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 45ms + 120ms); }
[data-split].is-in .w > span { transform: none; }

/* Interruptor Sin / Con Briza */
.problems__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.switch button { position: relative; z-index: 1; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font-weight: 500; font-size: 17px; white-space: nowrap; cursor: pointer; color: var(--ink-2); transition: color .3s; }
.switch button[aria-pressed="true"] { color: var(--navy); }
.switch i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--white); box-shadow: 0 2px 10px rgba(0, 1, 65, .14); transition: transform .45s var(--ease), background-color .45s; }
.switch.is-with i { transform: translateX(100%); background: var(--green); }
.pcard { position: relative; display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; }
.pcard .pcard__n { position: absolute; top: 28px; right: 26px; }
.pcard__face { grid-area: 3 / 1; transition: opacity .45s, transform .6s var(--ease); transition-delay: calc(var(--k, 0) * 90ms); }
.pcard__face--b { opacity: 0; transform: translateY(18px); pointer-events: none; }
.is-with .pcard { background: var(--navy); border-color: var(--navy); color: var(--white); }
.is-with .pcard p { color: rgba(255, 255, 255, .78); }
.is-with .pcard__n { color: var(--green); }
.is-with .pcard__face--a { opacity: 0; transform: translateY(-18px); pointer-events: none; }
.is-with .pcard__face--b { opacity: 1; transform: none; pointer-events: auto; }
.cards3 .pcard:nth-child(2) { --k: 1; }
.cards3 .pcard:nth-child(3) { --k: 2; }
@media (hover: hover) { .is-with .pcard:hover { background: var(--royal); border-color: var(--royal); } }

/* Luz que sigue al cursor o al dedo */
[data-spot] { position: relative; isolation: isolate; }
[data-spot]::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(130, 66, 250, .16), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
[data-spot].is-lit::after { opacity: 1; }

/* Fotos de servicios: entran destapándose y se mueven con el scroll */
.svc__item figure img { height: 116%; transform: translateY(calc(var(--py, 0) * 1px)); transition: none; will-change: transform; }
.svc__item.reveal figure { clip-path: inset(0 0 100% 0 round var(--radius)); transition: clip-path 1.1s var(--ease); transition-delay: var(--d, 0s); }
.svc__item.reveal.is-in figure { clip-path: inset(0 0 0 0 round var(--radius)); }

/* Demo de la plataforma */
.platform__head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 5vw, 72px); align-items: end; }
.platform__head .lead { color: #243a52; }
.tour { margin-top: clamp(32px, 5vw, 56px); }
.tour__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tour__steps button { position: relative; display: flex; align-items: baseline; gap: 10px; width: 100%; min-height: 56px; padding: 14px 4px 16px; border: 0; background: none; text-align: left; font-size: 18px; font-weight: 500; color: rgba(0, 1, 65, .5); cursor: pointer; transition: color .3s; }
.tour__steps b { font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; }
.tour__steps i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: rgba(0, 1, 65, .16); overflow: hidden; }
.tour__steps i::after { content: ""; position: absolute; inset: 0; background: var(--navy); transform: scaleX(0); transform-origin: left; }
.tour__steps button[aria-selected="true"] { color: var(--navy); }
.tour__steps button[aria-selected="true"] i::after { animation: fill var(--dur, 6s) linear forwards; }
.tour__steps button.is-done i::after { transform: scaleX(1); }
.tour.is-paused .tour__steps i::after { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

.app { position: relative; display: grid; grid-template-columns: 190px 1fr; margin-top: 18px; border-radius: 22px; background: #f6f9fc; color: #23262f; font-size: 14px; line-height: 1.3; box-shadow: 0 50px 100px -50px rgba(0, 1, 65, .65); overflow: hidden; }
.app__side { padding: 24px 16px; background: var(--white); }
.app__side strong { display: block; margin-bottom: 26px; font-size: 19px; letter-spacing: -.02em; }
.app__side li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 999px; transition: background-color .35s, color .35s; }
.app__side svg { width: 18px; height: 18px; }
.app__side li.is-on { background: #23262f; color: var(--white); }
.app__main { position: relative; min-height: 372px; padding: 18px; overflow: hidden; }
.app__note { grid-column: 1 / -1; padding: 9px 18px; font-size: 13px; color: var(--ink-2); background: var(--white); border-top: 1px solid var(--line); }
.screen { animation: screenIn .55s var(--ease) both; }
.screen[hidden] { display: none; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.app__banner { display: grid; align-content: center; gap: 6px; min-height: 124px; padding: 18px 22px; border-radius: 16px; color: var(--white); background: linear-gradient(100deg, rgba(0, 1, 65, .86), rgba(55, 14, 204, .55)), url("../assets/img/team-window.webp?v=93050bbf4b") center 40% / cover; }
.app__banner b { font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.app__banner em { justify-self: start; margin-top: 6px; padding: 8px 14px; border-radius: 999px; background: #23262f; font-style: normal; font-weight: 500; }
.modal { position: absolute; left: 6%; right: 6%; top: 70px; padding: 20px 22px; border-radius: 16px; background: var(--white); box-shadow: 0 30px 70px -20px rgba(0, 1, 65, .45); }
.modal__title { margin: 0 0 14px; font-size: 19px; font-weight: 500; }
.modal__row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 12px; }
.modal__row--3 { grid-template-columns: repeat(3, 1fr); }
.field label { display: block; margin-bottom: 5px; font-size: 12px; color: #6b7080; }
.field .input, .field--checks > div { display: flex; align-items: center; gap: 14px; min-height: 38px; padding: 0 12px; border: 1px solid #e3e6ee; border-radius: 999px; white-space: nowrap; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.field .input.is-focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(130, 66, 250, .16); }
.field .input.is-focus::after { content: ""; width: 1px; height: 16px; margin-left: 1px; background: var(--navy); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cb { display: inline-flex; align-items: center; gap: 6px; }
.cb::before { content: ""; width: 14px; height: 14px; border: 1.5px solid #9aa0b0; border-radius: 4px; transition: background-color .2s, border-color .2s; }
.cb.is-on::before { border-color: var(--violet); background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.modal__btn { display: inline-block; margin-top: 4px; padding: 11px 18px; border-radius: 999px; background: #23262f; color: var(--white); font-weight: 500; transition: transform .2s var(--ease), background-color .3s; }
.modal__btn.is-press { transform: scale(.94); background: var(--violet); }
.app__cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 26px; height: 26px; opacity: 0; transform: translate(var(--cx, 60px), var(--cy, 60px)); transition: transform .75s var(--ease), opacity .3s; filter: drop-shadow(0 4px 6px rgba(0, 1, 65, .3)); pointer-events: none; }
.app__cursor.is-on { opacity: 1; }
.app__cursor.is-click { animation: tap .32s var(--ease); }
@keyframes tap { 50% { scale: .8; } }

.dash { display: grid; grid-template-columns: .8fr 1fr 1.3fr; gap: 12px; margin-top: 12px; }
.dash > div { min-width: 0; padding: 16px; border-radius: 16px; background: var(--white); }
.dash__today { display: grid; justify-items: center; gap: 4px; text-align: center; }
.dash__today b { font-size: 46px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.dash__today b.is-bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); color: var(--violet); } }
.dash__today em { margin-top: 8px; padding: 7px 14px; border-radius: 999px; background: #23262f; color: var(--white); font-style: normal; }
.dash__donut { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
.dash__donut svg { width: clamp(64px, 20vw, 96px); height: auto; flex: none; }
.dash__donut circle { transition: stroke-dasharray 1s var(--ease); }
.dash__donut li { display: flex; align-items: center; gap: 7px; }
.dash__donut li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.dash__donut li.k2::before { background: var(--violet); }
.dash__cal header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.dash__cal header span { padding: 3px 10px; border-radius: 6px; background: #23262f; color: var(--white); }
.dash__cal li { position: relative; height: 30px; padding-left: 2px; border-top: 1px solid #edf0f5; font-size: 12px; color: #6b7080; }
.evt { position: absolute; left: 44px; right: 0; top: 3px; height: 52px; padding: 7px 10px; border-radius: 8px; background: rgba(130, 66, 250, .16); border-left: 3px solid var(--violet); color: var(--navy); font-style: normal; font-size: 12.5px; font-weight: 500; opacity: 0; transform: scaleY(.2); transform-origin: top; transition: opacity .4s, transform .6s var(--ease); }
.evt.is-on { opacity: 1; transform: none; }

.table { border-radius: 16px; background: var(--white); overflow: hidden; }
.table header { display: flex; align-items: center; gap: 16px; padding: 16px 18px; }
.table header b { font-size: 17px; font-weight: 500; }
.table header span { flex: 1; padding: 8px 12px; border: 1px solid #e3e6ee; border-radius: 8px; color: #9aa0b0; }
.table__row { display: grid; grid-template-columns: .6fr 1.6fr 1fr 1fr 1.1fr; gap: 10px; align-items: center; padding: 13px 18px; border-top: 1px solid #edf0f5; }
.table__row--head { background: #f6f9fc; color: #6b7080; font-size: 12.5px; }
.table__row[data-row] { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease), background-color .5s; }
.table__row[data-row].is-on { opacity: 1; transform: none; }
.table__row.is-flash { background: rgba(97, 238, 133, .16); }
.st { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #eef0f4; font-style: normal; font-size: 12.5px; white-space: nowrap; transition: background-color .4s, color .4s; }
.st[data-s="1"] { background: rgba(130, 66, 250, .16); color: var(--royal); }
.st[data-s="2"] { background: var(--violet); color: var(--white); }
.st[data-s="3"] { background: var(--green); color: var(--navy); }

.statz { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.statz__card, .statz__chart { padding: 18px; border-radius: 16px; background: var(--white); }
.statz__card b { display: block; font-size: 40px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.statz__card span, .statz__chart span, .statz__chart small { color: #6b7080; }
.statz__chart { grid-column: 1 / -1; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin: 14px 0 8px; }
.bars i { flex: 1; height: calc(var(--h) * 1%); border-radius: 8px 8px 3px 3px; background: var(--violet); transform: scaleY(0); transform-origin: bottom; transition: transform .9s var(--ease); }
.bars i:nth-child(even) { background: var(--green); }
.bars.is-on i { transform: none; }
.bars i:nth-child(2) { transition-delay: .06s; } .bars i:nth-child(3) { transition-delay: .12s; } .bars i:nth-child(4) { transition-delay: .18s; }
.bars i:nth-child(5) { transition-delay: .24s; } .bars i:nth-child(6) { transition-delay: .3s; } .bars i:nth-child(7) { transition-delay: .36s; }
.tour__cta { margin-top: 26px; }


/* Mapa 3D */
.city { position: relative; height: min(92svh, 860px); min-height: 620px; color: var(--white); background: var(--navy); overflow: hidden; }
.city .city__map { position: absolute; inset: 0; }
.city__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(0, 1, 65, .92) 0%, rgba(0, 1, 65, .55) 30%, rgba(0, 1, 65, 0) 58%), linear-gradient(rgba(0, 1, 65, .7), rgba(0, 1, 65, 0) 18%, rgba(0, 1, 65, 0) 82%, rgba(0, 1, 65, .8)); }
.city__ui { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 22px; width: min(430px, 100% - 2 * var(--gutter)); height: 100%; margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); padding-block: clamp(40px, 7vh, 80px); pointer-events: none; }
.city__ui > * { pointer-events: auto; }
.city__intro p { margin-top: 12px; color: rgba(255, 255, 255, .75); }
.city__list { display: grid; align-content: start; gap: 4px; flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.city__group { margin: 12px 0 2px; font-size: 14px; color: var(--green); }
.city__list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 6px 12px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--white); text-align: left; font-size: 17px; cursor: pointer; transition: background-color .25s, border-color .25s; }
.city__list button small { margin-left: auto; font-size: 14px; color: rgba(255, 255, 255, .6); white-space: nowrap; }
.city__list button::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(97, 238, 133, .6); }
.city__list button[aria-current="true"] { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.city__list button[aria-current="true"]::before { animation: pulse 1.6s infinite; }
@media (hover: hover) { .city__list button:hover { background: rgba(255, 255, 255, .08); } }
.city__card { flex: none; margin-top: auto; padding: 22px; border-radius: 18px; background: rgba(0, 1, 65, .72); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: screenIn .5s var(--ease) both; }
.city__card[hidden] { display: none; }
.city__co { font-size: 14px; color: var(--green); }
.city__card h3 { margin-top: 4px; font-size: 30px; line-height: 1.05; letter-spacing: -.015em; font-weight: 500; }
.city__card p { margin-top: 6px; color: rgba(255, 255, 255, .72); }
.city__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.city__actions .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
.city__start { position: absolute; z-index: 3; right: max(var(--gutter), 6vw); bottom: 40px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--green); color: var(--navy); font-weight: 500; cursor: pointer; }
.city.is-ready .city__start { display: none; }
.pin { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.pin i { width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid var(--navy); box-shadow: 0 0 0 0 rgba(97, 238, 133, .7); animation: pulse 2s infinite; transition: transform .3s var(--ease); }
.pin.is-on i { transform: scale(1.5); background: var(--white); }
.city .maplibregl-ctrl-group { background: rgba(0, 1, 65, .8); border: 1px solid rgba(255, 255, 255, .2); }
.city .maplibregl-ctrl-group button { width: 40px; height: 40px; }
.city .maplibregl-ctrl-group button + button { border-top-color: rgba(255, 255, 255, .2); }
.city .maplibregl-ctrl button .maplibregl-ctrl-icon { filter: invert(1); }
.city .maplibregl-ctrl-attrib { background: rgba(0, 1, 65, .6); color: rgba(255, 255, 255, .7); font-size: 11px; }
.city .maplibregl-ctrl-attrib a { color: inherit; }
.city .maplibregl-cooperative-gesture-screen { background: rgba(0, 1, 65, .6); font: 500 18px var(--font); }

/* Cotizador */
.pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pick legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 15px; color: var(--ink-2); }
.pick button, .stepper button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 16px; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease); }
.pick button:active, .stepper button:active { transform: scale(.94); }
.pick button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.stepper { display: grid; grid-template-columns: auto auto auto; grid-template-rows: auto auto; justify-content: start; align-items: center; gap: 8px 10px; }
.stepper__l { grid-column: 1 / -1; font-size: 15px; color: var(--ink-2); }
.stepper button { width: 44px; padding: 0; font-size: 20px; }
.stepper output { min-width: 34px; text-align: center; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.demo__sum { margin-top: 28px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); font-size: 20px; line-height: 1.3; max-width: 30ch; }
.demo__sum b { color: var(--green); font-weight: 500; }
.demo__sum.is-tick { animation: tick .4s var(--ease); }
@keyframes tick { 40% { transform: scale(1.02); border-color: var(--green); } }
.btn[data-magnet] { transform: translate(var(--tx, 0), var(--ty, 0)); }

/* ---------- Idioma como enlaces ---------- */
.lang a { display: grid; place-items: center; min-width: 38px; min-height: 34px; padding: 0 8px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .25s, color .25s; }
.lang a[aria-current="true"] { background: var(--green); color: var(--navy); }

/* ---------- Hero: ciudad 3D de puntos ---------- */
.hero__hint { position: absolute; left: 50%; bottom: 4px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(0, 1, 65, .5); font-size: 14px; color: rgba(255, 255, 255, .8); white-space: nowrap; transform: translateX(-50%); transition: opacity .5s; pointer-events: none; }
.hero__hint svg { width: 16px; height: 16px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

/* ---------- Íconos de línea animados ---------- */
.ico { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease) .2s; transform-box: fill-box; transform-origin: center; }
.is-in .ico path { stroke-dashoffset: 0; }
.svc__title { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.svc__title h3 { margin-top: 0; }
.svc__title .ico { flex: none; width: 30px; height: 30px; color: var(--violet); }
.ico--roller .head { animation: roll 2.6s var(--ease) infinite; }
.ico--wrench { animation: turn 3s var(--ease) infinite; transform-origin: 65% 35%; }
.ico--sparkle .big { animation: twinkle 3s var(--ease) infinite; }
.ico--sparkle .small { animation: fade 1.5s ease-in-out infinite; }
@keyframes fade { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes roll { 0%, 100% { transform: translateX(-1.5px); } 50% { transform: translateX(2px); } }
@keyframes turn { 0%, 60%, 100% { transform: rotate(0); } 75% { transform: rotate(-22deg); } 88% { transform: rotate(8deg); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.82) rotate(45deg); } }

/* ---------- Video que se reproduce en su sitio ---------- */
.vid { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); aspect-ratio: 16 / 10; }
.vid img, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid video { object-fit: contain; background: #000; }
.vid::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, rgba(0, 1, 65, .85)); pointer-events: none; transition: opacity .3s; }
.vid__play { position: absolute; z-index: 1; left: 16px; bottom: 16px; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; background: var(--green); color: var(--navy); cursor: pointer; animation: pulse 2.2s infinite; transition: transform .3s var(--ease); }
.vid__play::before { content: ""; position: absolute; inset: -16px; }
.vid__play svg { width: 22px; height: 22px; margin-left: 2px; }
.vid__t { position: absolute; z-index: 1; left: 84px; right: 16px; bottom: 20px; font-size: 14px; line-height: 1.25; color: rgba(255, 255, 255, .75); pointer-events: none; }
.vid__t b { display: block; font-size: 17px; font-weight: 500; color: var(--white); }
.vid.is-playing::after, .vid.is-playing .vid__play, .vid.is-playing .vid__t { opacity: 0; visibility: hidden; }
@media (hover: hover) { .vid:hover .vid__play { transform: scale(1.1); } }
.watch { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(24px, 5vw, 72px); align-items: center; margin-top: clamp(44px, 6vw, 80px); }
.watch .lead { margin-top: 14px; color: #243a52; }

/* ---------- Cierre ---------- */

/* ---------- Botones: onda al tocar y brillo ---------- */
.pick button, .stepper button, .switch button, .tour__steps button, .city__list button { position: relative; overflow: hidden; }
.rip { position: absolute; z-index: 0; border-radius: 50%; background: currentColor; opacity: .28; transform: scale(0); animation: rip .65s ease-out forwards; pointer-events: none; }
@keyframes rip { to { transform: scale(1); opacity: 0; } }
.btn--shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(-130%); animation: shine 4.6s 1.6s infinite; pointer-events: none; }
@keyframes shine { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@media (hover: none) {
  .pcard:active { transform: scale(.985); }
  .svc__item:active figure, .vid:active { transform: scale(.985); transition: transform .2s var(--ease); }
}

@media (max-width: 960px) {
  .watch { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ico path { stroke-dashoffset: 0; }
  .hero__hint { display: none; }
}

/* ---------- Barra flotante en píldora ---------- */
.nav { inset: 12px max(var(--gutter), calc((100vw - 1240px) / 2)) auto; height: 60px; padding: 0 10px 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.nav.is-solid { background: rgba(255, 255, 255, .84); border-color: var(--line); box-shadow: 0 12px 40px -22px rgba(0, 1, 65, .45); }
.hero { padding-top: 84px; }
.hero__title { font-size: clamp(40px, 5.3vw, 78px); max-width: 14ch; }

/* ---------- Globo de letras ---------- */
.hero__stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 600px; justify-self: end; touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none; }
.hero__stage:active { cursor: grabbing; }
.hero__stage::before { content: ""; position: absolute; inset: -6%; background: radial-gradient(closest-side, rgba(130, 66, 250, .34), rgba(97, 238, 133, .1) 55%, transparent 100%); opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.hero__stage.is-on canvas, .hero__stage.is-on::before { opacity: 1; }
.hero__stage, .hero__stage canvas { -webkit-tap-highlight-color: transparent; outline: 0; background: none; }
html:not(.tones) .hero::before { opacity: 1; transition: none; }

/* ---------- Ilustraciones de línea del oficio ---------- */
.pcard__art { position: relative; display: block; width: 64px; height: 64px; margin-bottom: 18px; color: var(--violet); }
.pcard__art .ico { position: absolute; inset: 0; width: 100%; height: 100%; stroke-width: 1.25; transition: opacity .45s, transform .7s var(--ease); }
.cards3:not(.is-with) .pcard__art:not(.pcard__art--trio) .ico:last-child { opacity: 0; transform: scale(.5) rotate(-25deg); }
.is-with .pcard__art { color: var(--green); }
.is-with .pcard__art:not(.pcard__art--trio) .ico:first-child { opacity: 0; transform: scale(.5) rotate(25deg); }
.pcard__art--trio { display: flex; gap: 10px; width: auto; }
.pcard__art--trio .ico { position: static; flex: none; width: 46px; height: 46px; }
.cards3:not(.is-with) .pcard__art--trio .ico:nth-child(1) { transform: translate(-2px, 10px) rotate(-16deg); opacity: .75; }
.cards3:not(.is-with) .pcard__art--trio .ico:nth-child(2) { transform: translate(8px, -6px) rotate(20deg); opacity: .5; }
.cards3:not(.is-with) .pcard__art--trio .ico:nth-child(3) { transform: translate(18px, 12px) rotate(-10deg); opacity: .65; }
.ico--phone { animation: ring 3.2s var(--ease) infinite; transform-origin: 50% 60%; }
.ico--phone .wave { animation: fade 1.6s ease-in-out infinite; }
.ico--phone .wave + .wave { animation-delay: .25s; }
.ico--eyeoff .slash { animation: slash 3.6s var(--ease) infinite; }
.ico--eye .pupil { animation: look 3.4s var(--ease) infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-14deg); } 82% { transform: rotate(12deg); } 88% { transform: rotate(-8deg); } 94% { transform: rotate(5deg); } }
@keyframes slash { 0%, 55%, 100% { transform: scale(1); } 70% { transform: scale(.2); } }
@keyframes look { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-2px); } 65% { transform: translateX(2px); } }

/* ---------- Carrusel de administradoras ---------- */
.marquees { margin-bottom: clamp(56px, 8vw, 104px); border-block: 1px solid var(--line); }
.trust__label { margin-bottom: 22px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -.018em; font-weight: 500; color: var(--navy); text-wrap: balance; }
.trust__label .hl--violet { color: var(--violet); }
.problems { padding-top: clamp(40px, 6vw, 72px); }
.marquee { display: flex; padding-block: 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; flex: none; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); animation: marquee 13s linear infinite; }
.marquee--rev { border-top: 1px solid var(--line); }
.marquee--rev ul { animation-duration: 22s; animation-direction: reverse; gap: 14px; padding-right: 14px; }
.marquee .marquee__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; line-height: 1; padding-top: 2px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--ink-2); white-space: nowrap; filter: none; opacity: 1; }
.marquee__chip b { font-size: 17px; font-weight: 500; color: var(--navy); }
.marquee .marquee__chip.is-lit { background: var(--navy); border-color: var(--navy); color: rgba(255, 255, 255, .75); transform: none; }
.marquee__chip.is-lit b { color: var(--green); }
.marquee.is-hold ul { animation-play-state: paused; }
.marquee .mq { display: grid; place-items: center; min-height: 56px; filter: grayscale(1) contrast(.7); opacity: .75; transition: filter .35s, opacity .35s, transform .35s var(--ease); }
.marquee img { width: auto; height: 34px; max-width: none; }
.marquee__word { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--navy); }
.marquee .mq.is-lit { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Cierre con el globo ---------- */
.closing { padding-block: clamp(56px, 8vw, 96px); color: var(--white); background: none; overflow: hidden; }
.closing__grid { display: grid; justify-items: center; text-align: center; }
.closing__copy .h2 { max-width: none; }
.closing__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

@media (max-width: 960px) {
  .nav__links { inset: 82px var(--gutter) auto; border-radius: 24px; padding: 6px 22px 14px; }
  .nav__links a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .nav { padding: 0 6px 0 16px; }
  .marquee img { height: 28px; }
  .marquee__word { font-size: 25px; }
}
@media (max-height: 520px) and (orientation: landscape) {
}
@media (prefers-reduced-motion: reduce) {
  .marquee ul { animation: none; }
  .marquee { overflow-x: auto; }
}

/* Adaptación */
@media (max-width: 960px) {
  .lang { margin-left: auto; }
  .nav__cta { margin-left: 0; }
  .platform__head { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .app__side { display: flex; align-items: center; gap: 14px; padding: 12px 14px; overflow: hidden; }
  .app__side strong { margin: 0; font-size: 16px; }
  .app__side ul { display: flex; gap: 4px; margin-left: auto; }
  .app__side li { padding: 8px 10px; font-size: 0; gap: 0; }
  .city { height: auto; min-height: 0; display: grid; padding-bottom: 32px; }
  .city__ui { display: contents; }
  .city__shade { display: none; }
  .city__intro { order: 1; padding: 56px var(--gutter) 18px; }
  .city .city__map { order: 2; position: sticky; top: 68px; z-index: 2; inset: 68px auto auto auto; height: 44svh; min-height: 300px; }
  .city__card { order: 3; margin: 14px var(--gutter) 0; }
  .city__list { order: 4; grid-template-columns: 1fr 1fr; gap: 4px 10px; padding: 8px var(--gutter) 0; overflow: visible; }
  .city__group { grid-column: 1 / -1; }
  .city__list button small { display: none; }
  .city__start { order: 5; position: static; justify-self: center; margin-top: 18px; }
}
@media (max-width: 720px) {
  .tour__steps { grid-template-columns: 1fr 1fr; }
  .tour__steps button { font-size: 16px; min-height: 48px; padding-block: 10px 12px; }
  .app__main { min-height: 540px; padding: 12px; }
  .modal { left: 3%; right: 3%; top: 52px; padding: 16px; }
  .modal__row { grid-template-columns: 1fr; }
  .modal__row--3 { grid-template-columns: 1fr 1fr; }
  .modal__row--3 .field:first-child { grid-column: 1 / -1; }
  .field--checks > div { gap: 10px; }
  .dash { grid-template-columns: 1fr 1fr; }
  .dash__cal { grid-column: 1 / -1; }
  .table__row { grid-template-columns: .5fr 1.5fr 1.1fr; }
  .table__row span:nth-child(3), .table__row span:nth-child(4) { display: none; }
  .switch { width: 100%; }
}
@media (max-width: 480px) {
  .nav__cta { display: none; }
  .city__list { grid-template-columns: 1fr; }
  .statz { grid-template-columns: 1fr 1fr; }
  .statz__card:nth-child(3) { display: none; }
}
@media (max-width: 960px) and (max-height: 520px) {
  .city .city__map { position: relative; top: auto; inset: auto; height: 78svh; }
}
@media (prefers-reduced-motion: reduce) {
  [data-split] .w > span { transform: none; }
  .svc__item.reveal figure { clip-path: none; }
  .table__row[data-row], .evt, .bars i { opacity: 1; transform: none; }
}

/* ---------- Hero en pantallas pequeñas: el logo va pequeño, a la derecha del texto ---------- */
@media (max-width: 960px) {
  .hero__copy { display: contents; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "lead mark" "cta cta"; align-items: center; gap: 0 14px; }
  .hero__title { grid-area: title; }
  .hero__lead { grid-area: lead; margin-top: 22px; }
  .hero__cta { grid-area: cta; }
  .hero__stage { grid-area: mark; width: clamp(84px, 24vw, 124px); aspect-ratio: 5 / 8; max-height: none; margin-top: 22px; justify-self: end; }
  .hero__hint { display: none; }
}

/* ---------- Fondo que cambia con el scroll: las secciones son transparentes y el color lo pone la página ---------- */
.hero, .demo, .closing { position: relative; isolation: isolate; }
.hero::before, .demo::before, .closing::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .55s ease; pointer-events: none; }
.hero::before { background: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.5px) 0 0 / 22px 22px, radial-gradient(120% 90% at 85% 0%, #2a0aa6 0%, rgba(42, 10, 166, 0) 55%), radial-gradient(90% 80% at 0% 100%, #16056e 0%, rgba(22, 5, 110, 0) 60%); }
.demo::before { background: radial-gradient(90% 120% at 100% 100%, var(--violet) 0%, rgba(130, 66, 250, 0) 60%), radial-gradient(70% 90% at 55% 100%, var(--royal) 0%, rgba(55, 14, 204, 0) 70%); }
.closing::before { background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 22px 22px, radial-gradient(90% 140% at 100% 100%, rgba(130, 66, 250, .55) 0%, rgba(130, 66, 250, 0) 60%); }
.hero.is-current::before, .demo.is-current::before, .closing.is-current::before { opacity: 1; }
[data-tone] > .wrap { transition: opacity .45s ease; }
[data-tone]:not(.is-current) > .wrap { opacity: .22; }
@media (prefers-reduced-motion: reduce) { [data-tone]:not(.is-current) > .wrap { opacity: 1; } }

/* ---------- Ventana antes/después: marco vivo, línea con brillo y destello al deslizar ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.window { position: relative; padding: 5px; border-radius: 30px; background: conic-gradient(from var(--ang), var(--green), var(--violet), var(--mint), var(--royal), var(--green)); animation: frame 7s linear infinite; }
.window::before { content: ""; position: absolute; inset: 6%; z-index: -1; border-radius: inherit; background: inherit; filter: blur(46px); opacity: .55; animation: frame 7s linear infinite; }
.ba__grid { isolation: isolate; }
.window .window__frame { border-radius: 25px; box-shadow: none; }
.window__note { position: absolute; left: 0; right: 0; top: 100%; }
.ba { padding-bottom: clamp(96px, 13vw, 170px); }
@keyframes frame { to { --ang: 360deg; } }
.window__handle { width: 3px; margin-left: -1.5px; background: linear-gradient(var(--green), var(--white) 50%, var(--green)); box-shadow: 0 0 18px 2px rgba(97, 238, 133, .85); }
.window__handle span { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--green); box-shadow: 0 0 0 0 rgba(97, 238, 133, .7), 0 8px 24px rgba(0, 1, 65, .4); animation: knob 2s infinite; transition: scale .25s var(--ease); }
@keyframes knob { 0% { box-shadow: 0 0 0 0 rgba(97, 238, 133, .7), 0 8px 24px rgba(0, 1, 65, .4); } 100% { box-shadow: 0 0 0 16px rgba(97, 238, 133, 0), 0 8px 24px rgba(0, 1, 65, .4); } }
.window.is-drag .window__handle span { scale: 1.18; animation: none; }
.window__frame::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 120px; background: linear-gradient(90deg, rgba(255, 255, 255, .5), rgba(97, 238, 133, .18) 40%, transparent); opacity: 0; transition: opacity .35s; pointer-events: none; mix-blend-mode: screen; }
.window.is-drag .window__frame::after { opacity: 1; }
.window__tag { transition: transform .3s var(--ease), box-shadow .3s; }
.window.is-drag .window__tag--a { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(97, 238, 133, .3); }
@media (max-width: 720px) {
  .window { padding: 4px; border-radius: 22px; }
  .window .window__frame { border-radius: 18px; }
  .window__handle span { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
}
@media (prefers-reduced-motion: reduce) { .window, .window::before, .window__handle span { animation: none; } }

/* ---------- Pie ---------- */
.footer { position: relative; isolation: isolate; padding-block: 40px 28px; background: radial-gradient(90% 140% at 100% 0%, rgba(130, 66, 250, .55) 0%, rgba(130, 66, 250, 0) 60%), var(--navy); color: rgba(255, 255, 255, .7); }
.footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 22px 22px; -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); pointer-events: none; }
.footer__top { display: grid; justify-items: center; gap: 16px; text-align: center; }
.footer .brand { color: var(--white); }
.footer .brand__word { font-size: 28px; }
.footer .brand__mark { width: 18px; height: 30px; }
.footer__tag { max-width: 40ch; font-size: 17px; }
.footer__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 12px; }
.social { --brand: var(--green); display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px 0 20px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; font-size: 18px; font-weight: 500; line-height: 1; color: var(--white); transition: background-color .25s, border-color .25s, transform .25s var(--ease); }
.social svg { width: 24px; height: 24px; }
.social--ig { --brand: #e1306c; }
.social--in { --brand: #0a66c2; }
.social:active { background: var(--brand); border-color: var(--brand); transform: scale(.97); }
@media (hover: hover) { .social:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); } }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 28px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.footer__made a { display: inline-block; padding-block: 12px; color: var(--white); }
@media (max-width: 720px) {
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__legal { justify-content: center; }
  .social { flex: 1 1 140px; justify-content: center; }
}

/* ---------- Testimonios ---------- */
.voices { position: relative; margin-top: clamp(36px, 5vw, 64px); padding: clamp(28px, 5vw, 64px); border-radius: 28px; color: var(--white); background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 22px 22px, radial-gradient(80% 120% at 100% 0%, rgba(130, 66, 250, .6), rgba(130, 66, 250, 0) 60%), var(--navy); overflow: hidden; }
.voices__stage { position: relative; display: grid; min-height: clamp(170px, 22vw, 260px); padding-top: clamp(40px, 6vw, 70px); }
.voices__mark { position: absolute; left: -6px; top: -14px; font-size: clamp(120px, 16vw, 210px); line-height: 1; font-weight: 600; color: var(--green); }
.voice { grid-area: 1 / 1; margin: 0; max-width: 22ch; font-size: clamp(30px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -.025em; font-weight: 500; text-wrap: balance; opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s; pointer-events: none; }
.voice.is-on { opacity: 1; transform: none; filter: none; }
.voices__tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: clamp(28px, 4vw, 48px); }
.voices__tabs button { position: relative; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px 16px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .62); text-align: left; cursor: pointer; overflow: hidden; transition: background-color .3s, color .3s; }
.voices__tabs button[aria-selected="true"] { background: rgba(255, 255, 255, .14); color: var(--white); }
.voices__av { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .14); font-size: 15px; font-weight: 600; color: var(--white); transition: background-color .3s, color .3s; }
.voices__tabs button[aria-selected="true"] .voices__av { background: var(--green); color: var(--navy); }
.voices__who { font-size: 14px; line-height: 1.25; }
.voices__who b { display: block; font-size: 17px; font-weight: 500; }
.voices__tabs i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left; }
.voices__tabs button[aria-selected="true"] i { animation: fill 5.2s linear forwards; }
.voices.is-paused .voices__tabs i { animation-play-state: paused; }
@media (hover: hover) { .voices__tabs button:hover { background: rgba(255, 255, 255, .12); color: var(--white); } }
@media (max-width: 720px) {
  .voices { border-radius: 22px; }
  .voices__tabs { grid-template-columns: 1fr; gap: 8px; }
  .voices__stage { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) { .voice { filter: none; transform: none; } .voices__tabs i { animation: none !important; } }

/* ---------- Los fondos decorados se desvanecen en sus bordes: sin líneas entre un fondo y el siguiente ---------- */
.hero::before { -webkit-mask-image: linear-gradient(#000 calc(100% - 220px), transparent); mask-image: linear-gradient(#000 calc(100% - 220px), transparent); }
.demo::before { -webkit-mask-image: linear-gradient(transparent, #000 200px, #000 calc(100% - 200px), transparent); mask-image: linear-gradient(transparent, #000 200px, #000 calc(100% - 200px), transparent); }
.closing::before { -webkit-mask-image: linear-gradient(transparent, #000 160px); mask-image: linear-gradient(transparent, #000 160px); }
.stats { border-top-color: rgba(255, 255, 255, .1); }

/* En pantallas pequeñas el logo va sin resplandor detrás: Safari de iPhone lo pinta como un rectángulo */
@media (max-width: 960px) {
  .hero__stage::before { display: none; }
  .hero__stage, .hero__stage canvas { background: transparent; box-shadow: none; border: 0; }
}

/* Testimonios centrados: comillas arriba, frase al centro, personas debajo */
.voices { text-align: center; }
.voices__stage { justify-items: center; align-items: center; padding-top: clamp(64px, 8vw, 104px); }
.voices__mark { left: 50%; top: -6px; transform: translateX(-50%); font-size: clamp(96px, 12vw, 150px); line-height: .8; height: .55em; }
.voice { max-width: 20ch; margin-inline: auto; }
.voices__tabs { max-width: 900px; margin-inline: auto; }

/* ---------- Ningún bloque con fondo fijo corta la página ---------- */
.footer { background: none; }
.footer::before { background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 22px 22px, radial-gradient(90% 140% at 100% 0%, rgba(130, 66, 250, .5) 0%, rgba(130, 66, 250, 0) 60%); -webkit-mask-image: none; mask-image: none; opacity: 0; transition: opacity .55s ease; }
.footer.is-current::before { opacity: 1; }
.footer > .wrap { transition: opacity .45s ease; }
.footer:not(.is-current) > .wrap { opacity: 0; }
.closing::before { -webkit-mask-image: linear-gradient(transparent, #000 160px, #000 calc(100% - 120px), transparent); mask-image: linear-gradient(transparent, #000 160px, #000 calc(100% - 120px), transparent); }
.city { -webkit-mask-image: linear-gradient(transparent, #000 110px, #000 calc(100% - 110px), transparent); mask-image: linear-gradient(transparent, #000 110px, #000 calc(100% - 110px), transparent); }
@media (prefers-reduced-motion: reduce) { .footer:not(.is-current) > .wrap { opacity: 1; } .footer { background: var(--navy); } }

/* ---------- El mapa es una tarjeta dentro de la página, no un fondo que la corta ---------- */
.city { -webkit-mask-image: none; mask-image: none; margin: 0 clamp(10px, 2vw, 28px) clamp(24px, 4vw, 56px); border-radius: 28px; overflow: clip; }
.city .city__map { opacity: 0; transition: opacity .8s ease; }
.city.is-ready .city__map { opacity: 1; }
.city__ui { margin-left: clamp(20px, 4vw, 64px); }
@media (max-width: 960px) { .city { border-radius: 22px; } .city__ui { margin-left: 0; } }

/* ---------- Cierre y pie: un solo fondo continuo ---------- */
.closing::before { -webkit-mask-image: linear-gradient(transparent, #000 160px); mask-image: linear-gradient(transparent, #000 160px); background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 22px 22px; }
.footer::before { background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.5px) 0 0 / 22px 22px; }
.closing { padding-bottom: clamp(24px, 4vw, 48px); }
.footer__bottom { border-top-color: rgba(255, 255, 255, .08); }

.marquee { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: default; }

/* Cápsulas del carrusel: dirección y zona en una sola línea, centradas */
.marquee .mq.marquee__chip { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; padding: 2px 18px 0; line-height: 1; white-space: nowrap; filter: none; opacity: 1; }
.marquee .mq.marquee__chip.is-lit { transform: none; }

/* ---------- Lote de la reunión con el cliente (2026-11-10) ---------- */
/* Marca siempre en verde; el botón verde del menú es Log in */
.brand__mark, .nav.is-solid .brand__mark { color: var(--green); }
@media (min-width: 961px) { .nav__links .nav__login { display: none; } }

/* Carrusel: más lento, todos los logos con la misma presencia y centrados a la misma altura */
.marquee ul { animation-duration: 38s; align-items: center; }
.marquee--rev ul { animation-duration: 64s; }
.marquee li { display: flex; align-items: center; }
.marquee .mq { height: 56px; min-height: 0; filter: none; opacity: 1; }
.marquee .mq.is-lit { transform: none; }
.marquee img { height: 36px; object-fit: contain; }
.marquee img[src*="cc-apartment"] { height: 46px; }
.marquee__word { line-height: 1; }
@media (max-width: 720px) { .marquee img { height: 30px; } .marquee img[src*="cc-apartment"] { height: 38px; } }

/* Tarjeta 03: un solo ícono de tres personas */
.pcard__art--solo .ico { opacity: 1 !important; transform: none !important; }
.cards3:not(.is-with) .pcard__art--solo .side { opacity: .45; }
.pcard__art--solo .side { transition: opacity .45s, stroke-dashoffset 1.2s var(--ease) .2s; }

/* Sin verde agua: marcos y fondos de imagen neutros */
.window { background: conic-gradient(from var(--ang), var(--green), var(--violet), var(--white), var(--royal), var(--green)); }
.window__frame, .svc__item figure, .team__photo, .team__video { background: #eef0f4; }
.platform__head .lead { color: var(--ink-2); }
.ai-note { margin-top: 18px; text-align: center; font-size: 14px; color: var(--ink-2); }

/* Contadores en vivo */
.stats [data-count] { display: inline-block; }
.stats [data-count].is-bump { animation: liveBump .5s var(--ease); }
@keyframes liveBump { 0% { transform: translateY(0); } 35% { transform: translateY(-5px); color: var(--bump, var(--green)); } 100% { transform: translateY(0); } }

/* Precio de referencia del cotizador */
.demo__price { display: grid; gap: 4px; margin-top: 14px; padding: 18px 20px; border-radius: 16px; background: var(--green); color: var(--navy); max-width: 30ch; }
.demo__price span { font-size: 15px; font-weight: 500; }
.demo__price b { font-size: clamp(34px, 4vw, 46px); line-height: 1; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.demo__price small { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.demo__price em { font-style: normal; font-size: 13px; line-height: 1.3; opacity: .8; }
@media (max-width: 960px) { .demo__sum, .demo__price { max-width: none; } }

/* Demo de la plataforma: campos de selección */
.modal__row--top { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
.field { position: relative; }
.field .input { font-size: 13px; }
.input--select::before, .input--date::before { content: ""; order: 2; flex: none; width: 7px; height: 7px; margin-left: auto; border-right: 1.5px solid #6b7080; border-bottom: 1.5px solid #6b7080; transform: translateY(-2px) rotate(45deg); }
.input--select.is-focus::after, .input--date.is-focus::after { display: none; }
.dd { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; display: grid; padding: 6px; border: 1px solid #e3e6ee; border-radius: 14px; background: var(--white); box-shadow: 0 18px 40px -14px rgba(0, 1, 65, .4); animation: ddIn .22s var(--ease) both; }
.dd i { padding: 7px 10px; border-radius: 9px; font-style: normal; white-space: nowrap; transition: background-color .15s, color .15s; }
.dd i.is-hover { background: #eef0f4; }
.dd i.is-picked { background: var(--violet); color: var(--white); }
.dd--cal { left: auto; width: 196px; }
.dd--cal b { padding: 4px 6px 6px; font-size: 12px; font-weight: 500; color: #6b7080; }
.dd--cal div { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dd--cal i { padding: 4px 0; text-align: center; font-size: 11px; border-radius: 6px; }
.modal__row--3 .dd { top: auto; bottom: calc(100% - 18px); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .modal__row--top { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .modal__row--top .field--checks { grid-column: 1 / -1; }
  .field .input { padding: 0 9px; font-size: 12px; }
  .dd--cal { width: 176px; }
  .modal__row--top .field--date:nth-child(2) .dd--cal { left: 0; right: auto; }
}

/* Mapa: el edificio elegido y su punto quedan en verde */
.pin.is-on i { background: var(--green); border-color: var(--white); transform: scale(1.6); }

/* Tarjeta de bienvenida real */
.card-home { padding: 0; overflow: hidden; justify-content: flex-start; }
.card-home img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 62%; }
.card-home p { padding: 18px 22px 22px; }

/* Hero con foto del equipo (opciones: ?hero=equipo | pasillo | brochas) */
.hero__photo { position: absolute; inset: 0; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .14); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__photo figcaption { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(0, 1, 65, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 15px; color: var(--white); }
.hero__photo figcaption .brand__mark { width: 11px; height: 18px; }
html:not([data-hero="brochas"]) .hero__stage { aspect-ratio: 4 / 5; max-height: min(620px, 68vh); max-width: 500px; cursor: default; }
html:not([data-hero="brochas"]) .hero__stage::before { display: none; }
html:not([data-hero="brochas"]) .hero__stage canvas, html:not([data-hero="brochas"]) .hero__hint { display: none; }
html[data-hero="brochas"] .hero__photo { display: none; }
@media (max-width: 960px) {
  html:not([data-hero="brochas"]) .hero__inner { grid-template-columns: 1fr; grid-template-areas: "title" "lead" "cta" "mark"; }
  html:not([data-hero="brochas"]) .hero__stage { width: 100%; max-width: none; aspect-ratio: 16 / 11; max-height: none; margin-top: 26px; }
  .hero__photo { border-radius: 22px; }
  .hero__photo figcaption { font-size: 14px; padding: 8px 14px 8px 10px; }
}
.modal__row > .field { min-width: 0; }
@media (max-width: 720px) {
  .modal__row--top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .input--date { padding: 0 8px; font-size: 11px; letter-spacing: -.01em; }
  .input--date::before { display: none; }
}

/* Tarjetas de problemas: títulos de una línea para que las tres descripciones arranquen a la misma altura;
   si en un ancho intermedio alguno se parte en dos, todos reservan dos líneas */
.pcard h3 { text-wrap: balance; }
@media (min-width: 961px) and (max-width: 1280px) { .cards3 .pcard h3 { min-height: 2.2em; } }
@media (min-width: 961px) and (max-width: 1100px) { .cards3 .pcard h3 { font-size: 22px; } }

/* ---------- Hero: el equipo recortado sobre el azul, con la marca viva detrás ---------- */
.hero__photo--cut { border-radius: 0; overflow: visible; box-shadow: none; }
.hero__photo--cut img { position: relative; z-index: 2; object-fit: contain; object-position: 50% 100%; -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -6px)); transition: transform .5s var(--ease); opacity: 0; animation: crewIn 1s var(--ease) .25s forwards; }
.hero__fx { position: absolute; inset: -7% 0 6%; z-index: 1; display: grid; place-items: center; transform: translate(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 12px)); transition: transform .7s var(--ease); pointer-events: none; }
.hero__fx::before { content: ""; position: absolute; inset: 2% -8% -4%; background: radial-gradient(closest-side, rgba(130, 66, 250, .55), rgba(55, 14, 204, .28) 48%, rgba(0, 1, 65, 0) 72%), radial-gradient(40% 34% at 50% 78%, rgba(97, 238, 133, .3), rgba(97, 238, 133, 0)); animation: haloPulse 6s ease-in-out infinite; }
.hero__fx svg { position: relative; height: 100%; aspect-ratio: 3 / 5; color: var(--green); -webkit-mask-image: linear-gradient(115deg, rgba(0, 0, 0, .28) 32%, #000 50%, rgba(0, 0, 0, .28) 68%); mask-image: linear-gradient(115deg, rgba(0, 0, 0, .28) 32%, #000 50%, rgba(0, 0, 0, .28) 68%); -webkit-mask-size: 320% 100%; mask-size: 320% 100%; animation: markSweep 5.5s linear infinite, markIn 1.2s var(--ease) both; }
.hero__photo:not(.hero__photo--cut) .hero__fx { display: none; }
.hero__photo--cut figcaption { z-index: 3; left: 50%; bottom: 2%; transform: translateX(-50%); white-space: nowrap; }
html:not([data-hero="brochas"]):not([data-hero="pasillo"]) .hero__stage { aspect-ratio: 1100 / 1270; max-width: 540px; }
@keyframes crewIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -6px)); } }
@keyframes markIn { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@keyframes markSweep { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes haloPulse { 0%, 100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@media (max-width: 960px) {
  html:not([data-hero="brochas"]):not([data-hero="pasillo"]) .hero__stage { aspect-ratio: 1100 / 1180; max-width: 460px; justify-self: center; margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__photo--cut img { opacity: 1; animation: none; }
  .hero__fx svg, .hero__fx::before { animation: none; }
}

/* En celular el equipo recortado va pequeño a la derecha del párrafo, como iba antes el logo (no debajo de los botones) */
@media (max-width: 960px) {
  html:not([data-hero="brochas"]):not([data-hero="pasillo"]) .hero__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "lead mark" "cta cta"; align-items: center; gap: 0 12px; }
  html:not([data-hero="brochas"]):not([data-hero="pasillo"]) .hero__stage { grid-area: mark; width: clamp(128px, 38vw, 200px); max-width: none; aspect-ratio: 1100 / 1270; margin-top: 18px; justify-self: end; }
  .hero__photo--cut figcaption { display: none; }
  .hero__photo--cut .hero__fx { inset: -6% -4% 4%; }
}

/* Contadores: cuando el fondo pasa de azul a blanco siguen visibles y cambian a azul oscuro, para que se note que suben */
.stats dt, .stats dd, .stats { transition: color .55s ease, border-color .55s ease, opacity .55s ease; }
.tones .hero:not(.is-current) > .stats.wrap { opacity: 1; border-top-color: var(--line); --bump: var(--violet); }
.tones .hero:not(.is-current) .stats dt { color: var(--navy); }
.tones .hero:not(.is-current) .stats dd { color: var(--ink-2); }

/* Carrusel: el desvanecido de los bordes es corto para que ningún logo se vea lavado */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }

/* Solo dos servicios (pintura y limpieza): dos columnas con fotos más apaisadas */
.svc--two { grid-template-columns: repeat(2, 1fr); }
.svc--two .svc__item figure { aspect-ratio: 5 / 4; }
.svc--two .svc__item figure img { object-position: 50% 30%; }
@media (max-width: 720px) { .svc--two { grid-template-columns: 1fr; } }
.social--tt { --brand: #fe2c55; }

/* Equipo del hero de cuerpo entero, sin desvanecido abajo (se veía como un recuadro sobrepuesto): sombra suave en el piso y la etiqueta debajo */
.hero__photo--cut img { -webkit-mask-image: none; mask-image: none; height: 91%; }
.hero__photo--cut::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: 6.5%; height: 7%; z-index: 1; background: radial-gradient(closest-side, rgba(0, 0, 20, .55), rgba(0, 0, 20, 0)); pointer-events: none; }
.hero__photo--cut figcaption { bottom: 0; }
.hero__fx { inset: -7% 0 12%; }
html:not([data-hero="brochas"]):not([data-hero="pasillo"]) .hero__stage { aspect-ratio: 1100 / 1390; }
@media (max-width: 960px) {
  .hero__photo--cut img { height: 100%; }
  .hero__photo--cut::after { bottom: -2.5%; }
  html:not([data-hero="brochas"]):not([data-hero="pasillo"]) .hero__stage { aspect-ratio: 1100 / 1259; }
  .hero__photo--cut .hero__fx { inset: -6% -4% 6%; }
}

/* Halo del equipo: un solo degradado circular que llega a transparente antes del borde de su caja y, además, una máscara
   radial: nunca puede quedar cortado en línea recta (el brillo verde de abajo se salía y dibujaba un recuadro) */
.hero__fx::before { inset: -6% -14% -6%; background: radial-gradient(closest-side, rgba(130, 66, 250, .5), rgba(55, 14, 204, .24) 42%, rgba(0, 1, 65, 0) 66%); -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 92%); mask-image: radial-gradient(closest-side, #000 50%, transparent 92%); animation: haloFade 6s ease-in-out infinite; }
@keyframes haloFade { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.hero__photo--cut::after { -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 95%); mask-image: radial-gradient(closest-side, #000 40%, transparent 95%); }

/* Reseñas: retratos ilustrativos (las personas citadas pidieron no publicar su foto real) */
.voices__av { width: 48px; height: 48px; padding: 0; overflow: hidden; background: var(--navy); box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); transition: box-shadow .3s; }
.voices__av img { width: 100%; height: 100%; object-fit: cover; }
.voices__tabs button[aria-selected="true"] .voices__av { background: var(--navy); box-shadow: 0 0 0 2px var(--green); }

.voices__av { width: 52px; height: 52px; }

/* ================= Lote de Carlos (2026-11-10, noche) ================= */
/* Logo oficial del kit: ícono verde + palabra con su tipografía */
.brand__logo { display: block; height: 24px; width: auto; aspect-ratio: 1320 / 236.8; overflow: visible; }
.footer .brand__logo { height: 32px; }
@media (max-width: 480px) { .brand__logo { height: 21px; } }

/* Log in y Contact us del mismo tamaño, en el hero y en el cierre */
.hero__cta .btn, .closing__cta .btn { flex: 0 0 auto; min-width: 196px; min-height: 52px; }
@media (max-width: 480px) { .hero__cta .btn, .closing__cta .btn { flex: 1 1 100%; } }

/* Números centrados, y se van con el hero al bajar (como en la primera propuesta) */
.stats { text-align: center; }
.tones .hero:not(.is-current) > .stats.wrap { opacity: 0; }
.tones .hero:not(.is-current) .stats dt { color: inherit; }
.tones .hero:not(.is-current) .stats dd { color: rgba(255, 255, 255, .7); }

/* Prueba: logos de clientes en gris */
.marquee .mq:not(.marquee__chip) { filter: grayscale(1); opacity: .62; }

/* Servicios: tres cuadros otra vez, con fotos apaisadas */
.svc__item figure { aspect-ratio: 4 / 3; }
.svc__item figure img { object-position: 50% 50%; }

/* Demo de la plataforma más alta */
.app__main { min-height: 470px; }
.modal { top: 96px; }
@media (max-width: 720px) { .app__main { min-height: 600px; } .modal { top: 64px; } }

/* Our own people: foto del grupo a lo ancho y las de Carlos debajo */
.team__wide { margin-top: clamp(36px, 5vw, 64px); border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9; background: #eef0f4; }
.team__wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.team__wide + .team__grid { margin-top: 16px; }
.team__photo img { object-position: 38% 50%; }
.card-home img { aspect-ratio: 16 / 10; object-position: 42% 60%; }
@media (max-width: 720px) { .team__wide { aspect-ratio: 16 / 10; } }

/* ---------- Hero: monitor y portátil con la plataforma ---------- */
html[data-hero="setup"][data-hero] .hero__stage { container-type: inline-size; aspect-ratio: 10 / 8.6; max-width: 640px; max-height: none; cursor: default; }
html[data-hero="setup"] .hero__photo, html[data-hero="setup"] .hero__stage canvas, html[data-hero="setup"] .hero__hint { display: none; }
html:not([data-hero="setup"]) .rig { display: none; }
.rig { position: absolute; inset: 0; font-size: 1.5cqw; line-height: 1.2; color: #23262f; }
.rig__glow { position: absolute; inset: -4% -8% 2%; background: radial-gradient(closest-side, rgba(130, 66, 250, .5), rgba(55, 14, 204, .22) 44%, rgba(0, 1, 65, 0) 68%); -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 92%); mask-image: radial-gradient(closest-side, #000 50%, transparent 92%); }
/* Escena: foto real de los equipos (con las pantallas recortadas) encima; la plataforma viva queda detrás del vidrio */
.rig__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(1400px) rotateY(calc(var(--mx, 0) * -7deg)) rotateX(calc(var(--my, 0) * 5deg)); transition: transform .5s var(--ease), opacity 1s, translate 1.1s var(--ease); opacity: 0; translate: 0 5cqw; }
.rig.is-live .rig__scene { opacity: 1; translate: 0 0; }
.rig__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; -webkit-mask-image: radial-gradient(64% 62% at 52% 56%, #000 70%, transparent 100%); mask-image: radial-gradient(64% 62% at 52% 56%, #000 70%, transparent 100%); }
.rig__screen { position: absolute; overflow: hidden; background: #f6f9fc; }
.rig__screen--mon { left: 31.8%; top: 20.8%; width: 62.3%; height: 44.7%; }
.rig__screen--lap { left: 9.2%; top: 52.4%; width: 37.6%; height: 29.4%; }
/* La interfaz está medida en unidades de un contenedor más ancho que la pantalla, para que conserve sus proporciones */
.rig__fit { position: absolute; left: 0; top: 0; height: 100%; container-type: inline-size; }
.rig__screen--mon .rig__fit { width: 132.6%; }
.rig__screen--lap .rig__fit { width: 207.5%; }
.rig__screen--mon .rig__app { width: 75.4%; border-radius: 0; }
.rig__screen--lap .rig__app { width: 48.2%; border-radius: 0; }
.rig__screen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 32%); pointer-events: none; }
/* Cursor que pide un trabajo en la pantalla grande */
.rig__cursor { position: absolute; left: 0; top: 0; width: 2.6cqw; height: 2.6cqw; translate: 46cqw 30cqw; opacity: 0; filter: drop-shadow(0 .4cqw .6cqw rgba(0, 1, 65, .35)); }
.rig.is-live .rig__cursor { animation: rigCursor 9s var(--ease) 1.4s infinite; }
.rig.is-live .rig__banner em { animation: rigPress 9s ease 1.4s infinite; }
@keyframes rigCursor { 0% { opacity: 0; translate: 46cqw 30cqw; } 8% { opacity: 1; } 26%, 40% { translate: 21cqw 11.4cqw; opacity: 1; } 31% { scale: .82; } 36% { scale: 1; } 55%, 100% { opacity: 0; translate: 21cqw 11.4cqw; } }
@keyframes rigPress { 0%, 29%, 40%, 100% { background: #23262f; box-shadow: none; } 31%, 36% { background: var(--violet); box-shadow: 0 0 0 .5cqw rgba(130, 66, 250, .3); } }
/* Tarjetas que salen de la pantalla: aparecen en cadena después del clic */
.rig__pop { position: absolute; display: flex; align-items: center; gap: 1.4cqw; padding: 1.5cqw 2.2cqw 1.5cqw 1.5cqw; border-radius: 2.2cqw; background: rgba(255, 255, 255, .96); color: var(--navy); font-size: 1.9cqw; line-height: 1.15; white-space: nowrap; box-shadow: 0 2.4cqw 5cqw -1.6cqw rgba(0, 0, 0, .6), 0 0 0 .15cqw rgba(255, 255, 255, .5); transform: translateZ(60px); opacity: 0; }
.rig__pop span { display: grid; gap: .2cqw; }
.rig__pop b { font-weight: 600; letter-spacing: -.01em; }
.rig__pop small { font-size: 1.5cqw; color: #6b7080; }
.rig__pop i { display: grid; place-items: center; flex: none; width: 4.4cqw; height: 4.4cqw; border-radius: 50%; background: var(--green); font-style: normal; font-size: 2.4cqw; font-weight: 600; }
.rig__pop i.cal { border-radius: 1.2cqw; background: #e6dcff; position: relative; }
.rig__pop i.cal::before { content: ""; position: absolute; inset: 1cqw 1cqw auto; height: .7cqw; border-radius: 99px; background: var(--violet); box-shadow: 0 1.2cqw 0 #b79bff; }
.rig__pop em { flex: none; width: 1.6cqw; height: 1.6cqw; margin: 0 .6cqw 0 .8cqw; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(97, 238, 133, .7); animation: pulse 1.6s infinite; }
.rig__pop--done { right: -2%; top: 12%; }
.rig__pop--next { right: 1%; top: 60%; transform: translateZ(90px); }
.rig__pop--live { left: 2%; top: 41%; transform: translateZ(110px); }
.rig.is-live .rig__pop { animation: rigPop 9s var(--ease) infinite, rigBob 5s ease-in-out infinite; }
.rig.is-live .rig__pop--done { animation-delay: 4.6s, 0s; }
.rig.is-live .rig__pop--next { animation-delay: 5s, -1.6s; }
.rig.is-live .rig__pop--live { animation-delay: 5.4s, -3.1s; }
@keyframes rigPop { 0% { opacity: 0; scale: .7; } 5%, 86% { opacity: 1; scale: 1; } 94%, 100% { opacity: 0; scale: .9; } }
@keyframes rigBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.4cqw; } }
/* Pantallas */
.rig__app { display: grid; grid-template-columns: 17% 1fr; height: 100%; border-radius: 1cqw; overflow: hidden; background: #f6f9fc; }
.rig__side { display: grid; align-content: start; gap: 1.1cqw; padding: 1.6cqw 1.2cqw; background: var(--white); }
.rig__side b { font-size: 1.35cqw; font-weight: 600; letter-spacing: -.02em; margin-bottom: .6cqw; }
.rig__side i { height: 1.5cqw; border-radius: 99px; background: #eceff5; }
.rig__side i.is-on { background: #23262f; }
.rig__main { display: grid; align-content: start; gap: 1.1cqw; padding: 1.2cqw; min-width: 0; }
.rig__banner { display: grid; align-content: center; gap: .35cqw; height: 13.5cqw; padding: 0 2cqw; border-radius: 1.4cqw; color: var(--white); background: linear-gradient(100deg, rgba(0, 1, 65, .82), rgba(55, 14, 204, .45)), url("../assets/img/team-window.webp?v=93050bbf4b") center 38% / cover; }
.rig__banner b { font-size: 3.4cqw; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.rig__banner span { font-size: 1.3cqw; opacity: .85; }
.rig__banner em { justify-self: start; margin-top: .5cqw; padding: .6cqw 1.3cqw; border-radius: 99px; background: #23262f; font-style: normal; font-size: 1.2cqw; }
.rig__row { display: grid; grid-template-columns: .8fr 1.25fr 1.2fr; gap: 1.1cqw; }
.rig__card { display: grid; align-content: center; gap: .4cqw; min-width: 0; padding: 1.2cqw; border-radius: 1.2cqw; background: var(--white); font-size: 1.15cqw; color: #6b7080; }
.rig__card--today { justify-items: center; text-align: center; background: #f2eff0; }
.rig__card--today b { font-size: 3.6cqw; font-weight: 500; line-height: 1; color: #23262f; }
.rig__card--today em { padding: .5cqw 1.2cqw; border-radius: 99px; background: #23262f; color: var(--white); font-style: normal; font-size: 1cqw; }
.rig__card--donut { grid-template-columns: auto 1fr; align-items: center; gap: 1.2cqw; }
.rig__card--donut svg { width: 8.4cqw; height: 8.4cqw; }
.rig__card--donut ul { display: grid; gap: .5cqw; margin: 0; padding: 0; list-style: none; }
.rig__card--donut li { display: flex; align-items: center; gap: .6cqw; }
.rig__card--donut li::before { content: ""; width: 1cqw; height: 1cqw; border-radius: 50%; background: var(--green); }
.rig__card--donut li:nth-child(2)::before { background: var(--violet); }
.rig__card--donut li:nth-child(3)::before { background: #ff9f5a; }
.rig__arc { transition: stroke-dasharray 1.4s var(--ease) .5s; }
.rig.is-live .rig__arc--a { stroke-dasharray: 50 50; }
.rig.is-live .rig__arc--b { stroke-dasharray: 35 65; }
.rig.is-live .rig__arc--c { stroke-dasharray: 15 85; }
.rig__card--cal header { display: flex; align-items: center; gap: .5cqw; color: #23262f; font-size: 1.2cqw; }
.rig__card--cal header span { margin-right: auto; }
.rig__card--cal header i { width: 1.6cqw; height: 1.6cqw; border-radius: .4cqw; background: #23262f; }
.rig__card--cal > div { display: grid; grid-template-columns: repeat(7, 1fr); gap: .45cqw; }
.rig__card--cal > div i { aspect-ratio: 1.5; border-radius: .35cqw; background: #eef0f6; }
.rig__card--cal > div i.is-on { background: #e6dcff; box-shadow: inset 0 0 0 .15cqw var(--violet); }
.rig__table { display: grid; gap: .7cqw; padding: 1.2cqw; border-radius: 1.2cqw; background: var(--white); }
.rig__table span { height: 1.3cqw; border-radius: 99px; background: linear-gradient(90deg, #e3e6ee 12%, transparent 12% 18%, #eef0f6 18% 52%, transparent 52% 58%, #eef0f6 58% 80%, transparent 80% 86%, var(--green) 86%); }
.rig__table span:nth-child(2) { background: linear-gradient(90deg, #e3e6ee 12%, transparent 12% 18%, #eef0f6 18% 46%, transparent 46% 58%, #eef0f6 58% 76%, transparent 76% 86%, #e6dcff 86%); }
/* Portátil: estadísticas (a su escala) */
.rig__app--stats { font-size: 1.1cqw; grid-template-columns: 19% 1fr; }
.rig__app--stats .rig__side { padding: 1.1cqw .8cqw; gap: .8cqw; }
.rig__app--stats .rig__side b { font-size: .95cqw; }
.rig__app--stats .rig__side i { height: 1.05cqw; }
.rig__app--stats .rig__main { padding: .9cqw; gap: .8cqw; }
.rig__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7cqw; }
.rig__kpis div { display: grid; gap: .2cqw; padding: .9cqw 1cqw; border-radius: .9cqw; background: var(--white); color: #6b7080; font-size: .95cqw; }
.rig__kpis b { font-size: 2.3cqw; font-weight: 500; line-height: 1; color: #23262f; }
.rig__row--charts { grid-template-columns: .8fr 1.4fr; gap: .7cqw; }
.rig__app--stats .rig__card { padding: .9cqw; border-radius: .9cqw; font-size: .9cqw; }
.rig__app--stats .rig__card--donut { grid-template-columns: 1fr; justify-items: center; }
.rig__app--stats .rig__card--donut svg { width: 7cqw; height: 7cqw; }
.rig__card--line svg { width: 100%; height: 6.4cqw; overflow: visible; }
.rig__area { fill: rgba(130, 66, 250, .14); opacity: 0; transition: opacity 1s 1.4s; }
.rig__line { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .7s; }
.rig.is-live .rig__line { stroke-dashoffset: 0; }
.rig.is-live .rig__area { opacity: 1; }
@media (max-width: 960px) {
  html[data-hero="setup"][data-hero] .hero__inner { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title title" "lead mark" "cta cta"; align-items: center; gap: 0 12px; }
  html[data-hero="setup"][data-hero] .hero__stage { grid-area: mark; width: clamp(140px, 42vw, 240px); max-width: none; aspect-ratio: 10 / 8.6; margin-top: 18px; justify-self: end; }
}
.team__photo img[src*="team-counter"] { object-position: 86% 50%; }
.team__photo img[src*="team-kitchen"] { object-position: 52% 50%; }

/* Segundo audio de Carlos: direcciones también en gris, comentarios en la demo, fotos */
.marquee .mq.marquee__chip { color: #8a8fa3; border-color: #e3e6ee; }
.marquee__chip b { color: #6b7080; }
.modal__row--full { grid-template-columns: 1fr; }
.field .input--ghost { color: #a2a7b8; }
.svc__item figure img[src*="svc-painting"] { object-position: 50% 38%; }
.team__photo img[src*="team-walk"] { object-position: 50% 50%; }

/* Hero con equipos reales: proporción de la foto; sin la línea sobre los números */
html[data-hero="setup"][data-hero] .hero__stage { aspect-ratio: 1600 / 1289; max-width: 700px; width: 112%; margin-right: -4%; }
.rig__glow { inset: 4% -4% 6%; }
.stats, .tones .hero:not(.is-current) > .stats.wrap { border-top: 0; }
@media (max-width: 960px) {
  html[data-hero="setup"][data-hero] .hero__stage { width: clamp(150px, 46vw, 260px); margin-right: -10px; aspect-ratio: 1600 / 1289; }
  .rig__pop--next, .rig__pop--live { display: none; }
  .rig__pop--done { right: 0; top: 2%; font-size: 3.4cqw; padding: 2cqw 3cqw 2cqw 2cqw; }
  .rig__pop--done small { display: none; }
  .rig__pop--done i { width: 6cqw; height: 6cqw; font-size: 3.4cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .rig__scene { opacity: 1; translate: 0 0; transition: none; }
  .rig.is-live .rig__cursor, .rig.is-live .rig__banner em { animation: none; }
  .rig.is-live .rig__pop { animation: none; opacity: 1; }
}
@media (min-width: 961px) { html[data-hero="setup"][data-hero] .hero__stage { width: 126%; max-width: 780px; margin-right: -9%; justify-self: end; } }
@media (min-width: 961px) { html[data-hero="setup"][data-hero] .hero__stage { width: 116%; margin-right: -13%; } }

/* Equipos recortados: sin el fondo oscuro de la foto; solo los objetos, con borde de luz y sombra en el piso */
.rig__photo { -webkit-mask-image: none; mask-image: none; filter: drop-shadow(0 0 .6px rgba(255, 255, 255, .55)) drop-shadow(0 2.4cqw 3cqw rgba(0, 0, 20, .55)); }
.rig__scene::before { content: ""; position: absolute; left: 3%; right: 3%; top: 84%; height: 9%; background: radial-gradient(closest-side, rgba(0, 0, 20, .6), rgba(0, 0, 20, 0)); -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 95%); mask-image: radial-gradient(closest-side, #000 40%, transparent 95%); }
.rig__screen--mon { left: 31.8%; top: 20.85%; width: 62.35%; height: 44.65%; }
.rig__screen--lap { left: 9.2%; top: 52.45%; width: 37.65%; height: 29.3%; }

/* ---------- Más vida dentro de las pantallas del hero ---------- */
.rig__table { gap: .55cqw; padding: 1cqw; }
.rig__table p { display: grid; grid-template-columns: 4.6cqw 1fr auto; align-items: center; gap: 1cqw; margin: 0; padding: .45cqw .7cqw; border-radius: .8cqw; font-size: 1.15cqw; color: #23262f; }
.rig__table p b { font-weight: 600; }
.rig__table p i { height: 1cqw; border-radius: 99px; background: linear-gradient(90deg, #e3e6ee 46%, transparent 46% 54%, #eef0f6 54%); }
.rig__table em { min-width: 9cqw; padding: .35cqw 1cqw; border-radius: 99px; background: #e9ecf3; color: #4a4c70; font-style: normal; font-size: 1.05cqw; text-align: center; transition: background-color .5s, color .5s; }
.rig__table em[data-rig-st="1"] { background: #e6dcff; color: #4b1fb8; }
.rig__table em[data-rig-st="2"] { background: #ffe9c2; color: #7a4b00; }
.rig__table em[data-rig-st="3"] { background: var(--green); color: var(--navy); }
.rig.is-live .rig__table p.is-new { animation: rigRowIn 9s var(--ease) 1.4s infinite; }
@keyframes rigRowIn { 0%, 35% { opacity: 0; transform: translateY(-1.4cqw); background: transparent; } 40% { opacity: 1; transform: none; background: rgba(97, 238, 133, .32); } 52%, 100% { opacity: 1; transform: none; background: transparent; } }
.rig [data-rig-st].is-bump, .rig [data-rig-kpi].is-bump, .rig [data-rig-today].is-bump { animation: rigBump .5s var(--ease); }
.rig [data-rig-kpi], .rig [data-rig-today] { display: inline-block; }
@keyframes rigBump { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
/* Menú lateral: la sección activa va cambiando */
.rig__side i.is-on { background: #eceff5; }
.rig.is-live .rig__side i { animation: rigNav 8s steps(1) infinite; }
.rig.is-live .rig__side i:nth-of-type(2) { animation-delay: -6s; }
.rig.is-live .rig__side i:nth-of-type(3) { animation-delay: -4s; }
.rig.is-live .rig__side i:nth-of-type(4) { animation-delay: -2s; }
@keyframes rigNav { 0% { background: #23262f; } 25%, 100% { background: #eceff5; } }
/* Calendario: los días se encienden en cadena y los botones se oprimen */
.rig.is-live .rig__card--cal > div i { animation: rigDay 6.3s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes rigDay { 0%, 12%, 100% { background: #eef0f6; transform: scale(1); } 4% { background: var(--violet); transform: scale(1.18); } }
.rig.is-live .rig__card--cal > div i.is-on { animation-name: rigDayOn; }
@keyframes rigDayOn { 0%, 12%, 100% { background: #e6dcff; transform: scale(1); } 4% { background: var(--green); transform: scale(1.25); } }
.rig.is-live .rig__card--cal header i { animation: rigTap 6.3s ease-in-out infinite; }
.rig.is-live .rig__card--cal header i:last-child { animation-delay: -3.1s; }
@keyframes rigTap { 0%, 8%, 100% { background: #23262f; transform: scale(1); } 4% { background: var(--violet); transform: scale(.82); } }
/* Dona que gira despacio, leyenda y botones con pulso */
.rig.is-live .rig__card--donut svg { animation: rigSpin 14s linear infinite; }
@keyframes rigSpin { to { transform: rotate(360deg); } }
.rig.is-live .rig__card--donut li::before { animation: rigDotPulse 2.4s ease-in-out infinite; }
.rig.is-live .rig__card--donut li:nth-child(2)::before { animation-delay: -.8s; }
.rig.is-live .rig__card--donut li:nth-child(3)::before { animation-delay: -1.6s; }
@keyframes rigDotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
.rig.is-live .rig__card--today em { animation: rigBtn 3.2s ease-in-out infinite; }
@keyframes rigBtn { 0%, 100% { box-shadow: 0 0 0 0 rgba(35, 38, 47, .35); } 50% { box-shadow: 0 0 0 .7cqw rgba(35, 38, 47, 0); } }
/* Portátil: la línea se vuelve a dibujar, un punto la recorre y las tarjetas respiran */
.rig.is-live .rig__line { animation: rigDraw 11s var(--ease) 3s infinite; }
@keyframes rigDraw { 0% { stroke-dashoffset: 1; } 30%, 100% { stroke-dashoffset: 0; } }
.rig__dot { fill: var(--green); stroke: var(--white); stroke-width: 1; }
.rig.is-live .rig__kpis div { animation: rigLift 4.5s ease-in-out infinite; }
.rig.is-live .rig__kpis div:nth-child(2) { animation-delay: -1.5s; }
.rig.is-live .rig__kpis div:nth-child(3) { animation-delay: -3s; }
@keyframes rigLift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.5cqw); } }
/* Brillo que cruza el vidrio de las pantallas */
.rig__screen::after { background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .34) 50%, rgba(255, 255, 255, 0) 62%) 200% 0 / 260% 100% no-repeat; }
.rig.is-live .rig__screen::after { animation: rigGlare 7s ease-in-out 2s infinite; }
.rig.is-live .rig__screen--lap::after { animation-delay: 3.4s; }
@keyframes rigGlare { 0% { background-position: 200% 0; } 35%, 100% { background-position: -160% 0; } }
@media (prefers-reduced-motion: reduce) { .rig *, .rig *::before, .rig *::after { animation: none !important; } .rig__dot { display: none; } }

/* Métricas: cuando el fondo pasa de azul a blanco siguen visibles y cambian a azul oscuro */
.tones .hero:not(.is-current) > .stats.wrap { opacity: 1; }
.tones .hero:not(.is-current) .stats dt { color: var(--navy); }
.tones .hero:not(.is-current) .stats dd { color: var(--ink-2); }

.svc__item figure img[src*="svc-painters"] { object-position: 40% 50%; }

/* ---------- Detalles finales de Carlos (10:10 p. m.) ---------- */
/* Fotos de servicios: sin desplazamiento vertical, para que nunca se corten las cabezas */
.svc__item figure img { height: 100%; transform: none; object-position: 50% 0; }
.svc__item figure img[src*="svc-painters"] { object-position: 40% 0; }
/* Equipos del hero más grandes en computador */
@media (min-width: 961px) {
  html[data-hero="setup"] .hero__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  html[data-hero="setup"][data-hero] .hero__stage { width: 122%; max-width: 860px; margin-right: -15%; }
}
/* Portátil: barras de la semana para llenar la parte de abajo */
.rig__week { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 1cqw; padding: .8cqw .9cqw; border-radius: .9cqw; background: var(--white); color: #6b7080; font-size: .9cqw; }
.rig__week div { display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: .5cqw; height: 4.2cqw; }
.rig__week i { height: calc(var(--h) * 1%); border-radius: .35cqw .35cqw 0 0; background: linear-gradient(var(--violet), #b79bff); transform-origin: bottom; }
.rig.is-live .rig__week i { animation: rigBar 4.8s ease-in-out infinite; }
.rig.is-live .rig__week i:nth-child(2) { animation-delay: -.6s; }
.rig.is-live .rig__week i:nth-child(3) { animation-delay: -1.2s; }
.rig.is-live .rig__week i:nth-child(4) { animation-delay: -1.8s; background: linear-gradient(var(--green), #a8f5bb); }
.rig.is-live .rig__week i:nth-child(5) { animation-delay: -2.4s; }
.rig.is-live .rig__week i:nth-child(6) { animation-delay: -3s; }
.rig.is-live .rig__week i:nth-child(7) { animation-delay: -3.6s; }
@keyframes rigBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.62); } }
@media (min-width: 961px) and (max-width: 1280px) { .rig__pop--live { left: 8%; } }
@media (min-width: 961px) {
  html[data-hero="setup"] .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rig__pop--live { left: 10%; }
}

/* ---------- Números: al pasar a fondo blanco se esconden (decisión final, lo que pidió Carlos) ---------- */
.tones .hero:not(.is-current) > .stats.wrap { opacity: 0; }
.tones .hero:not(.is-current) .stats dt { color: inherit; }
.tones .hero:not(.is-current) .stats dd { color: rgba(255, 255, 255, .7); }

/* ---------- Pantallas del hero más llenas ---------- */
/* Menú lateral con íconos y textos (sin barras negras), meta de la semana y salida */
.rig__side { grid-template-rows: auto auto auto auto auto 1fr auto; gap: .5cqw; padding: 1.5cqw 1cqw 1.2cqw; }
.rig__side p { display: flex; align-items: center; gap: .7cqw; margin: 0; padding: .55cqw .7cqw; border-radius: .8cqw; font-size: 1.05cqw; color: #4a4c70; white-space: nowrap; }
.rig__side u { flex: none; width: 1.25cqw; height: 1.25cqw; border-radius: .35cqw; background: #cfd4e2; text-decoration: none; }
.rig__side p.is-on { background: transparent; }
.rig.is-live .rig__side p { animation: rigNavItem 8s steps(1) infinite; }
.rig.is-live .rig__side p:nth-of-type(2) { animation-delay: -6s; }
.rig.is-live .rig__side p:nth-of-type(3) { animation-delay: -4s; }
.rig.is-live .rig__side p:nth-of-type(4) { animation-delay: -2s; }
.rig.is-live .rig__side p u { animation: rigNavIcon 8s steps(1) infinite; animation-delay: inherit; }
@keyframes rigNavItem { 0% { background: #ece6ff; color: #3a12b0; } 25%, 100% { background: transparent; color: #4a4c70; } }
@keyframes rigNavIcon { 0% { background: var(--violet); } 25%, 100% { background: #cfd4e2; } }
.rig__goal { align-self: end; display: grid; justify-items: center; gap: .4cqw; padding: 1cqw .6cqw; border-radius: 1cqw; background: #f6f9fc; text-align: center; font-size: .85cqw; color: #6b7080; }
.rig__goal svg { width: 5.6cqw; height: 5.6cqw; }
.rig__goal span { display: grid; }
.rig__goal b { margin: 0; font-size: 1.3cqw; color: #23262f; }
.rig__goalfill { transition: stroke-dasharray 1.6s var(--ease) .8s; }
.rig.is-live .rig__goalfill { stroke-dasharray: 75 100; animation: rigGoal 7s ease-in-out 3s infinite; }
@keyframes rigGoal { 0%, 100% { stroke-dasharray: 75 100; } 50% { stroke-dasharray: 88 100; } }
.rig__side small { padding: .5cqw .7cqw; border-radius: .8cqw; background: #f6f9fc; font-size: .95cqw; color: #6b7080; text-align: center; }
/* Monitor: cabecera más baja para que quepa más contenido */
.rig__banner { height: 9.6cqw; }
.rig__banner b { font-size: 2.9cqw; }
.rig__banner em { margin-top: .3cqw; }
.rig__table { gap: .35cqw; padding: .8cqw 1cqw; }
.rig__table header { display: grid; grid-template-columns: 4.6cqw 1fr 5.5cqw 9cqw; gap: 1cqw; padding: 0 .7cqw .3cqw; font-size: .9cqw; color: #9aa0b4; }
.rig__table header span:last-child { text-align: center; }
.rig__table p { grid-template-columns: 4.6cqw 1fr 5.5cqw 9cqw; padding: .35cqw .7cqw; }
.rig__table p span { color: #4a4c70; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rig__table p small { font-size: 1cqw; color: #6b7080; }
.rig__row--foot { grid-template-columns: 1.15fr 1fr; }
.rig__card--prog { align-content: start; gap: .5cqw; padding: .9cqw 1.1cqw; }
.rig__card--prog > span, .rig__card--feed > span { font-size: 1cqw; color: #6b7080; }
.rig__card--prog p { display: grid; grid-template-columns: 7.6cqw 1fr 1.6cqw; align-items: center; gap: .8cqw; margin: 0; font-size: 1cqw; color: #23262f; }
.rig__card--prog em { font-style: normal; white-space: nowrap; }
.rig__card--prog i { position: relative; height: .9cqw; border-radius: 99px; background: #eef0f6; overflow: hidden; }
.rig__card--prog i::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * 1%); border-radius: 99px; background: linear-gradient(90deg, var(--violet), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) 1s; }
.rig.is-live .rig__card--prog i::after { transform: scaleX(1); animation: rigFill 6s ease-in-out 3.2s infinite; }
.rig.is-live .rig__card--prog p:nth-of-type(2) i::after { animation-delay: 4s; }
.rig.is-live .rig__card--prog p:nth-of-type(3) i::after { animation-delay: 4.8s; }
@keyframes rigFill { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.78); } }
.rig__card--prog b { font-size: 1.05cqw; font-weight: 600; text-align: right; }
.rig__card--feed { align-content: start; gap: .5cqw; padding: .9cqw 1.1cqw; overflow: hidden; }
.rig__card--feed ul { display: grid; gap: .45cqw; height: 5.2cqw; margin: 0; padding: 0; list-style: none; overflow: hidden; align-content: start; }
.rig__card--feed li { display: flex; align-items: center; gap: .6cqw; height: 1.45cqw; flex: none; font-size: 1cqw; color: #23262f; white-space: nowrap; }
.rig__card--feed li i { flex: none; width: .8cqw; height: .8cqw; border-radius: 50%; background: var(--green); }
.rig__card--feed li:nth-child(even) i { background: var(--violet); }
.rig.is-live .rig__card--feed li { animation: rigFeed 8s steps(1) infinite; }
@keyframes rigFeed { 0% { transform: translateY(0); } 25% { transform: translateY(-1.9cqw); } 50% { transform: translateY(-3.8cqw); } 75% { transform: translateY(-5.7cqw); } 100% { transform: translateY(-7.6cqw); } }
.rig.is-live .rig__card--feed li i { animation: rigDotPulse 1.6s ease-in-out infinite; }
/* Portátil: lista de solicitudes abajo y menú a su escala */
.rig__app--stats .rig__side { padding: 1cqw .7cqw .9cqw; gap: .35cqw; }
.rig__app--stats .rig__side p { padding: .4cqw .5cqw; gap: .5cqw; font-size: .78cqw; border-radius: .6cqw; }
.rig__app--stats .rig__side u { width: .95cqw; height: .95cqw; border-radius: .28cqw; }
.rig__app--stats .rig__goal { padding: .7cqw .4cqw; font-size: .62cqw; gap: .3cqw; }
.rig__app--stats .rig__goal svg { width: 3.9cqw; height: 3.9cqw; }
.rig__app--stats .rig__goal b { font-size: .95cqw; }
.rig__app--stats .rig__side small { padding: .35cqw .5cqw; font-size: .7cqw; }
.rig__list { display: grid; gap: .3cqw; padding: .7cqw .9cqw; border-radius: .9cqw; background: var(--white); }
.rig__list p { display: grid; grid-template-columns: 3.4cqw 1fr auto; align-items: center; gap: .8cqw; margin: 0; font-size: .85cqw; color: #4a4c70; }
.rig__list b { font-weight: 600; color: #23262f; }
.rig__list em { min-width: 6.4cqw; padding: .25cqw .8cqw; border-radius: 99px; background: #e9ecf3; color: #4a4c70; font-style: normal; font-size: .78cqw; text-align: center; transition: background-color .5s, color .5s; }
.rig__list em[data-rig-st="1"] { background: #e6dcff; color: #4b1fb8; }
.rig__list em[data-rig-st="2"] { background: #ffe9c2; color: #7a4b00; }
.rig__list em[data-rig-st="3"] { background: var(--green); color: var(--navy); }
/* Botones del calendario en violeta, sin cuadros negros */
.rig__card--cal header i { background: #d9ccff; }
@keyframes rigTap { 0%, 8%, 100% { background: #d9ccff; transform: scale(1); } 4% { background: var(--violet); transform: scale(.82); } }
/* Ajuste de alturas: que todo el contenido quepa dentro del vidrio */
.rig__app { overflow: hidden; }
.rig__main { min-height: 0; gap: .75cqw; padding: .9cqw; }
.rig__banner { height: 8.1cqw; }
.rig__row { gap: .75cqw; }
.rig__card { padding: .85cqw 1cqw; }
.rig__card--today b { font-size: 3.1cqw; }
.rig__card--donut svg { width: 7.4cqw; height: 7.4cqw; }
.rig__app--stats .rig__main { gap: .55cqw; padding: .7cqw; }
.rig__kpis div { padding: .65cqw .9cqw; }
.rig__week div { height: 3.4cqw; }
.rig__card--line svg { height: 5.6cqw; }
.rig__app--stats .rig__card--donut svg { width: 6.2cqw; height: 6.2cqw; }
.rig__list { padding: .55cqw .9cqw; gap: .22cqw; }
/* Equipos del hero todavía más grandes en computador (pedido de Carlos y de Palacio) */
@media (min-width: 961px) {
  html[data-hero="setup"][data-hero] .hero__stage { width: 136%; max-width: 940px; margin-right: -19%; }
  .rig__pop--live { left: 12%; top: 43%; }
}
@media (min-width: 961px) { html[data-hero="setup"][data-hero] .hero__stage { margin-right: -22%; } html[data-hero="setup"] .hero__lead { max-width: 33em; } }
/* Tamaño final de los equipos en computador: punto medio, sin que las tarjetas rocen el borde derecho */
@media (min-width: 961px) {
  html[data-hero="setup"][data-hero] .hero__stage { width: 124%; margin-right: -11%; }
  .rig__pop--done { right: 3%; }
  .rig__pop--next { right: 5%; }
}
@media (min-width: 961px) { html[data-hero="setup"][data-hero] .hero__stage { width: 130%; margin-right: -13%; } }
/* Celular: las tres tarjetas del hero (no solo la de arriba), con una sola línea de texto para que se lean */
@media (max-width: 960px) {
  .rig__pop--next, .rig__pop--live { display: flex; }
  .rig__pop { gap: 1.6cqw; padding: 1.8cqw 2.8cqw 1.8cqw 1.8cqw; border-radius: 3cqw; font-size: 4.3cqw; }
  .rig__pop small { display: none; }
  .rig__pop i { width: 6.4cqw; height: 6.4cqw; font-size: 3.6cqw; }
  .rig__pop i.cal { border-radius: 1.8cqw; }
  .rig__pop i.cal::before { inset: 1.6cqw 1.4cqw auto; height: 1cqw; box-shadow: 0 1.7cqw 0 #b79bff; }
  .rig__pop em { width: 2.6cqw; height: 2.6cqw; margin: 0 .8cqw 0 1cqw; }
  .rig__pop--done { right: -2%; top: -3%; font-size: 4.3cqw; padding: 1.8cqw 2.8cqw 1.8cqw 1.8cqw; }
  .rig__pop--done i { width: 6.4cqw; height: 6.4cqw; font-size: 3.6cqw; }
  .rig__pop--live { left: -6%; top: 36%; }
  .rig__pop--next { right: -2%; top: 78%; }
}
@media (max-width: 960px) { .rig__pop--live { left: 2%; } }

/* ---------- Hero responsive (2026-11-11): la escena no le quita espacio al texto ----------
   Arranca donde termina la columna del texto y crece hacia el borde derecho de la ventana usando el margen libre
   (--bleed), en vez de montarse a la izquierda. El margen libre depende del ancho de la ventana, así que se acomoda solo. */
@media (min-width: 961px) {
  html[data-hero="setup"] .hero__inner { --bleed: clamp(20px, calc((100vw - var(--wrap)) / 2 - 36px), 320px); grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  html[data-hero="setup"][data-hero] .hero__stage { width: calc(100% + var(--bleed)); max-width: 820px; margin-right: calc(-1 * var(--bleed)); justify-self: end; }
  html[data-hero="setup"] .hero__title { font-size: clamp(42px, 5.6vw, 84px); max-width: 14ch; }
  html[data-hero="setup"] .hero__lead { max-width: 36em; }
  .rig__pop--live { left: 4%; top: 43%; }
  .rig__pop--done { right: 2%; }
  .rig__pop--next { right: 3%; }
}
@media (min-width: 961px) {
  html[data-hero="setup"] .hero__inner { --bleed: clamp(0px, calc((100vw - var(--wrap)) / 2 - 72px), 300px); }
  html[data-hero="setup"] .hero__title { font-size: clamp(42px, 5vw, 72px); max-width: 15ch; }
}

/* Precio de referencia dentro del panel blanco del formulario (pedido de Carlos), en verde */
.form .demo__price { grid-template-columns: 1fr auto; align-items: center; column-gap: 16px; max-width: none; margin-top: 0; padding: 14px 18px; }
.form .demo__price span { grid-column: 1; }
.form .demo__price em { grid-column: 1; }
.form .demo__price b { grid-column: 2; grid-row: 1 / span 2; font-size: clamp(30px, 3.4vw, 40px); white-space: nowrap; }
@media (max-width: 480px) { .form .demo__price { grid-template-columns: 1fr; } .form .demo__price b { grid-column: 1; grid-row: auto; } }

/* Precio dentro del formulario como desglose tipo factura (prueba de Carlos): sin verde, números pequeños */
.bill { display: grid; gap: 8px; padding: 14px 16px 12px; border: 1px dashed #c9cede; border-radius: 14px; background: #f8f9fc; color: var(--navy); font-variant-numeric: tabular-nums; }
.bill p { margin: 0; }
.bill__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.bill__head small { font-size: 12px; letter-spacing: 0; text-transform: none; }
.bill__lines { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; font-size: 15px; }
.bill__lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.bill__lines li span { color: var(--ink-2); }
.bill__lines li b { font-weight: 500; white-space: nowrap; }
.bill__total { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-top: 9px; border-top: 1px dashed #c9cede; font-size: 15px; font-weight: 500; }
.bill__total b { font-size: 19px; font-weight: 600; }
.bill__note { font-size: 12px; line-height: 1.3; color: var(--ink-2); }

/* ---------- Recibo que se imprime (cotizador) ---------- */
.receipt { position: relative; display: grid; font-variant-numeric: tabular-nums; }
.receipt p { margin: 0; }
/* Ranura de la impresora */
.receipt__printer { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--navy); color: var(--white); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 10px 18px -12px rgba(0, 1, 65, .7); }
.receipt__printer::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, .55); }
.receipt__printer i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(97, 238, 133, .7); animation: pulse 1.8s infinite; }
.receipt__printer small { margin-left: auto; font-size: 12px; letter-spacing: 0; text-transform: none; opacity: .7; }
/* El papel sale por debajo de la ranura */
.receipt__feed { position: relative; z-index: 1; margin: -4px 12px 0; padding-bottom: 12px; overflow: hidden; }
.receipt__paper { --tooth: 12px; display: grid; gap: 7px; padding: 16px 16px 20px; background: #fbfbf7; color: #1c1d2b; font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-size: 13.5px; line-height: 1.35; filter: drop-shadow(0 8px 10px rgba(0, 1, 65, .16));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x; }
.receipt__brand { display: flex; align-items: center; justify-content: center; gap: 7px; padding-bottom: 8px; border-bottom: 1px dashed #b9bccb; font-family: inherit; font-weight: 700; letter-spacing: .02em; }
.receipt__brand .brand__mark { width: 9px; height: 15px; color: var(--royal); }
.receipt .bill__lines { gap: 4px; font-size: inherit; }
.receipt .bill__lines li { gap: 8px; }
.receipt .bill__lines li span { color: #3b3d52; }
.receipt .bill__lines li::after { content: ""; order: 1; flex: 1; min-width: 12px; border-bottom: 1px dotted #9da1b4; transform: translateY(-3px); }
.receipt .bill__lines li b { order: 2; font-weight: 700; }
.receipt .bill__total { padding-top: 8px; border-top: 1px dashed #b9bccb; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.receipt .bill__total b { font-size: 21px; letter-spacing: 0; }
.receipt__code { display: block; height: 26px; margin-top: 2px; background: repeating-linear-gradient(90deg, #1c1d2b 0 2px, transparent 2px 4px, #1c1d2b 4px 5px, transparent 5px 9px, #1c1d2b 9px 12px, transparent 12px 14px, #1c1d2b 14px 15px, transparent 15px 18px); opacity: .85; }
.receipt .bill__note { font-size: 11px; line-height: 1.3; text-align: center; color: #5a5c72; }
/* Impresión: el papel baja a saltos, como una impresora térmica, y la tinta aparece línea por línea */
.receipt__paper.is-printing { animation: receiptFeed 1.05s steps(16, end) .18s both; }
.receipt__paper.is-printing > *, .receipt__paper.is-printing .bill__lines li { animation: receiptInk .22s ease-out both; animation-delay: calc(.3s + var(--k, 0) * .11s); }
.receipt__paper.is-printing .bill__lines { animation: none; }
.receipt__paper .bill__lines li:nth-child(1) { --k: 1; }
.receipt__paper .bill__lines li:nth-child(2) { --k: 2; }
.receipt__paper .bill__lines li:nth-child(3) { --k: 3; }
.receipt__paper .bill__total { --k: 4; }
.receipt__paper .receipt__code { --k: 5; }
.receipt__paper .bill__note { --k: 6; }
@keyframes receiptFeed { from { transform: translateY(-104%); } to { transform: none; } }
@keyframes receiptInk { from { opacity: 0; } to { opacity: 1; } }
/* Recibo anterior: se arranca y cae */
.receipt__paper.is-torn { position: absolute; left: 12px; right: 12px; z-index: 0; pointer-events: none; animation: receiptTear .6s cubic-bezier(.5, 0, .9, .5) forwards; transform-origin: 20% 0; }
@keyframes receiptTear { 0% { transform: none; opacity: 1; } 25% { transform: translateY(6px) rotate(-1.5deg); opacity: 1; } 100% { transform: translateY(90px) rotate(7deg); opacity: 0; } }
@media (max-width: 480px) { .receipt__paper { font-size: 12.5px; padding-inline: 12px; } .receipt .bill__total b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .receipt__paper.is-printing, .receipt__paper.is-printing > *, .receipt__paper.is-printing .bill__lines li, .receipt__printer i { animation: none; } }

/* ---------- Ronda Carlos 2026-11-11 (tarde) ---------- */
/* Hero encuadrado: en pantallas anchas la escena ya no se sale tanto del margen de la página */
@media (min-width: 1100px) {
  html[data-hero="setup"] .hero__inner { --bleed: clamp(0px, calc((100vw - var(--wrap)) / 2 - 72px), 90px); }
}
/* Monitor: el nombre del edificio respira dentro del banner */
.rig__banner { align-content: center; gap: .7cqw; padding: 0 2.2cqw; }
.rig__banner b { font-size: 2.4cqw; }
.rig__banner em { margin-top: 0; }
/* Tabla: los textos ya no llevan encima las barritas del esqueleto antiguo */
.rig .rig__table header span, .rig .rig__table p span, .rig .rig__table span:nth-child(2) { height: auto; border-radius: 0; background: none; }

/* Recibo: bandeja de color para que el papel blanco contraste, borde fino alrededor y sin logo */
.receipt__feed { margin: -6px 10px 0; padding: 0 14px 18px; border-radius: 0 0 16px 16px; background: linear-gradient(#dfe3f1, #eceff8 46px); box-shadow: inset 0 0 0 1px #d3d8ea; }
.receipt__paper { display: block; padding: 0; background: none; -webkit-mask: none; mask: none;
  filter: drop-shadow(1px 0 0 #c3c8dc) drop-shadow(-1px 0 0 #c3c8dc) drop-shadow(0 1px 0 #c3c8dc) drop-shadow(0 10px 12px rgba(0, 1, 65, .2)); }
.receipt__sheet { --tooth: 12px; display: grid; gap: 8px; padding: 18px 18px 22px; background: #fff;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) / 2) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / var(--tooth) calc(var(--tooth) / 2) repeat-x; }
.receipt__brand { display: block; text-align: center; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: #5a5c72; }
.receipt .bill__total b { color: var(--navy); }
.receipt__paper.is-printing > * { animation: none; }
.receipt__paper.is-printing .receipt__sheet > *, .receipt__paper.is-printing .bill__lines li { animation: receiptInk .22s ease-out both; animation-delay: calc(.3s + var(--k, 0) * .11s); }
.receipt__paper.is-printing .receipt__sheet > .bill__lines { animation: none; }
.receipt__paper.is-torn { left: 24px; right: 24px; }
@media (max-width: 480px) { .receipt__feed { margin-inline: 6px; padding-inline: 10px; } .receipt__paper.is-torn { left: 16px; right: 16px; } .receipt__sheet { padding-inline: 13px; } }
@media (prefers-reduced-motion: reduce) { .receipt__paper.is-printing .receipt__sheet > *, .receipt__paper.is-printing .bill__lines li { animation: none; } }

/* ---------- Recibo: animación fluida ---------- */
/* Ranura con labio oscuro; mientras imprime, la luz parpadea rápido, la ranura se enciende y la impresora vibra apenas */
.receipt__printer { background: linear-gradient(#0a0b5c, var(--navy)); transition: box-shadow .4s; }
.receipt__printer::after { height: 4px; bottom: 2px; background: #00002a; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .8); transition: background-color .3s, box-shadow .3s; }
.receipt.is-busy .receipt__printer { animation: receiptHum .16s linear infinite; }
.receipt.is-busy .receipt__printer::after { background: #1d5c33; box-shadow: 0 0 10px rgba(97, 238, 133, .75), inset 0 1px 1px rgba(0, 0, 0, .6); }
.receipt.is-busy .receipt__printer i { animation: receiptBlink .22s steps(2) infinite; }
@keyframes receiptHum { 0%, 100% { transform: none; } 50% { transform: translateY(.6px); } }
@keyframes receiptBlink { 0% { opacity: 1; } 100% { opacity: .25; } }
/* Sombra de la ranura sobre el papel */
.receipt__feed::before { content: ""; position: absolute; z-index: 2; inset: 0 0 auto; height: 16px; background: linear-gradient(rgba(0, 1, 65, .28), transparent); pointer-events: none; }
/* Papel: brillo suave de curvatura */
.receipt__sheet { background: linear-gradient(90deg, #f4f5f9, #fff 9%, #fff 91%, #f1f2f7); }
/* Salida: el papel se desliza de corrido, frena al final y se balancea un poco al quedar colgando */
.receipt__paper.is-printing { animation: receiptFeedSmooth 1.35s cubic-bezier(.3, .05, .2, 1) .38s both; transform-origin: 50% 0; }
@keyframes receiptFeedSmooth {
  0% { transform: translateY(-103%); }
  78% { transform: translateY(1.2%); }
  100% { transform: none; }
}
.receipt__paper.is-printing .receipt__sheet { animation: receiptSway 1.1s ease-in-out 1.55s both; transform-origin: 50% 0; }
@keyframes receiptSway { 0% { transform: none; } 30% { transform: rotate(.7deg); } 62% { transform: rotate(-.4deg); } 100% { transform: none; } }
/* La tinta aparece de arriba abajo, cada línea baja un pelo al fijarse */
.receipt__paper.is-printing .receipt__sheet > *, .receipt__paper.is-printing .bill__lines li { animation: receiptInkSoft .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.62s + var(--k, 0) * .12s); }
.receipt__paper.is-printing .receipt__sheet > .bill__lines { animation: none; }
@keyframes receiptInkSoft { from { opacity: 0; transform: translateY(-5px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
/* El total remata con un pequeño golpe */
.receipt__paper.is-printing .bill__total b { display: inline-block; animation: receiptStamp .5s cubic-bezier(.2, 1.5, .4, 1) 1.45s both; }
@keyframes receiptStamp { from { transform: scale(.82); } to { transform: none; } }
/* Recibo anterior: tirón, se rasga de un lado y cae con peso */
.receipt__paper.is-torn { z-index: 3; animation: receiptTearFall 1s linear forwards; transform-origin: 85% 0; }
@keyframes receiptTearFall {
  0% { transform: none; opacity: 1; animation-timing-function: ease-out; }
  16% { transform: translateY(7px); opacity: 1; animation-timing-function: ease-in-out; }
  34% { transform: translateY(4px) rotate(-3.5deg); opacity: 1; animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
  100% { transform: translate(-22px, 190px) rotate(-13deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .receipt.is-busy .receipt__printer, .receipt.is-busy .receipt__printer i, .receipt__paper.is-printing, .receipt__paper.is-printing .receipt__sheet, .receipt__paper.is-printing .receipt__sheet > *, .receipt__paper.is-printing .bill__lines li, .receipt__paper.is-printing .bill__total b { animation: none; }
}
