/* Cuadre · estudio contable (demo). Claro y ordenado, con aire de app financiera: papel frío con cuadrícula,
   tinta azul noche, azul eléctrico para las acciones y coral para los checks.
   Tipografía: Sora (titulares), Geist (texto, con números tabulares) y Geist Mono (comprobantes). Primero el teléfono. */

:root {
  --papel: #f3f5f9;
  --papel-2: #e9edf4;
  --blanco: #ffffff;
  --tinta: #0b1530;
  --tinta-2: #1c2742;
  --gris: #586178;
  --gris-2: #8a93a6;
  --azul: #2d5bff;
  --azul-osc: #1d43d8;
  --azul-claro: #e4eaff;
  --coral: #ff6b57;
  --coral-claro: #ffe6e1;
  --verde: #0f7f58;
  --linea: rgb(11 21 48 / .1);
  --rejilla: rgb(11 21 48 / .055);
  --r: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --display: "Sora", "Avenir Next", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
  --cab-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--papel); color: var(--tinta); font: 400 1rem/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select { font: inherit; color: inherit; }
.envoltura { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipos ---------- */
.antetitulo { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .9rem; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.antetitulo::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--coral); }
.titulo-sec, .titulo-fase { font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 10vw, 4.4rem); line-height: 1.02; letter-spacing: -.045em; }
.titulo-sec em, .titulo-fase em { font-style: normal; color: var(--azul); }
.bajada-sec { margin-top: 1rem; color: var(--gris); max-width: 46ch; font-size: 1.05rem; }
.nota { color: var(--gris); font-size: .82rem; margin-top: .8rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 50px; padding: 0 1.4rem; border-radius: 14px; border: 0; cursor: pointer; font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, box-shadow .25s, color .25s; }
.btn:active { transform: scale(.97); }
.btn-azul { background: var(--azul); color: #fff; box-shadow: 0 10px 24px -12px rgb(45 91 255 / .8); }
.btn-azul:hover { background: var(--azul-osc); }
.btn-tinta { background: var(--tinta); color: #fff; }
.btn-tinta:hover { background: var(--tinta-2); }
.btn-coral { background: var(--coral); color: var(--tinta); }
.btn-coral:hover { background: #ff8270; }
.btn-borde { box-shadow: inset 0 0 0 1.5px var(--tinta); background: rgb(255 255 255 / .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn-borde:hover { background: var(--tinta); color: #fff; }
.btn-sm { height: 40px; padding: 0 1rem; font-size: .85rem; border-radius: 12px; }
.btn-lg { height: 56px; padding: 0 1.8rem; font-size: 1rem; }
.btn svg { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 8px; }
.solo-escritorio { display: none; }
@media (min-width: 900px) { .solo-movil { display: none; } .solo-escritorio { display: inline; } }

/* ---------- Carga: ticketera ---------- */
.carga { position: fixed; inset: 0; z-index: 100; background: var(--papel);
  background-image: linear-gradient(var(--rejilla) 1px, transparent 1px), linear-gradient(90deg, var(--rejilla) 1px, transparent 1px); background-size: 28px 28px; background-position: center; }
.tk-zona { position: absolute; left: 50%; top: 0; height: 58vh; height: 58svh; width: 240px; transform: translateX(-50%); }
.tk-papel { position: absolute; left: 22px; right: 22px; bottom: 0; height: 0; overflow: hidden; filter: drop-shadow(0 10px 14px rgb(11 21 48 / .16)); }
.tk-in { position: absolute; left: 0; right: 0; top: 0; padding: 18px 16px 14px; font-family: var(--mono); font-size: .74rem; color: var(--tinta-2);
  background: linear-gradient(#fff, #fff) 0 8px / 100% 100% no-repeat; }
.tk-in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><polygon points='0,8 6,0 12,8' fill='white'/></svg>") 0 0 / 12px 8px repeat-x; }
.tk-cab { display: flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .12em; color: var(--tinta); }
.tk-logo { width: 12px; height: 12px; border-radius: 3px; background: var(--coral); }
.tk-sub { text-align: center; color: var(--gris-2); font-size: .66rem; margin: .2rem 0 .7rem; padding-bottom: .6rem; border-bottom: 1.5px dashed #cfd5e0; }
.tk-lineas li { display: flex; align-items: baseline; gap: .4rem; padding: .22rem 0; }
.tk-lineas i { flex: 1; border-bottom: 1.5px dotted #c3cad7; transform: translateY(-3px); }
.tk-lineas b { font-weight: 600; }
.tk-total { display: flex; justify-content: space-between; margin-top: .6rem; padding-top: .55rem; border-top: 1.5px dashed #cfd5e0; font-weight: 600; font-size: .86rem; color: var(--tinta); }
.tk-total em { font-style: normal; }
.tk-maquina { position: absolute; left: 0; right: 0; top: 100%; height: 58px; margin-top: -10px; border-radius: 16px; background: var(--tinta); box-shadow: 0 24px 40px -18px rgb(11 21 48 / .55); }
.tk-ranura { position: absolute; left: 16px; right: 16px; top: 8px; height: 4px; border-radius: 4px; background: #000; opacity: .55; }
.tk-luz { position: absolute; right: 16px; bottom: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); animation: luz 1s steps(2) infinite; }
@keyframes luz { 50% { opacity: .25; } }
html:not(.js) .carga { display: none; }

/* ---------- Cabecera ---------- */
.cab { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--cab-h); display: flex; align-items: center; gap: 1rem; padding: 0 16px; transition: background-color .4s, box-shadow .4s; }
.cab.solida { background: rgb(243 245 249 / .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); }
.marca { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: -.04em; }
.marca-ico { width: 30px; height: 30px; }
.cab-nav { display: none; gap: 1.8rem; margin-left: auto; }
.cab-nav a { text-decoration: none; font-weight: 500; font-size: .9rem; color: var(--gris); transition: color .2s; }
.cab-nav a:hover { color: var(--tinta); }
.cab-btn { margin-left: auto; }
@media (min-width: 900px) { .cab { padding: 0 32px; } .cab-nav { display: flex; } .cab-btn { margin-left: 1.4rem; } }

/* ---------- Inicio ---------- */
.inicio { position: relative; height: 330vh; }
.inicio-fijo { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(180deg, transparent 58%, rgb(11 21 48 / .07)), radial-gradient(90% 70% at 50% 45%, #fbfcfe, var(--papel) 62%, var(--papel-2)); }
.inicio-fijo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--rejilla) 1px, transparent 1px), linear-gradient(90deg, var(--rejilla) 1px, transparent 1px); background-size: 32px 32px; background-position: center;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 60%, #000 30%, transparent 85%); mask-image: radial-gradient(75% 65% at 50% 60%, #000 30%, transparent 85%); }
.escena { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.escena-respaldo { position: absolute; left: 16px; right: 16px; bottom: 6vh; height: 36vh; border-radius: 24px; overflow: hidden; display: none; box-shadow: 0 30px 60px -30px rgb(11 21 48 / .45); }
.escena-respaldo img { width: 100%; height: 100%; object-fit: cover; }
.sin-3d .escena-respaldo { display: block; }
.sin-3d .escena { display: none; }
.fase { position: absolute; left: 16px; right: 16px; z-index: 2; text-align: center; }
.fase-1 { top: calc(var(--cab-h) + 3vh); }
.titulo { display: inline-flex; align-items: baseline; font-family: var(--display); font-weight: 800; font-size: clamp(4.2rem, 23vw, 10rem); line-height: .9; letter-spacing: -.065em; padding-right: .05em; }
.titulo .t-a { white-space: nowrap; }
.titulo .l { display: inline-block; }
.t-punto { display: inline-block; width: .17em; height: .17em; margin-left: .06em; border-radius: .045em; background: var(--coral); }
.fase .bajada { margin: .9rem auto 0; max-width: 31ch; color: var(--gris); font-size: 1.02rem; }
.acciones { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.fase-2, .fase-3 { opacity: 0; visibility: hidden; }
.fase-2, .fase-3 { top: calc(var(--cab-h) + 3vh); }
.fase-2 .titulo-fase, .fase-3 .titulo-fase { font-size: clamp(2.3rem, 10.5vw, 4.6rem); }
.fase-3 .bajada { max-width: 30ch; }
.bajar { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: grid; justify-items: center; gap: 6px; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gris-2); z-index: 2; }
.bajar span { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--gris-2); position: relative; }
.bajar span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--azul); animation: rueda 1.6s var(--ease) infinite; }
@keyframes rueda { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 900px) {
  .fase { left: 6vw; right: auto; text-align: left; max-width: 42vw; }
  .titulo { font-size: clamp(5rem, 9.5vw, 9rem); }
  .fase-1 { top: auto; bottom: 14vh; }
  .fase-2, .fase-3 { top: 50%; transform: translateY(-50%); }
  .fase .bajada { margin: .9rem 0 0; }
  .acciones { justify-content: flex-start; }
  .escena-respaldo { left: 48vw; right: 5vw; top: 18vh; bottom: 14vh; height: auto; }
}

/* ---------- Servicios ---------- */
.servicios { padding: 14vh 0 12vh; }
.serv-lista { display: grid; gap: .7rem; margin-top: 2rem; }
.serv { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 1rem; padding: 1.1rem 1.1rem 1.2rem; border-radius: var(--r); background: var(--blanco); border: 1px solid var(--linea); transition: transform .4s var(--ease), box-shadow .4s; }
.serv:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgb(11 21 48 / .45); }
.serv-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--azul-claro); display: grid; place-items: center; }
.serv-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--azul); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.serv h3 { font-family: var(--display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.02em; line-height: 1.2; padding-right: 2rem; }
.serv p { color: var(--gris); font-size: .93rem; margin-top: .3rem; }
.serv-num { position: absolute; right: 1.1rem; top: 1.05rem; font-family: var(--mono); font-size: .72rem; color: var(--gris-2); }
@media (min-width: 900px) {
  .serv-lista { grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-top: 3rem; }
  .serv { grid-template-columns: 1fr; align-content: start; padding: 1.4rem; min-height: 290px; }
  .serv h3 { margin-top: 1.4rem; }
}
.quien { margin-top: 4.5rem; }
.quien-titulo { font-family: var(--display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.035em; }
.quien-titulo em { font-style: normal; color: var(--azul); }
.quien-lista { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 1.2rem -16px 0; padding: 0 16px 6px; }
.quien-lista::-webkit-scrollbar { display: none; }
.quien-lista li { flex: 0 0 64%; scroll-snap-align: start; }
.quien-lista figure { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; background: var(--papel-2); }
.quien-lista img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.quien-lista figure:hover img { transform: scale(1.04); }
.quien-lista figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: .55rem .8rem; border-radius: 12px; background: rgb(255 255 255 / .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-weight: 600; font-size: .9rem; }
@media (min-width: 900px) { .quien-lista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-inline: 0; padding: 0; overflow: visible; } }

/* ---------- Cotizador ---------- */
.cotiza { padding: 12vh 0; background: linear-gradient(180deg, var(--papel), var(--papel-2)); }
.cotiza-grid { display: grid; gap: 1.4rem; }
.resultado { position: sticky; top: calc(var(--cab-h) + 8px); z-index: 3; padding: .95rem 1.1rem 1rem; border-radius: var(--r); background: var(--tinta); color: #fff; box-shadow: 0 24px 40px -24px rgb(11 21 48 / .7); }
.res-cab { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: #9aa6c4; }
.res-ejemplo { color: var(--coral); }
.res-fila { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; margin-top: .25rem; }
.res-plan { font-family: var(--display); font-weight: 500; font-size: .95rem; color: #b9c3dc; line-height: 1.1; }
.res-plan b { display: block; font-weight: 700; font-size: 1.55rem; letter-spacing: -.03em; color: #fff; }
.res-precio { display: flex; align-items: baseline; gap: .2rem; font-family: var(--display); line-height: 1; }
.res-precio small { font-size: 1rem; font-weight: 600; color: #b9c3dc; }
.res-precio b { font-size: 2.3rem; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.res-precio span { font-size: .85rem; color: #b9c3dc; }
.res-medidor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: .75rem; }
.res-medidor div { display: grid; gap: 4px; }
.res-medidor i { height: 6px; border-radius: 4px; background: rgb(255 255 255 / .14); transform-origin: left; transition: background-color .4s; }
.res-medidor div.on i { background: var(--azul); }
.res-medidor div.actual i { background: var(--coral); }
.res-medidor span { font-size: .64rem; color: #8592b3; }
.res-medidor div.actual span { color: #fff; }
.res-detalle { display: none; }
.res-agendar { display: none; }
.cotizador { display: grid; gap: .8rem; }
.campo { padding: 1.05rem 1.1rem; border-radius: var(--r); background: var(--blanco); border: 1px solid var(--linea); }
.campo legend, .campo-et { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-weight: 600; font-size: .95rem; margin-bottom: .7rem; padding: 0; float: left; }
.campo legend + * { clear: both; }
.campo-et output { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--azul); line-height: 1; }
.segmento { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmento label { cursor: pointer; }
.segmento input, .chips input, .check-lista input, .ag-incluir input { position: absolute; opacity: 0; pointer-events: none; }
.segmento span { display: flex; align-items: center; height: 100%; min-height: 58px; padding: .6rem .8rem; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--linea); background: var(--papel); font-weight: 500; font-size: .88rem; line-height: 1.3; transition: background-color .25s, color .25s, box-shadow .25s; }
.segmento input:checked + span { background: var(--tinta); color: #fff; box-shadow: none; }
.segmento input:focus-visible + span, .chips input:focus-visible + span, .check-lista input:focus-visible + .caja, .ag-incluir input:focus-visible + .caja { outline: 2px solid var(--azul); outline-offset: 2px; }
.deslizador { position: relative; padding: 6px 0; }
.deslizador input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --p: 10%; }
.deslizador input::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--azul) var(--p), var(--papel-2) var(--p)); }
.deslizador input::-moz-range-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--azul) var(--p), var(--papel-2) var(--p)); }
.deslizador input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--azul); box-shadow: 0 6px 14px -4px rgb(45 91 255 / .6); transition: transform .2s; }
.deslizador input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--azul); }
.deslizador input:active::-webkit-slider-thumb { transform: scale(1.12); }
.regla { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .66rem; color: var(--gris-2); margin-top: .2rem; }
.ayuda { color: var(--gris); font-size: .8rem; margin-top: .5rem; }
.campo-fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.campo-fila .campo-et { margin: 0; float: none; width: auto; }
.stepper { display: flex; align-items: center; gap: .5rem; flex: none; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: var(--azul-claro); color: var(--azul); font-size: 1.4rem; font-weight: 600; display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s; }
.stepper button:hover { background: #d3dcff; }
.stepper button:active { transform: scale(.9); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { min-width: 2ch; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1.6rem; display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chips label { cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: .4rem; height: 42px; padding: 0 1rem; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--linea); background: var(--papel); font-weight: 500; font-size: .9rem; transition: background-color .25s, color .25s, box-shadow .25s; }
.chips span::before { content: ""; width: 0; height: 14px; overflow: hidden; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4.5 10.5l3.6 3.6 7.4-8' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4.5 10.5l3.6 3.6 7.4-8' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; transition: width .25s var(--ease); margin-left: -.4rem; }
.chips input:checked + span { background: var(--azul-claro); color: var(--azul-osc); box-shadow: inset 0 0 0 1.5px var(--azul); }
.chips input:checked + span::before { width: 14px; margin-left: 0; }
.nota-ref { margin: .2rem .2rem 0; }
.cot-agendar { width: 100%; margin-top: .2rem; }
@media (min-width: 900px) {
  .cotiza-grid { grid-template-columns: 1.15fr .85fr; column-gap: 4rem; row-gap: 2rem; align-items: start; }
  .cotiza-intro { grid-column: 1; }
  .cotizador { grid-column: 1; }
  .resultado { grid-column: 2; grid-row: 1 / span 2; top: calc(var(--cab-h) + 28px); padding: 1.6rem; }
  .res-plan b { font-size: 2.2rem; }
  .res-precio b { font-size: 3.6rem; }
  .res-fila { flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: 1rem; }
  .res-medidor { margin-top: 1.4rem; }
  .res-medidor i { height: 8px; }
  .res-medidor span { font-size: .72rem; }
  .res-detalle { display: grid; gap: .1rem; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .9rem; }
  .res-detalle li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; color: #c9d1e6; }
  .res-detalle li b { color: #fff; font-weight: 600; }
  .res-detalle li.unico { color: #9aa6c4; font-size: .84rem; }
  .res-agendar { display: flex; width: 100%; margin-top: 1.2rem; }
  .cot-agendar { display: none; }
}

/* ---------- ¿Qué necesitas para empezar? ---------- */
.empezar { padding: 12vh 0; }
.empezar-grid { display: grid; gap: 1.2rem; }
.anillo-caja { position: sticky; top: calc(var(--cab-h) + 8px); z-index: 3; display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; column-gap: 1rem; align-items: center; padding: .8rem 1rem; border-radius: var(--r); background: rgb(255 255 255 / .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--linea); box-shadow: 0 20px 34px -26px rgb(11 21 48 / .5); }
.anillo { grid-row: 1 / span 2; width: 72px; height: 72px; overflow: visible; }
.anillo circle { fill: none; stroke-width: 11; }
.anillo-fondo { stroke: var(--papel-2); }
.anillo-barra { stroke: var(--coral); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; }
.anillo-check { fill: none; stroke: var(--tinta); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.anillo-num { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; letter-spacing: -.03em; }
.anillo-num span { font-size: .95rem; font-weight: 500; color: var(--gris); letter-spacing: 0; }
.anillo-msg { color: var(--gris); font-size: .86rem; line-height: 1.35; }
.anillo-caja.completo .anillo-msg { color: var(--verde); font-weight: 600; }
.check-lista { display: grid; gap: .55rem; }
.check-lista label { display: flex; align-items: flex-start; gap: .9rem; padding: .9rem 1rem; border-radius: 16px; background: var(--blanco); border: 1px solid var(--linea); cursor: pointer; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.check-lista label:active { transform: scale(.985); }
.caja { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; box-shadow: inset 0 0 0 2px #c5ccd9; display: grid; place-items: center; background: #fff; transition: background-color .25s, box-shadow .25s; }
.caja svg { width: 18px; height: 18px; fill: none; stroke: var(--tinta); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease) .05s; }
input:checked + .caja { background: var(--coral); box-shadow: none; }
input:checked + .caja svg { stroke-dashoffset: 0; }
.check-lista .txt { display: grid; line-height: 1.35; }
.check-lista b { font-weight: 600; }
.check-lista small { color: var(--gris); font-size: .84rem; margin-top: .15rem; }
.check-lista label:has(input:checked) { border-color: rgb(255 107 87 / .5); box-shadow: 0 10px 22px -18px rgb(255 107 87 / .9); }
.empezar-nota { margin-top: 0; }
@media (min-width: 900px) {
  .empezar-grid { grid-template-columns: .9fr 1.1fr; column-gap: 5rem; row-gap: 1.2rem; align-items: start; }
  .empezar-intro { grid-column: 1; }
  .anillo-caja { grid-column: 1; grid-row: 2 / span 2; top: calc(var(--cab-h) + 28px); grid-template-columns: 1fr; justify-items: start; padding: 1.8rem; row-gap: .6rem; }
  .anillo { grid-row: auto; width: 180px; height: 180px; }
  .anillo-num { font-size: 2.4rem; }
  .check-lista { grid-column: 2; grid-row: 1 / span 2; }
  .empezar-nota { grid-column: 2; }
}

/* ---------- Planes ---------- */
.planes { padding: 13vh 0; background: var(--tinta); color: #fff; }
.planes .antetitulo { color: #93a9ff; }
.planes .titulo-sec em { color: #7f9bff; }
.planes-cab { display: grid; gap: 1.4rem; align-items: end; }
.periodo { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start; padding: 4px; border-radius: 99px; background: rgb(255 255 255 / .08); }
.periodo button { position: relative; z-index: 1; height: 40px; padding: 0 1.3rem; border: 0; border-radius: 99px; background: none; cursor: pointer; font-weight: 600; font-size: .9rem; color: #b9c3dc; transition: color .3s; }
.periodo button[aria-checked="true"] { color: var(--tinta); }
.periodo-bola { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: #fff; transition: transform .45s var(--ease); }
.periodo.anual .periodo-bola { transform: translateX(100%); }
.planes-lista { display: grid; gap: .9rem; margin-top: 2rem; }
.plan { position: relative; display: grid; align-content: start; gap: .55rem; padding: 1.4rem; border-radius: 22px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
.plan-dest { background: #fff; color: var(--tinta); border-color: #fff; }
.plan-et { position: absolute; right: 1.2rem; top: 1.2rem; padding: .25rem .65rem; border-radius: 99px; background: var(--coral); color: var(--tinta); font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.plan-nombre { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em; }
.plan-para { color: #a9b4cf; font-size: .9rem; }
.plan-dest .plan-para, .plan-dest .plan-pago { color: var(--gris); }
.plan-precio { display: flex; align-items: baseline; gap: .25rem; margin-top: .4rem; font-family: var(--display); line-height: 1; }
.plan-precio small { font-size: 1.1rem; font-weight: 600; }
.plan-precio b { font-size: 3.2rem; font-weight: 700; letter-spacing: -.05em; }
.plan-precio span { color: #a9b4cf; font-size: .9rem; }
.plan-dest .plan-precio span { color: var(--gris); }
.plan-pago { color: #a9b4cf; font-size: .8rem; font-family: var(--mono); }
.plan ul { display: grid; gap: .45rem; margin: .6rem 0 .9rem; padding-top: .9rem; border-top: 1px solid rgb(255 255 255 / .1); font-size: .92rem; }
.plan-dest ul { border-color: var(--linea); }
.plan ul li { display: flex; gap: .55rem; align-items: flex-start; }
.plan ul li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px; background: var(--azul) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3.4 3.4 6.8-7.4' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat; }
.plan .btn-borde { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .4); }
.plan .btn-borde:hover { background: #fff; color: var(--tinta); }
.planes-nota { color: #a9b4cf; }
@media (min-width: 900px) {
  .planes-cab { grid-template-columns: 1fr auto; }
  .planes-lista { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
  .plan { padding: 2rem; }
  .plan-dest { transform: translateY(-14px); }
}
.tabla-caja { margin-top: 3rem; padding: 1.2rem .6rem .6rem; border-radius: 22px; background: #fff; color: var(--tinta); }
.tabla-titulo { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.03em; padding: 0 .5rem .6rem; }
.tabla-scroll { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: .78rem; line-height: 1.3; }
.tabla th, .tabla td { padding: .7rem .3rem; text-align: center; border-top: 1px solid var(--linea); }
.tabla thead th { border-top: 0; font-family: var(--display); font-weight: 600; font-size: .7rem; letter-spacing: -.01em; vertical-align: bottom; }
.tabla tbody th { text-align: left; font-weight: 500; width: 36%; padding-left: .5rem; }
.tabla .t-dest { background: var(--azul-claro); }
.tabla thead .t-dest { border-radius: 12px 12px 0 0; color: var(--azul-osc); }
.tabla tbody tr:last-child .t-dest { border-radius: 0 0 12px 12px; }
.si { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; background: var(--azul) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5 10.5l3.4 3.4 6.8-7.4' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 15px no-repeat; }
.no { display: inline-block; width: 12px; height: 2px; border-radius: 2px; background: #b7bfcd; vertical-align: middle; }
@media (min-width: 900px) { .tabla-caja { padding: 2rem 1.6rem 1.2rem; } .tabla { font-size: .95rem; } .tabla thead th { font-size: 1rem; } .tabla th, .tabla td { padding: .9rem .6rem; } }

/* ---------- Agenda ---------- */
.agenda { padding: 12vh 0; }
.agenda-grid { display: grid; gap: 1.8rem; }
.agendar { display: grid; gap: 1.2rem; padding: 1.2rem; border-radius: 24px; background: var(--blanco); border: 1px solid var(--linea); box-shadow: 0 30px 60px -44px rgb(11 21 48 / .5); }
.ag-et { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; font-weight: 600; }
.ag-et span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--tinta); color: #fff; font-family: var(--mono); font-size: .72rem; transform: translateY(-1px); }
.ag-et small { width: 100%; padding-left: 30px; margin-top: -.3rem; font-weight: 400; font-size: .8rem; color: var(--gris); }
.ag-dias { display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; }
.ag-dia { display: grid; justify-items: center; gap: 0; padding: .55rem 0 .5rem; border-radius: 14px; border: 0; cursor: pointer; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); transition: background-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease); }
.ag-dia small { font-size: .72rem; color: var(--gris); text-transform: capitalize; }
.ag-dia b { font-family: var(--display); font-size: 1.3rem; font-weight: 700; line-height: 1.15; }
.ag-dia[aria-checked="true"] { background: var(--tinta); color: #fff; box-shadow: none; }
.ag-dia[aria-checked="true"] small { color: #b9c3dc; }
.ag-horas { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.ag-hora { height: 42px; border-radius: 12px; border: 0; cursor: pointer; background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--linea); font-family: var(--mono); font-weight: 500; font-size: .86rem; transition: background-color .25s, color .25s, box-shadow .25s; }
.ag-hora:disabled { cursor: default; color: #b2b9c6; background: transparent; text-decoration: line-through; box-shadow: inset 0 0 0 1.5px rgb(11 21 48 / .05); }
.ag-hora[aria-checked="true"] { background: var(--azul); color: #fff; box-shadow: none; }
.ag-vacio { grid-column: 1 / -1; color: var(--gris); font-size: .9rem; }
.ag-input { width: 100%; height: 52px; padding: 0 1rem; border-radius: 14px; border: 1.5px solid var(--linea); background: var(--papel); font-size: 1rem; transition: border-color .2s, background-color .2s; }
.ag-input:focus { outline: none; border-color: var(--azul); background: #fff; }
.ag-paso.error .ag-input { border-color: #d6452f; }
.ag-error { color: #c23b27; font-size: .84rem; margin-top: .4rem; }
.ag-incluir { display: flex; align-items: flex-start; gap: .7rem; padding: .8rem .9rem; border-radius: 14px; background: var(--papel); cursor: pointer; font-size: .9rem; }
.ag-incluir b { font-weight: 600; }
.ag-enviar { width: 100%; }
@media (min-width: 900px) {
  .agenda-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
  .agenda-intro { position: sticky; top: calc(var(--cab-h) + 40px); }
  .agendar { padding: 2rem; }
  .ag-horas { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Cómo trabajamos ---------- */
.trabajamos { padding: 12vh 0; background: var(--blanco); }
.trabajamos-grid { display: grid; gap: 2.2rem; }
.reporte { margin-top: 1.8rem; padding: 1.2rem; border-radius: 20px; background: var(--papel); border: 1px solid var(--linea); max-width: 420px; }
.rep-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.rep-cab b { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.rep-cab span { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 99px; background: var(--coral-claro); color: #b8412f; }
.rep-fila { display: flex; justify-content: space-between; font-size: .9rem; margin-top: .6rem; }
.rep-fila span { color: var(--gris); }
.rep-fila b { font-family: var(--mono); font-weight: 600; }
.rep-barra { height: 10px; margin-top: .4rem; border-radius: 6px; background: var(--papel-2); overflow: hidden; }
.rep-barra i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 6px; background: var(--azul); transform-origin: left; }
.rep-barra i.coral { background: var(--coral); }
.rep-aviso { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; padding: .6rem .75rem; border-radius: 12px; background: #fff; font-size: .84rem; font-weight: 500; }
.rep-campana { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px var(--coral-claro); }
.pasos { position: relative; display: grid; gap: 1.6rem; padding-left: 3rem; counter-reset: p; --p: 0; }
.pasos::before, .pasos::after { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--papel-2); }
.pasos::after { background: var(--azul); transform-origin: top; transform: scaleY(var(--p)); }
.pasos li { position: relative; counter-increment: p; }
.pasos li::before { content: counter(p); position: absolute; left: -3rem; top: -2px; z-index: 1; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--blanco); box-shadow: inset 0 0 0 2px var(--papel-2); font-family: var(--mono); font-weight: 600; font-size: .85rem; transition: background-color .4s, color .4s, box-shadow .4s; }
.pasos li.hecho::before { background: var(--azul); color: #fff; box-shadow: none; }
.pasos b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.02em; }
.pasos p { color: var(--gris); margin-top: .25rem; }
.politica { display: grid; gap: .7rem; }
.politica li { display: grid; grid-template-columns: 44px 1fr; column-gap: .9rem; padding: 1rem; border-radius: 18px; background: var(--papel); }
.pol-ico { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.pol-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--tinta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.politica b { font-weight: 600; }
.politica p { color: var(--gris); font-size: .88rem; }
.trab-nota { margin-top: -1.4rem; }
@media (min-width: 900px) {
  .trabajamos-grid { grid-template-columns: 1fr 1fr; column-gap: 5rem; row-gap: 3rem; align-items: start; }
  .trab-intro { grid-row: 1 / span 2; position: sticky; top: calc(var(--cab-h) + 40px); }
  .politica { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .trab-nota { grid-column: 1 / -1; margin-top: -2.4rem; }
}

/* ---------- Preguntas ---------- */
.preguntas { padding: 12vh 0; }
.preguntas-grid { display: grid; gap: 1.8rem; }
.faq { display: grid; gap: .5rem; }
.faq details { border-radius: 16px; background: var(--blanco); border: 1px solid var(--linea); overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; cursor: pointer; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--azul-claro) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 5v10M5 10h10' stroke='%232d5bff' stroke-width='2.2' stroke-linecap='round'/></svg>") center / 16px no-repeat; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-r { padding: 0 1.1rem 1.1rem; color: var(--gris); }
@media (min-width: 900px) { .preguntas-grid { grid-template-columns: .8fr 1.2fr; gap: 5rem; } }

/* ---------- Oficina ---------- */
.oficina { padding: 12vh 0 14vh; }
.ofi-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 2rem; }
.ofi-f { overflow: hidden; border-radius: var(--r); background: var(--papel-2); }
.ofi-f img { width: 100%; height: 100%; object-fit: cover; }
.ofi-1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.ofi-2, .ofi-3 { aspect-ratio: 1; }
.ofi-4 { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
.ofi-datos { display: grid; gap: 1rem; margin-top: 1rem; }
.mapa { border-radius: var(--r); overflow: hidden; aspect-ratio: 400 / 260; border: 1px solid var(--linea); }
.mapa svg { width: 100%; height: 100%; display: block; }
.mapa-ruta { animation: ruta 1.2s linear infinite; }
@keyframes ruta { to { stroke-dashoffset: -28; } }
.mapa-pulso { transform-box: fill-box; transform-origin: center; animation: pulso 2.2s var(--ease) infinite; }
@keyframes pulso { 0% { transform: scale(.4); opacity: .5; } 100% { transform: scale(1.6); opacity: 0; } }
.ofi-info { padding: 1.3rem; border-radius: var(--r); background: var(--blanco); border: 1px solid var(--linea); }
.estado { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding: .45rem 1rem; border-radius: 99px; background: rgb(15 127 88 / .1); color: var(--verde); font-size: .9rem; }
.estado.cerrado { background: rgb(11 21 48 / .07); color: var(--gris); }
.punto { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; }
.estado:not(.cerrado) .punto { animation: latido 2s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgb(15 127 88 / .45); } 70% { box-shadow: 0 0 0 8px rgb(15 127 88 / 0); } 100% { box-shadow: 0 0 0 0 rgb(15 127 88 / 0); } }
.horario div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.horario div.hoy dt { color: var(--tinta); font-weight: 600; }
.horario div.hoy dt::after { content: "hoy"; margin-left: .5rem; padding: .05rem .45rem; border-radius: 99px; background: var(--azul-claro); color: var(--azul); font-size: .7rem; font-weight: 600; }
.horario dt { color: var(--gris); }
.horario dd { font-weight: 600; font-family: var(--mono); font-size: .92rem; }
.direccion { margin: 1.1rem 0 1.2rem; }
.direccion span { color: var(--gris); font-size: .8rem; }
@media (min-width: 900px) {
  .ofi-fotos { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 1rem; margin-top: 3rem; }
  .ofi-1 { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .ofi-2, .ofi-3 { aspect-ratio: auto; }
  .ofi-4 { grid-column: 2 / span 2; aspect-ratio: auto; }
  .ofi-datos { grid-template-columns: 1.2fr 1fr; gap: 1rem; margin-top: 1rem; }
  .mapa { aspect-ratio: auto; min-height: 320px; }
  .ofi-info { padding: 2rem; }
}

/* ---------- Pie ---------- */
.pie { padding: 4rem 0 7rem; border-top: 1px solid var(--linea); background: var(--blanco); }
.pie-marca { font-family: var(--display); font-weight: 800; font-size: clamp(4.6rem, 26vw, 13rem); line-height: .85; letter-spacing: -.07em; color: var(--papel-2); }
.pie-aviso { margin-top: 1rem; color: var(--gris); font-size: .82rem; max-width: 76ch; }
.pie-firma { margin-top: .8rem; font-size: .9rem; }
.pie-firma a { color: var(--azul); font-weight: 600; }

/* ---------- Barra fija del teléfono ---------- */
.barra-cotiza { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: .8rem; max-width: 560px; margin-inline: auto;
  padding: 8px 8px 8px 16px; border-radius: 18px; background: rgb(11 21 48 / .94); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -14px rgb(11 21 48 / .6);
  transform: translateY(150%); transition: transform .5s var(--ease); }
.barra-cotiza.visible { transform: none; }
.barra-cotiza p { display: grid; line-height: 1.2; min-width: 0; }
.barra-cotiza span { font-size: .72rem; color: #9aa6c4; font-family: var(--mono); letter-spacing: .04em; }
.barra-cotiza b { font-family: var(--display); font-weight: 600; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .barra-cotiza { display: none; } }

/* ---------- Diálogo ---------- */
.panel { width: min(480px, 100% - 24px); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 22px; background: #fff; color: var(--tinta); }
.panel::backdrop { background: rgb(11 21 48 / .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel-in { position: relative; padding: 1.4rem; display: grid; gap: .8rem; }
.panel .antetitulo { margin-bottom: 0; }
.panel h2 { font-family: var(--display); font-weight: 600; font-size: 1.55rem; letter-spacing: -.035em; line-height: 1.1; padding-right: 2.4rem; }
.cerrar { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--papel); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.wa-chat { padding: .9rem; border-radius: 16px; background: #0b141a; }
.wa-burbuja { margin-left: auto; max-width: 94%; padding: .6rem .8rem 1.2rem; border-radius: 12px 12px 2px 12px; background: #005c4b; color: #e9edef; font-size: .84rem; line-height: 1.45; white-space: pre-line; position: relative; }
.wa-burbuja::after { content: "✓✓"; position: absolute; right: 8px; bottom: 4px; font-size: .65rem; color: #53bdeb; }
.panel .nota { margin-top: 0; font-size: .78rem; }
.demo-cta { padding-top: .9rem; border-top: 1px solid var(--linea); display: grid; gap: .6rem; }
.demo-cta p { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inicio { height: auto; }
  .inicio-fijo { position: relative; }
  .bajar, .tk-luz, .mapa-ruta, .mapa-pulso, .estado .punto { animation: none !important; }
  .bajar { display: none; }
}
