/* Tokens del design system CoolFix (apps/client-dashboard/src/styles.css). Landing de un solo tema, claro, con bandas navy. */
:root {
  color-scheme: light;
  --navy: #213564;
  --navy-deep: #17264a;
  --lime: #c3d110;
  --blue: #2490ff;
  --blue-press: #1478e0;
  --teal: #0f766e;
  --paper: #f5f7fa;
  --white: #ffffff;
  --ink: #0c1420;
  --ink-2: #33415a;
  --muted: #566479;
  --rule: #e2e8f0;
  --rule-navy: rgba(255, 255, 255, 0.14);
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.ico { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* Botones: los del portal (azul de acción, radio 8) */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; font: 600 16px/1 var(--font-display); text-decoration: none; transition: background-color .15s, transform .15s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-press); }
.btn-quiet { color: var(--navy); padding-inline: 4px; }
.btn-quiet:hover { text-decoration: underline; text-underline-offset: 4px; }
.btn-on-navy { color: #fff; }

/* Cabecera */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.top .logo img { height: 30px; width: auto; }
.top nav { display: flex; gap: 24px; margin-left: 8px; }
.top nav a { font: 500 15px var(--font-display); color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--navy); }
.top .actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.top .actions .login { font: 600 15px var(--font-display); color: var(--navy); text-decoration: none; }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }


.tracker { position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: 20px; padding: 26px 26px 24px; box-shadow: 0 30px 60px -28px rgba(23, 38, 74, 0.55); }
.tracker::after { content: ''; position: absolute; right: -70px; top: -80px; width: 230px; height: 230px; border-radius: 50%; background: var(--lime); opacity: 0.1; pointer-events: none; }
.tr-head { display: flex; align-items: center; gap: 10px; font: 600 12px var(--font-display); letter-spacing: .08em; color: var(--lime); }
.live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--lime); animation: live-halo 1.6s ease-out infinite; }
.tr-title { margin-top: 14px; font: 600 20px/1.3 var(--font-display); }
.tr-when { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; }
.tr-bar { margin-top: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tr-bar i { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.tr-bar i::after { content: ''; position: absolute; inset: 0; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tr-bar i.on::after { transform: scaleX(1); }
.tr-bar i.now::after { animation: bar-glow 1.4s ease-in-out infinite; }
.tr-state { margin-top: 14px; min-height: 52px; font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.tr-state b { display: block; font: 600 16px var(--font-display); color: #fff; }
.tr-state .swap { animation: value .28s var(--ease) both; }

.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; color: var(--navy); font-weight: 700; }
.sec-head p { max-width: 36em; color: var(--muted); }
.art { position: relative; height: 104px; border-radius: 14px; display: grid; place-items: center; overflow: hidden; background: var(--tone-bg); color: var(--tone-fg); transition: transform .2s var(--ease); }
.art::before { content: ''; position: absolute; right: -45px; top: -54px; width: 144px; height: 144px; border-radius: 50%; background: var(--tone-fg); opacity: .12; }
.art .ico { position: relative; font-size: 40px; stroke-width: 1.8; animation: art-float 2.6s ease-in-out infinite; animation-delay: var(--d, 0ms); }
.art-sm { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.art-sm::before { right: -24px; top: -28px; width: 72px; height: 72px; }
.art-sm .ico { font-size: 28px; }
.t-navy { --tone-bg: #203563; --tone-fg: #c3d110; }
.t-blue { --tone-bg: #2490ff; --tone-fg: #ffffff; }
.t-lime { --tone-bg: #c3d110; --tone-fg: #203563; }
.t-teal { --tone-bg: #0f766e; --tone-fg: #ecfeff; }

.more { margin-top: 22px; }




/* Empresas: banda navy de borde a borde */
.biz { background: var(--navy-deep); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.biz .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 64px; align-items: end; }
.biz .label { font: 600 14px var(--font-display); color: var(--lime); }
.biz h2 { margin-top: 12px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.biz p { margin-top: 14px; color: rgba(255, 255, 255, 0.78); max-width: 36em; }
.biz .cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.biz .mail { font: 600 16px var(--font-display); color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px; }
.biz .mail:hover { border-color: var(--lime); }

/* Preguntas frecuentes */
.faq { padding-block: clamp(64px, 9vw, 112px); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 72px; align-items: start; }
.faq .sec-head { display: block; }
.faq .sec-head p { margin-top: 12px; }
.faq .more { margin-top: 18px; }
.qa { border-top: 1px solid var(--rule); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; font: 600 17px/1.35 var(--font-display); color: var(--navy); }
.qa summary::-webkit-details-marker { display: none; }
.qa .tog { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--paper); transition: background-color .2s; }
.qa .tog::before, .qa .tog::after { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 1px; background: var(--navy); transition: transform .3s var(--ease), background-color .2s; }
.qa .tog::after { transform: rotate(90deg); }
.qa summary:hover .tog { background: rgba(36, 144, 255, 0.12); }
.qa details[open] .tog { background: var(--navy); }
.qa details[open] .tog::before, .qa details[open] .tog::after { background: var(--lime); }
.qa details[open] .tog::after { transform: rotate(0deg); }
.qa .a { padding: 0 44px 22px 0; color: var(--ink-2); }
.qa details[open] .a { animation: rise .24s var(--ease) both; }

/* Pie */
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.72); padding-block: 56px 32px; font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
.foot img { height: 30px; width: auto; }
.foot .about { margin-top: 14px; max-width: 26em; }
.foot h2 { font: 600 14px var(--font-display); color: #fff; margin-bottom: 12px; }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot .legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.foot .legal nav { display: flex; gap: 18px; }

.wa { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.45); transition: transform .2s var(--ease); }
.wa:hover { transform: scale(1.06); }
.wa .ico { font-size: 28px; }

/* Entrada del hero en orden (rise del portal); todo queda visible sin JS */
.rise { animation: rise .5s var(--ease) both; animation-delay: var(--d, 0ms); }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes value { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes live-halo { from { transform: scale(1); opacity: .55; } to { transform: scale(2.4); opacity: 0; } }
@keyframes bar-glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes art-float { 0%, 100% { transform: translateY(3px) rotate(4deg); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@keyframes brand-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Inicio ─────────────────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero: la unidad split dibujada, el aire saliendo y la temperatura bajando */
.clima { background: var(--navy); color: #fff; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 96px); overflow: hidden; position: relative; }
.clima::before { content: ''; position: absolute; right: -180px; top: -220px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(195, 209, 16, 0.14), transparent 65%); pointer-events: none; }
.clima .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.clima h1 { font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.clima h1 .deg { color: var(--lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clima .lead { margin-top: 22px; max-width: 32em; font-size: 19px; color: rgba(255, 255, 255, 0.8); }
.clima .cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.btn-on-navy:hover { text-decoration: underline; text-underline-offset: 4px; }
.unit { margin: 0; }
.unit-art { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 26px 40px rgba(7, 14, 33, 0.45)); }
.unit .led { animation: led 2.4s ease-in-out infinite; }
.unit .air path { stroke: var(--lime); stroke-width: 3; stroke-dasharray: 10 18; opacity: .55; animation: flow 1.8s linear infinite; }
.unit .air path:nth-child(2n) { stroke: #9fd0ff; animation-duration: 2.3s; opacity: .45; }
.unit .air path:nth-child(3) { animation-delay: -.6s; }
.readout { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule-navy); }
.readout > div { display: grid; gap: 4px; padding: 16px 20px 0 0; }
.readout > div + div { padding-left: 20px; border-left: 1px solid var(--rule-navy); }
.r-label { font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.r-num { font: 700 clamp(40px, 5vw, 60px)/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.r-num.out { color: rgba(255, 255, 255, 0.5); }
.r-num.in { color: var(--lime); }

/* «Mi aire…»: los síntomas como una frase */
.dime { background: var(--paper); padding-block: clamp(56px, 8vw, 104px); }
.sentence { max-width: 22em; font: 600 clamp(28px, 4.4vw, 54px)/1.32 var(--font-display); letter-spacing: -0.02em; color: var(--muted); }
.sentence .lead-in { color: var(--navy); }
.sentence a { color: var(--navy); text-decoration: none; background: linear-gradient(var(--lime), var(--lime)) 0 92% / 100% 0.12em no-repeat; transition: background-size .25s var(--ease), color .2s; white-space: nowrap; }
.sentence a:hover, .sentence a:focus-visible { color: var(--navy); background-size: 100% 0.42em; }
.art-xs { display: inline-grid; vertical-align: -0.12em; width: 0.92em; height: 0.92em; margin-right: 0.18em; border-radius: 0.24em; }
.art-xs::before { right: -0.4em; top: -0.46em; width: 1.1em; height: 1.1em; }
.art-xs .ico { font-size: 0.5em; stroke-width: 2.2; }
.sentence a:hover .art-xs { transform: rotate(-6deg) scale(1.06); }
.sentence-note { margin-top: 26px; max-width: 40em; color: var(--ink-2); }
.sentence-note a { color: var(--navy); font-weight: 700; }

/* Informe: un documento real sobre la foto */
.informe { padding-block: clamp(64px, 9vw, 120px); }
.informe .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.inf-copy h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); font-weight: 700; }
.inf-copy p { margin-top: 18px; color: var(--ink-2); max-width: 32em; }
.inf-visual { position: relative; padding-bottom: 64px; }
.inf-visual img { width: 82%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.paper { position: absolute; right: 0; bottom: 0; width: min(380px, 62%); background: #fffefa; color: var(--ink); border: 1px solid #e7e3d6; border-radius: 6px; padding: 20px 22px 18px; box-shadow: 0 30px 60px -30px rgba(12, 20, 32, 0.45); transform: rotate(-1.8deg); font-size: 14px; }
.paper header, .paper footer { display: flex; justify-content: space-between; gap: 12px; font: 600 12px var(--font-display); letter-spacing: .04em; color: var(--muted); }
.paper header { padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.paper .mono { color: var(--teal); }
.p-title { margin-top: 12px; font: 600 16px/1.3 var(--font-display); color: var(--navy); }
.paper dl { margin: 10px 0 0; }
.paper dl div { display: flex; justify-content: space-between; gap: 16px; padding-block: 6px; border-bottom: 1px dashed #e2ddcd; }
.paper dt { color: var(--muted); }
.paper dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.p-rec { margin-top: 12px; color: var(--ink-2); line-height: 1.5; }
.paper footer { margin-top: 16px; align-items: end; flex-wrap: wrap; }
.sign { font: italic 600 15px var(--font-body); letter-spacing: 0; color: var(--navy); border-bottom: 1px solid var(--ink-2); padding: 0 18px 2px 0; }

/* Lo que hacemos: índice tipográfico */
.menu { padding-block: 0 clamp(64px, 9vw, 120px); }
.menu-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 32px; }
.menu-head h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; color: var(--navy); font-weight: 700; }
.menu-head p { max-width: 30em; color: var(--muted); }
.menu-list { margin: 32px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); counter-reset: none; }
.menu-list a { position: relative; display: grid; grid-template-columns: 0 minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; column-gap: 0; padding-block: 20px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: grid-template-columns .35s var(--ease); }
.menu-list .art-sm { opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--ease); }
.m-name { font: 600 clamp(22px, 3vw, 36px)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--navy); transition: color .2s, padding-left .35s var(--ease); }
.m-desc { padding-left: 24px; color: var(--muted); font-size: 16px; }
.menu-list a:hover .m-name, .menu-list a:focus-visible .m-name { padding-left: 20px; }
.menu-list a:hover, .menu-list a:focus-visible { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 0.8fr); }
.menu-list a:hover .art-sm, .menu-list a:focus-visible .art-sm { opacity: 1; transform: none; }
.menu-list a:hover .m-name { color: var(--blue); }

/* Lo ves llegar: mapa con el técnico en movimiento + seguimiento */
.envivo { background: var(--navy-deep); color: #fff; padding-block: clamp(64px, 9vw, 120px); overflow: hidden; }
.envivo .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.vivo-copy h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.vivo-copy p { margin-top: 18px; color: rgba(255, 255, 255, 0.78); max-width: 32em; }
.vivo-app { margin: 26px 0 30px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; color: rgba(255, 255, 255, 0.78); font-size: 15px; }
.vivo-app img { width: 56px; height: 56px; border-radius: 14px; animation: brand-breathe 4s ease-in-out infinite; }
.vivo-stage { position: relative; padding-bottom: 40px; }
.map { width: 100%; height: auto; border-radius: 20px; background: #1d2f58; }
.streets path { stroke: rgba(255, 255, 255, 0.07); stroke-width: 14; }
.streets .avenue { stroke: rgba(255, 255, 255, 0.11); stroke-width: 22; }
.route { stroke: var(--lime); stroke-width: 5; stroke-dasharray: 2 12; stroke-linecap: round; opacity: .9; }
.home-dot { fill: var(--blue); stroke: #fff; stroke-width: 4; }
.home-halo { fill: rgba(36, 144, 255, 0.25); animation: halo 2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.tech circle { fill: var(--lime); stroke: var(--navy-deep); stroke-width: 4; }
.vivo-stage .tracker { position: absolute; left: -28px; bottom: 0; width: min(360px, 78%); }

@keyframes flow { to { stroke-dashoffset: -56; } }
@keyframes led { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes halo { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ── Páginas internas ───────────────────────────────────────────────── */
.top nav a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--blue); padding-block: 4px; }
.page-hero { background: var(--paper); padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 64px); }
.crumbs { display: flex; gap: 8px; font: 500 14px var(--font-display); color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.page-hero h1 { margin-top: 16px; max-width: 18em; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; color: var(--navy); }
.page-hero .lead { margin-top: 16px; max-width: 40em; font-size: 18px; color: var(--ink-2); }
.toc { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 6px 22px; font: 600 15px var(--font-display); }
.toc a { color: var(--navy); text-decoration: none; padding-block: 4px; border-bottom: 1px solid transparent; }
.toc a:hover { border-color: var(--blue); color: var(--blue); }

.svc { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--rule); scroll-margin-top: 72px; }
.svc:first-of-type { border-top: 0; }
.svc .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.svc h2 { margin-top: 18px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; color: var(--navy); }
.svc .desc { margin-top: 14px; color: var(--ink-2); max-width: 34em; }
.svc .why-it { margin-top: 10px; color: var(--teal); font-weight: 600; max-width: 34em; }
.svc img { margin-top: 26px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.svc .cta { margin-top: 24px; }
.svc h3 { font: 600 14px var(--font-display); color: var(--muted); letter-spacing: .02em; }
.incl { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.incl li { padding-block: 13px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.excl { margin-top: 18px; color: var(--muted); font-size: 15px; }
.excl strong { color: var(--ink-2); }

.emp { padding-block: clamp(56px, 7vw, 88px); }
.emp .wrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.emp h2 { font-size: clamp(24px, 2.8vw, 30px); line-height: 1.15; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
.emp .points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.emp .points li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: center; color: var(--ink-2); }
.emp .alt { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.emp .alt a { font: 600 16px var(--font-display); color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--rule); }
.emp .alt a:hover { border-color: var(--blue); }
.quote { display: grid; gap: 30px; }
.quote fieldset { margin: 0; padding: 0; border: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 18px; }
.quote legend { padding: 0; margin-bottom: 14px; font: 600 14px var(--font-display); color: var(--muted); letter-spacing: .02em; }
.quote label { display: grid; gap: 6px; font: 600 14px var(--font-display); color: var(--ink); }
.quote .full { grid-column: 1 / -1; }
.quote input, .quote select, .quote textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: var(--white); color: var(--ink); font: 400 16px var(--font-body); transition: border-color .15s, box-shadow .15s; }
.quote textarea { resize: vertical; min-height: 110px; }
.quote input:focus, .quote select:focus, .quote textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 144, 255, 0.25); }
.quote input:user-invalid, .quote select:user-invalid { border-color: #cc0033; }
.quote .send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.quote button { border: 0; cursor: pointer; }
.quote button[disabled] { opacity: .7; cursor: progress; }
.quote .status { font-weight: 600; }
.quote .status.ok { color: var(--teal); }
.quote .status.err { color: #cc0033; }
.quote .note { color: var(--muted); font-size: 15px; }

.faq-page { padding-block: clamp(48px, 6vw, 80px); }
.faq-page .wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-nav { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); }
.faq-nav h2 { font: 600 14px var(--font-display); color: var(--muted); letter-spacing: .02em; }
.faq-nav ol { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.faq-nav a { display: flex; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 15px/1.35 var(--font-display); color: var(--ink-2); }
.faq-nav a:hover { color: var(--blue); }
.faq-nav .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.faq-nav .ask { margin-top: 22px; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.faq-nav .ask a { display: inline-flex; border: 0; padding: 0; color: var(--navy); font-weight: 600; }
.faq-group { scroll-margin-top: 84px; }
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { margin-bottom: 8px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }

@media (max-width: 1020px) {
  .svc .wrap, .emp .wrap, .faq-page .wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-nav { position: static; }
}
@media (max-width: 640px) {
  .quote fieldset { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1020px) {
  .top nav { display: none; }
  .clima .wrap, .informe .wrap, .envivo .wrap, .faq .wrap, .biz .wrap { grid-template-columns: minmax(0, 1fr); }
  .menu-list a, .menu-list a:hover, .menu-list a:focus-visible { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 18px; }
  .menu-list .m-name, .menu-list a:hover .m-name { padding-left: 0; }
  .m-desc { padding-left: 0; }
  .menu-list .art-sm { opacity: 1; transform: none; grid-row: span 2; }
  .m-desc { grid-column: 2; }
  .vivo-stage .tracker { left: 12px; }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .actions .login { display: none; }
  .inf-visual img { width: 100%; }
  .paper { position: relative; width: auto; margin: -48px 12px 0; transform: rotate(-1deg); }
  .inf-visual { padding-bottom: 0; }
  .vivo-stage .tracker { position: relative; left: auto; width: auto; margin: -40px 12px 0; }
  .vivo-stage { padding-bottom: 0; }
  .readout > div { padding-right: 12px; }
  .readout > div + div { padding-left: 14px; }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
}

/* ── Legal: documentos (generados por scripts/build-legal.py) ───────────── */
.page-hero .doc-meta { margin-top: 18px; font: 500 15px/1.5 var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.page-hero .lead a, .page-hero .doc-meta a { color: var(--navy); font-weight: 700; }
.draft { background: #fff4d1; border-bottom: 1px solid #ecd27e; color: #6b4e00; padding-block: 10px; font: 600 14px/1.4 var(--font-display); }
.doc { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 96px); }
.doc > .wrap { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.doc-toc { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 108px); overflow: auto; overscroll-behavior: contain; padding-right: 4px; }
.doc-toc summary { list-style: none; font: 600 14px var(--font-display); color: var(--muted); letter-spacing: .02em; cursor: default; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc ol { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.doc-toc ol a { display: grid; grid-template-columns: 2.1em minmax(0, 1fr); padding-block: 8px; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 14px/1.35 var(--font-display); color: var(--ink-2); }
.doc-toc ol a .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-toc ol a:hover { color: var(--blue); }
.doc-toc .also { margin-top: 20px; display: grid; gap: 8px; font-size: 15px; }
.doc-toc .also a { color: var(--navy); font-weight: 600; text-decoration: none; }
.doc-toc .also a:hover { color: var(--blue); }
.doc-body { max-width: 46em; color: var(--ink-2); }
.doc-body p, .doc-body ul { margin-top: 14px; }
.doc-body .intro p { color: var(--ink); font-size: 18px; }
.doc-body .intro p:first-child { margin-top: 0; }
.doc-body section { scroll-margin-top: 84px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.doc-body h2 { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; color: var(--navy); }
.doc-body h2 .n { color: var(--blue); font-variant-numeric: tabular-nums; }
.doc-body h3 { margin-top: 26px; font: 600 17px/1.35 var(--font-display); color: var(--navy); }
.doc-body h2 + p, .doc-body h3 + p, .doc-body h3 + ul { margin-top: 10px; }
.doc-body ul { padding-left: 1.15em; display: grid; gap: 10px; }
.doc-body li::marker { color: var(--blue); }
.doc-body strong { color: var(--ink); font-weight: 700; }
.doc-body a { color: var(--navy); font-weight: 600; text-decoration-color: rgba(36, 144, 255, 0.55); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc-body a:hover { color: var(--blue); }
.doc-body mark.ph { background: #fff1b8; color: #6b4e00; padding: 0 .2em; border-radius: 3px; }
.doc-body .doc-end { margin-top: 48px; padding-top: 18px; border-top: 2px solid var(--navy); color: var(--muted); font-size: 15px; }

/* Índice /legal/ */
.docs { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); }
.docs .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 80px); align-items: start; }
.docs h2 { font: 600 14px var(--font-display); color: var(--muted); letter-spacing: .02em; }
.doc-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.doc-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--rule); text-decoration: none; }
.doc-list .t { font: 600 clamp(19px, 2.1vw, 23px)/1.25 var(--font-display); color: var(--navy); letter-spacing: -0.01em; transition: color .2s, padding-left .35s var(--ease); }
.doc-list .v { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.doc-list .d { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
.doc-list a:hover .t, .doc-list a:focus-visible .t { color: var(--blue); padding-left: 8px; }

/* ── Eliminar cuenta ──────────────────────────────────────────────────────── */
.cuenta { padding-block: clamp(48px, 6vw, 80px); }
.cuenta .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.cuenta h2, .keep-sec h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; color: var(--navy); }
.cuenta .sub { margin-top: 10px; color: var(--ink-2); max-width: 32em; }
.path { font: 600 1em var(--font-display); color: var(--navy); white-space: nowrap; }
.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: paso; border-top: 1px solid var(--rule); }
.steps li { counter-increment: paso; display: grid; grid-template-columns: 2.4em minmax(0, 1fr); padding-block: 14px; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.steps li::before { content: counter(paso); font: 700 18px/1.5 var(--font-display); color: var(--blue); font-variant-numeric: tabular-nums; }
.cuenta .alt { margin-top: 22px; color: var(--muted); font-size: 15px; }
.cuenta .alt a, .keep-sec a, .confirm a { color: var(--navy); font-weight: 700; }
.cuenta form { margin-top: 22px; display: grid; gap: 18px; }
.cuenta form label { display: grid; gap: 6px; font: 600 14px var(--font-display); color: var(--ink); }
.cuenta form input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; background: var(--white); color: var(--ink); font: 400 16px var(--font-body); transition: border-color .15s, box-shadow .15s; }
.cuenta form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36, 144, 255, 0.25); }
.cuenta form input:user-invalid { border-color: #cc0033; }
.cuenta button, .confirm button { border: 0; cursor: pointer; justify-self: start; }
.cuenta button[disabled], .confirm button[disabled] { opacity: .7; cursor: progress; }
.cuenta .status, .confirm .status { font-weight: 600; color: var(--ink-2); }
.cuenta .status:empty, .confirm .status:empty { display: none; }
.cuenta .status.err, .confirm .status.err { color: #cc0033; }
.done { animation: rise .3s var(--ease) both; }
.done h3 { font: 600 19px/1.3 var(--font-display); color: var(--teal); }
.done p { margin-top: 8px; color: var(--ink-2); }
.btn-danger { background: #cc0033; color: #fff; }
.btn-danger:hover { background: #a8002a; }

.keep-sec { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.keep-sec .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px clamp(36px, 6vw, 88px); align-items: start; }
.keep-sec .sub { margin-top: 10px; color: var(--muted); max-width: 30em; }
.keep { margin: 0; border-top: 2px solid var(--navy); }
.keep div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.keep dt { color: var(--ink); }
.keep dd { margin: 0; color: var(--ink-2); font: 600 15px/1.45 var(--font-display); }
.gone { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--navy); }
.gone li { padding-block: 13px; border-bottom: 1px solid var(--rule); color: var(--ink); }
.keep-sec .notes { grid-column: 2; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }

.confirm { padding-block: clamp(48px, 6vw, 80px) clamp(64px, 9vw, 112px); }
.confirm .box { max-width: 40em; }
.confirm h3 { font: 600 19px/1.3 var(--font-display); color: var(--navy); }
.confirm .done h3 { color: var(--teal); }
.confirm p { margin-top: 12px; color: var(--ink-2); }
.confirm [data-state] > p:first-child { margin-top: 0; }
.confirm .act { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.confirm ul { margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.confirm li { padding-block: 12px; border-bottom: 1px solid var(--rule); color: var(--ink); }
[hidden] { display: none !important; }

@media (max-width: 1020px) {
  .doc > .wrap, .docs .wrap, .cuenta .wrap, .keep-sec .wrap { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; max-height: none; overflow: visible; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 14px; }
  .doc-toc summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
  .doc-toc summary::after { content: '+'; font: 600 20px/1 var(--font-display); color: var(--blue); }
  .doc-toc[open] summary::after { content: '\2212'; }
  .keep-sec .notes { grid-column: auto; }
}
@media (max-width: 640px) {
  .doc-body .intro p { font-size: 17px; }
  .keep div { grid-template-columns: minmax(0, 1fr); }
  .doc-list a { grid-template-columns: minmax(0, 1fr); }
  .doc-list .v { text-align: left; }
}

@media print {
  .top, .foot, .wa, .skip, .crumbs, .doc-toc, .draft { display: none !important; }
  body { font-size: 11pt; line-height: 1.5; color: #000; }
  .page-hero { background: none; padding: 0 0 12pt; }
  .page-hero h1 { font-size: 20pt; }
  .doc { padding: 0; }
  .doc > .wrap { display: block; padding: 0; }
  .doc-body { max-width: none; color: #000; }
  .doc-body section { margin-top: 14pt; padding-top: 10pt; }
  .doc-body h2, .doc-body h3 { break-after: avoid; color: #000; }
  .doc-body a { color: #000; text-decoration: none; }
  .doc-body p, .doc-body li { orphans: 3; widows: 3; }
}

/* Consentimiento de cookies (assets/js/consent.js): barra plana al pie, sin tarjeta. */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px max(16px, calc((100vw - 1180px) / 2)); background: var(--white); border-top: 1px solid rgba(33, 53, 100, 0.16); color: var(--ink); font-size: 15px; line-height: 1.5; }
.cookie-bar p { margin: 0; max-width: 760px; }
.cookie-bar a { color: var(--navy); font-weight: 700; }
.cookie-actions { display: flex; gap: 12px; align-items: center; }
@media print { .cookie-bar { display: none; } }
.cookie-actions .btn-quiet { background: none; border: 0; cursor: pointer; }
