/* Engrana · página de inicio
   Tema: sigue el del celular o la compu (claro / oscuro), igual que el sistema.
   Radios: tarjetas 24px, controles 12px, chips y estados en píldora. */

:root {
  --azul: #2563EB; --azul-2: #1D4ED8; --azul-s: #DBEAFE; --azul-t: #1D4ED8;
  --bg: #F3F5F9; --card: #FFFFFF; --card-2: #F8FAFC; --line: #E2E8F0; --line-2: #CBD5E1;
  --txt: #0F172A; --sub: #475569; --mute: #64748B;
  --verde: #15803D; --verde-2: #166534; --rojo: #DC2626; --rojo-s: #FEE2E2; --rojo-t: #B91C1C;
  --chat: #EFEAE2; --b-in: #FFFFFF; --b-out: #D9FDD3;
  --stage-1: #FFFFFF; --stage-2: #E6ECF5;
  --g-paint: #2563EB; --g-disc: #D9E1EC; --g-ring: #2563EB;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06);
  --sh-2: 0 1px 2px rgba(15, 23, 42, .05), 0 18px 40px -18px rgba(15, 23, 42, .22);
  --sh-3: 0 30px 60px -24px rgba(15, 23, 42, .38);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --r-card: 24px; --r-ctl: 12px;
  --nav-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --azul-s: #172554; --azul-t: #8AB0FF;
    --bg: #0B1220; --card: #111A2E; --card-2: #0E1628; --line: #1E293B; --line-2: #2B3A55;
    --txt: #E2E8F0; --sub: #A3B1C6; --mute: #8492A9;
    --rojo-s: rgba(220, 38, 38, .16); --rojo-t: #FCA5A5;
    --chat: #0B141A; --b-in: #1F2C34; --b-out: #005C4B;
    --stage-1: #16223B; --stage-2: #0B1220;
    --g-paint: #E9EDF3; --g-disc: #070C17; --g-ring: #3B74F0;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
    --sh-2: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .6);
    --sh-3: 0 30px 60px -24px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#inicio { background: var(--bg); color: var(--txt); min-height: 100vh; font-size: 16px; line-height: 1.5; }
#inicio h1, #inicio h2, #inicio h3 { text-wrap: balance; margin: 0; }
#inicio p { text-wrap: pretty; margin: 0; }
#inicio img { max-width: 100%; display: block; }
#inicio button { font: inherit; color: inherit; }
#inicio ::selection { background: var(--azul-s); color: var(--txt); }
#inicio input { caret-color: var(--azul); }
#inicio :focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 10px; }
#inicio [hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: max(16px, env(safe-area-inset-left)); }
@media (min-width: 640px) { .wrap { padding-inline: 24px; } }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--azul); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 800; text-decoration: none; }
.skip:focus { top: 12px; }

.h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; letter-spacing: -.025em; font-weight: 900; }
.h3 { font-size: 19px; line-height: 1.25; font-weight: 900; letter-spacing: -.01em; }
.lead { color: var(--sub); font-size: clamp(16.5px, 1.6vw, 18px); line-height: 1.55; max-width: 60ch; }
.sec { padding-block: clamp(64px, 9vw, 112px); }
.sec__head { max-width: 700px; display: grid; gap: 14px; margin-bottom: 32px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-ctl);
  padding: 13px 20px; font: 800 16px/1.1 Nunito, system-ui, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.btn:active { transform: scale(.97); }
.btn i { font-size: 20px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--azul); color: #fff; box-shadow: 0 8px 22px -8px rgba(37, 99, 235, .7); }
.btn--ghost { background: transparent; color: var(--txt); border: 1.5px solid var(--line-2); }
.btn--wa { background: var(--verde); color: #fff; }
.btn--sm { padding: 9px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn--lg { padding: 16px 24px; font-size: 17px; }
.btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--azul-2); }
  .btn--ghost:hover { border-color: var(--azul); color: var(--azul-t); }
  .btn--wa:hover { background: var(--verde-2); }
}
/* Borde de luz del botón principal (ya estaba en la página) */
@property --giro { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.halo { border: 2px solid transparent; background: linear-gradient(var(--azul), var(--azul)) padding-box, conic-gradient(from var(--giro), #1D4ED8, #93C5FD, #22C55E, #1D4ED8) border-box; animation: halo 4s linear infinite; }
@media (hover: hover) and (pointer: fine) { .halo:hover { background: linear-gradient(var(--azul-2), var(--azul-2)) padding-box, conic-gradient(from var(--giro), #1D4ED8, #93C5FD, #22C55E, #1D4ED8) border-box; } }
@keyframes halo { to { --giro: 360deg; } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); cursor: pointer; font-size: 20px; transition: transform 160ms var(--ease-out), border-color 150ms ease; }
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { border-color: var(--azul); color: var(--azul-t); } }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding-top: env(safe-area-inset-top); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.marca { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 23px; letter-spacing: -.4px; color: var(--txt); text-decoration: none; }
.marca svg { width: 38px; height: 38px; }
.nav__links { display: none; gap: 4px; margin-left: 12px; }
.nav__links a { color: var(--sub); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--txt); background: var(--card); } }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link-entrar { font-weight: 800; font-size: 14px; color: var(--azul-t); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
@media (max-width: 520px) { .link-entrar { display: none; } }
@media (min-width: 960px) { .nav__links { display: flex; } }

/* ---------- Héroe ---------- */
.hero { padding-block: 20px 40px; }
.hero__in { display: grid; gap: 28px; align-items: center; }
.hero__copy { display: grid; gap: 20px; justify-items: center; text-align: center; }
.hero__t { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.0; letter-spacing: -.035em; font-weight: 900; }
.hero__t br { display: none; }
.swap { color: var(--azul-t); white-space: nowrap; }
.swap__w { display: inline-block; transition: opacity 170ms ease, filter 170ms ease, transform 170ms var(--ease-out); }
.swap__w.is-out { opacity: 0; filter: blur(4px); transform: translateY(.12em); }
.hero__sub { color: var(--sub); font-size: clamp(17px, 1.7vw, 19px); line-height: 1.55; max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 420px) { .hero__ctas .btn--lg { padding: 14px 16px; font-size: 16px; } }

@media (min-width: 960px) {
  .hero { padding-block: 24px 56px; }
  .hero__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; min-height: min(calc(100svh - var(--nav-h) - 80px), 760px); }
  .hero__copy { justify-items: start; text-align: left; }
  .hero__t br { display: inline; }
  .hero__ctas { justify-content: flex-start; }
}

/* Taller 3D */
.garage { position: relative; height: clamp(400px, 60svh, 540px); border-radius: 28px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 85% at 55% 28%, var(--stage-1), var(--stage-2)); box-shadow: var(--sh-2); isolation: isolate; }
@media (min-width: 960px) { .garage { height: min(74svh, 680px); } }
.garage__gl-wrap { position: absolute; inset: 0; }
.garage__gl { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms ease; cursor: grab; }
.garage__gl:active { cursor: grabbing; }
.garage.is-ready .garage__gl { opacity: 1; }
.garage::after { content: 'Preparando el taller…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--mute); font-weight: 700; font-size: 14px; pointer-events: none; transition: opacity 300ms ease; }
.garage.is-ready::after, .garage.is-fallback::after { opacity: 0; }
.garage__bar { position: absolute; z-index: 2; top: 14px; left: 14px; right: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; }
.garage__bar > * { pointer-events: auto; }
.garage__hint { display: none; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--sub); background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; }
@media (min-width: 560px) { .garage__hint { display: inline-flex; } }
.garage.is-fallback .garage__hint { display: none; }

.seg { position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-1); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--azul); transition: transform 320ms var(--ease-io); }
[data-vehicle="moto"] .seg__pill { transform: translateX(100%); }
.seg__b { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; background: none; padding: 9px 16px; min-height: 40px; font-weight: 800; font-size: 15px; cursor: pointer; border-radius: 999px; color: var(--sub); transition: color 200ms ease; }
.seg__b i { font-size: 19px; }
.seg__b[aria-pressed="true"] { color: #fff; }

.ficha { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sh-2); }
@media (min-width: 560px) { .ficha { right: auto; width: 300px; left: 16px; bottom: 16px; } }
.ficha__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ficha__t { font-weight: 900; font-size: 16px; }
.ficha__m { color: var(--sub); font-size: 13.5px; }
.ficha__m .num { font-weight: 800; color: var(--txt); }
.placa { font-weight: 900; font-size: 12.5px; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; border: 1.5px solid var(--txt); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ficha__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; max-height: 92px; overflow-y: auto; }
@media (min-width: 560px) { .ficha__list { max-height: 150px; } }
.ficha__list li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.ficha__list li.is-new { animation: pop 260ms var(--ease-out); }
.ficha__dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--rojo); color: #fff; font-size: 11.5px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--rojo-s); }
.ficha__empty { margin-top: 8px !important; display: flex; gap: 8px; align-items: center; color: var(--sub); font-size: 14px; }
.ficha__empty i { font-size: 20px; color: var(--azul-t); flex: none; }
.ficha__f { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.golpes { font-size: 13px; font-weight: 800; color: var(--rojo-t); background: var(--rojo-s); padding: 3px 10px; border-radius: 999px; }
.ficha__clear { border: 0; background: none; font-weight: 800; font-size: 13.5px; color: var(--sub); cursor: pointer; padding: 6px 4px; }
@media (hover: hover) and (pointer: fine) { .ficha__clear:hover { color: var(--txt); } }
.garage__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 64px 16px 150px; }
.garage__fallback .phone { max-width: 210px; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(4px); } }

/* Entrada de la página (una vez) */
.is-live .hero [data-in] { animation: rise 800ms var(--ease-out) both; }
.is-live .hero [data-in]:nth-child(2) { animation-delay: 80ms; }
.is-live .hero [data-in]:nth-child(3) { animation-delay: 160ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Teléfono (pantallas reales del sistema) ---------- */
.phone { width: 100%; max-width: 270px; margin-inline: auto; background: #0B1220; padding: 8px; border-radius: 38px; box-shadow: var(--sh-3), 0 0 0 1px rgba(148, 163, 184, .28); }
.phone img { width: 100%; height: auto; aspect-ratio: 600 / 1211; object-fit: cover; object-position: top; border-radius: 30px; background: #F3F5F9; }
.phone--sm { max-width: 230px; }

/* ---------- Pestañas carro / moto ---------- */
.tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 24px; }
.tab { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 9px 16px; min-height: 42px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--sub); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out); }
.tab i { font-size: 19px; }
.tab:active { transform: scale(.97); }
.tab[aria-selected="true"] { background: var(--azul); color: #fff; }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { color: var(--txt); background: var(--card-2); } }

/* ---------- Video ---------- */
.video__in { display: grid; gap: 28px; grid-template-areas: "head" "stage" "caps"; }
.video__copy { grid-area: head; display: grid; gap: 14px; justify-items: start; }
.video__copy .tabs { margin: 8px 0 0; }
.chapters { grid-area: caps; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.video__stage { grid-area: stage; display: grid; justify-items: center; gap: 12px; }
@media (min-width: 900px) {
  .video__in { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); grid-template-areas: "head stage" "caps stage"; column-gap: 56px; row-gap: 24px; align-items: start; }
  .video__stage { position: sticky; top: calc(var(--nav-h) + 24px); }
  .chapters { grid-template-columns: 1fr 1fr; }
}
.cap { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; text-align: left; padding: 11px 12px; border-radius: 12px; cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.cap__t { flex: none; width: 38px; color: var(--mute); font-weight: 800; font-size: 14px; }
.cap__l { font-weight: 700; font-size: 15.5px; color: var(--sub); }
.cap.is-on { background: var(--azul-s); }
.cap.is-on .cap__l, .cap.is-on .cap__t { color: var(--azul-t); font-weight: 900; }
@media (hover: hover) and (pointer: fine) { .cap:not(.is-on):hover { background: var(--card); } .cap:not(.is-on):hover .cap__l { color: var(--txt); } }

.reel { position: relative; width: min(340px, 82vw); aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #1E40AF; box-shadow: var(--sh-3); }
.reel video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.video__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; background: #fff; color: var(--azul); font-size: 30px; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -8px rgba(15, 23, 42, .5); transition: transform 160ms var(--ease-out), opacity 200ms ease; }
.video__play:active { transform: scale(.94); }
.reel.is-playing .video__play { opacity: 0; pointer-events: none; transform: scale(.9); }
.video__sound { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 8px 12px; background: rgba(11, 18, 32, .78); color: #fff; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.video__sound i { font-size: 17px; }
.video__progress { width: min(340px, 82vw); height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.video__progress span { display: block; height: 100%; background: var(--azul); transform-origin: left; transform: scaleX(0); transition: transform 250ms linear; }

/* ---------- Carros y motos ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 900px) { .bento { grid-template-columns: minmax(0, 1.05fr) minmax(0, .78fr) minmax(0, 1.12fr); align-items: stretch; } }
.cell { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh-1); }
.cell__s { color: var(--sub); font-size: 15px; margin-top: 6px !important; }
.cell--shot { display: grid; align-content: center; justify-items: center; gap: 12px; background: linear-gradient(180deg, var(--azul-s), var(--card) 75%); }
.cell__cap { color: var(--sub); font-size: 13.5px; font-weight: 700; }
.trae { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.chk { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); cursor: pointer; font-weight: 700; font-size: 15.5px; background: var(--card); transition: border-color 150ms ease, background-color 150ms ease, transform 160ms var(--ease-out); user-select: none; }
.chk:active { transform: scale(.985); }
.chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chk__box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; font-size: 14px; transition: background-color 150ms ease, border-color 150ms ease; }
.chk__box i { opacity: 0; transform: scale(.6); transition: opacity 150ms ease, transform 200ms var(--ease-out); }
.chk input:checked + .chk__box { background: var(--azul); border-color: var(--azul); }
.chk input:checked + .chk__box i { opacity: 1; transform: none; }
.chk input:focus-visible + .chk__box { outline: 3px solid var(--azul); outline-offset: 2px; }
.chk:has(input:checked) { border-color: color-mix(in srgb, var(--azul) 45%, var(--line)); }
@media (hover: hover) and (pointer: fine) { .chk:hover { background: var(--card-2); } }
.trae__msg { margin-top: 14px !important; font-size: 14.5px; color: var(--txt); background: var(--chat); border-radius: 14px; padding: 12px 14px; line-height: 1.45; }
.trae__wa { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 12.5px; color: var(--verde); margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .trae__wa { color: #4ADE80; } }
.trae__wa svg { width: 15px; height: 15px; }

.cell--coti { display: grid; align-content: start; padding: 0; overflow: hidden; }
.coti { padding: 22px; display: grid; gap: 12px; }
.coti__h { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.coti__n { font-size: 26px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1; }
.coti__v { color: var(--sub); font-size: 14px; font-weight: 600; margin-top: 2px !important; }
.coti__chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; background: var(--card-2); animation: pop 220ms var(--ease-out); }
.chip--red { color: var(--rojo-t); background: var(--rojo-s); border-color: transparent; font-weight: 800; }
.coti__t { font-weight: 900; font-size: 17px; padding-top: 8px; border-top: 1px solid var(--line); }
.coti__l { list-style: none; padding: 0; margin: 0; display: grid; }
.coti__l li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.coti__l li span { color: var(--sub); }
.coti__l li b { white-space: nowrap; }
.coti__tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; font-weight: 900; }
.coti__tot strong { font-size: 30px; color: var(--azul-t); letter-spacing: -.02em; }
.coti__time { display: flex; align-items: center; gap: 6px; color: var(--sub); font-size: 14px; font-weight: 700; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; background: #0F172A; color: #fff; font-weight: 800; padding: 13px 16px; border-radius: 14px; box-shadow: var(--sh-3); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 200ms ease, transform 260ms var(--ease-out); }
@media (prefers-color-scheme: dark) { .toast { background: #1E293B; } }
.toast i { color: #22C55E; font-size: 22px; }
.toast.is-on { opacity: 1; transform: none; }

/* Estados de la orden (mismos colores que el sistema) */
.estado { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; transition: background-color 300ms ease, color 300ms ease; }
.estado[data-estado="recibido"] { background: var(--azul-s); color: var(--azul-t); }
.estado[data-estado="espera"] { background: #E0E7FF; color: #4338CA; }
.estado[data-estado="reparacion"] { background: var(--rojo-s); color: var(--rojo-t); }
.estado[data-estado="reparado"] { background: #DCFCE7; color: #15803D; }
@media (prefers-color-scheme: dark) {
  .estado[data-estado="espera"] { background: rgba(99, 102, 241, .2); color: #C7D2FE; }
  .estado[data-estado="reparado"] { background: rgba(34, 197, 94, .16); color: #86EFAC; }
}

/* ---------- Bot ---------- */
.bot__in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .bot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; } }
.bot__copy { display: grid; gap: 16px; }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; max-width: 540px; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: 16px; line-height: 1.5; color: var(--sub); }
.ticks li b { color: var(--txt); }
.ticks i { color: var(--azul); font-size: 24px; }
.sync { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); width: fit-content; }
.sync__l { font-size: 13px; font-weight: 700; color: var(--mute); }
.sync__o { font-weight: 900; font-size: 15px; }

.wa-chat { width: 100%; max-width: 420px; justify-self: center; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-3); background: var(--chat); display: flex; flex-direction: column; }
.wa__h { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.wa__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px; background: linear-gradient(135deg, #2563EB, #0D9488); flex: none; }
.wa__who { display: grid; line-height: 1.2; }
.wa__who small { color: var(--mute); font-size: 12.5px; }
.wa__replay { margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; cursor: pointer; font-size: 20px; color: var(--sub); }
@media (hover: hover) and (pointer: fine) { .wa__replay:hover { background: var(--card-2); color: var(--txt); } }
.wa__body { height: 500px; overflow-y: auto; scrollbar-width: thin; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain;
  background-image: radial-gradient(color-mix(in srgb, var(--txt) 9%, transparent) 1px, transparent 1px); background-size: 18px 18px; }
.wa__day { align-self: center; font-size: 12px; font-weight: 800; color: var(--sub); background: var(--card); border-radius: 8px; padding: 3px 10px; box-shadow: var(--sh-1); }
.msg { max-width: 86%; padding: 8px 11px 6px; border-radius: 12px; font-size: 14.5px; line-height: 1.42; box-shadow: var(--sh-1); overflow-wrap: anywhere; animation: pop 260ms var(--ease-out); }
.msg small { display: flex; justify-content: flex-end; align-items: center; gap: 3px; font-size: 11.5px; color: var(--mute); margin-top: 2px; font-variant-numeric: tabular-nums; }
.msg small i { color: #53BDEB; font-size: 14px; }
.msg--bot { align-self: flex-start; background: var(--b-in); border-top-left-radius: 4px; }
.msg--cli { align-self: flex-end; background: var(--b-out); border-top-right-radius: 4px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: blink 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.wa__btns { align-self: flex-start; width: 86%; display: grid; gap: 6px; }
.wa__btn { border: 0; background: var(--b-in); color: #0B78B5; font-weight: 800; font-size: 15px; padding: 10px; border-radius: 10px; box-shadow: var(--sh-1); cursor: pointer; transition: transform 160ms var(--ease-out), opacity 200ms ease; }
@media (prefers-color-scheme: dark) { .wa__btn { color: #53BDEB; } }
.wa__btn:active { transform: scale(.97); }
.wa__btn:disabled { opacity: .55; cursor: default; }
.wa__btn[data-ok]:not(:disabled) { box-shadow: 0 0 0 2px var(--azul), var(--sh-1); }
.wa__hint { font-size: 12.5px; font-weight: 700; color: var(--sub); text-align: center; margin-top: 2px !important; }
.wa__f { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.wa__in { flex: 1; background: var(--b-in); color: var(--mute); border-radius: 999px; padding: 10px 16px; font-size: 14.5px; }
.wa__send { width: 42px; height: 42px; border-radius: 50%; background: #1DA851; color: #fff; display: grid; place-items: center; font-size: 18px; }

/* ---------- Pantallas del sistema (carrusel) ---------- */
.screens { overflow: hidden; }
.screens__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.screens__nav { display: none; gap: 8px; margin-bottom: 32px; }
@media (min-width: 760px) { .screens__nav { display: flex; } }
.screens__track { list-style: none; margin: 0; padding: 4px max(16px, calc((100vw - 1180px) / 2 + 24px)) 24px; display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 74vw); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - 1180px) / 2 + 24px)); scrollbar-width: none; overscroll-behavior-x: contain; }
.screens__track::-webkit-scrollbar { display: none; }
.scr { scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.scr .phone { max-width: none; margin: 0 0 10px; }
.scr p { color: var(--sub); font-size: 15px; }

/* ---------- Planes ---------- */
.planes__g { display: grid; gap: 20px; max-width: 900px; }
@media (min-width: 760px) { .planes__g { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; display: grid; gap: 10px; align-content: start; box-shadow: var(--sh-1); }
.plan--pro { border: 2px solid var(--azul); box-shadow: var(--sh-2); }
.plan__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.plan__n { font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.plan__p { color: var(--sub); }
.plan__l { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 10px; }
.plan__l li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 15.5px; line-height: 1.4; }
.plan__l i { color: var(--azul); font-size: 19px; }
.badge { display: inline-flex; align-items: center; gap: 5px; background: var(--azul); color: #fff; font-size: 13px; font-weight: 900; padding: 5px 11px; border-radius: 999px; }

/* ---------- Agenda ---------- */
.agenda__in { display: grid; gap: 36px; }
@media (min-width: 960px) { .agenda__in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; } .agenda__copy { position: sticky; top: calc(var(--nav-h) + 32px); } }
.agenda__copy { display: grid; gap: 16px; }
.acc { color: var(--azul-t); }
.cupos { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.cupo { display: grid; justify-items: center; gap: 6px; padding: 16px 8px; border-radius: 16px; background: var(--azul-s); color: var(--azul-t); font-weight: 900; font-size: 14px; }
.cupo i { font-size: 26px; }
.cupo.is-taken { background: var(--card); color: var(--mute); border: 1px dashed var(--line-2); }
.cupos__n { color: var(--sub); font-weight: 700; font-size: 15px; }
.wa-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--verde); text-decoration: none; width: fit-content; padding: 6px 0; text-underline-offset: 4px; }
@media (prefers-color-scheme: dark) { .wa-link { color: #4ADE80; } }
.wa-link svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .wa-link:hover { text-decoration: underline; } }

.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(18px, 3vw, 30px); box-shadow: var(--sh-2); }
.form fieldset { border: 0; margin: 0 0 22px; padding: 0; display: grid; gap: 16px; }
.form__lg { font-weight: 900; font-size: 18px; padding: 0; margin-bottom: 4px; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 600px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .label { font-weight: 800; font-size: 14.5px; }
.opt { color: var(--mute); font-weight: 600; }
.field input:not([type="radio"]) { width: 100%; height: 48px; border-radius: var(--r-ctl); border: 1.5px solid var(--line-2); background: var(--card-2); color: var(--txt); padding: 0 14px; font: 600 16px Nunito, system-ui, sans-serif; transition: border-color 150ms ease, box-shadow 150ms ease; }
.field input::placeholder { color: var(--mute); opacity: 1; }
.field input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px color-mix(in srgb, var(--azul) 30%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--rojo); }
.prefix { display: flex; }
.prefix span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line-2); border-right: 0; border-radius: var(--r-ctl) 0 0 var(--r-ctl); background: var(--card); font-weight: 800; color: var(--sub); }
.prefix input { border-radius: 0 var(--r-ctl) var(--r-ctl) 0 !important; }
.field__h { color: var(--mute); font-size: 13.5px; }
.field__e { color: var(--rojo-t); font-size: 13.5px; font-weight: 700; min-height: 0; }
.field__e:empty { display: none; }
.rseg { display: flex; flex-wrap: wrap; gap: 8px; }
.rseg label, .day, .hour, .chk { position: relative; }
.rseg label { cursor: pointer; }
.rseg input, .day input, .hour input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rseg span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-ctl); border: 1.5px solid var(--line-2); font-weight: 800; font-size: 15px; color: var(--sub); background: var(--card); transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.rseg span:active { transform: scale(.97); }
.rseg input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; }
.rseg input:focus-visible + span, .day input:focus-visible + span, .hour input:focus-visible + span { outline: 3px solid var(--azul); outline-offset: 2px; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.day { scroll-snap-align: start; cursor: pointer; }
.day span { display: grid; justify-items: center; gap: 0; padding: 8px 0; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--card); line-height: 1.2; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.day span:active { transform: scale(.96); }
.day small { font-size: 12px; font-weight: 700; color: var(--mute); }
.day b { font-size: 21px; font-weight: 900; }
.day input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; }
.day input:checked + span small { color: rgba(255, 255, 255, .85); }
.hours { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.hours:empty { display: none; }
.hour { cursor: pointer; }
.hour span { display: grid; place-items: center; height: 44px; border-radius: var(--r-ctl); border: 1.5px solid var(--line-2); background: var(--card); font-weight: 800; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 160ms var(--ease-out); }
.hour span:active { transform: scale(.96); }
.hour input:checked + span { background: var(--azul); border-color: var(--azul); color: #fff; }
.hour.is-off { cursor: not-allowed; }
.hour.is-off span { text-decoration: line-through; color: var(--mute); background: var(--card-2); border-style: dashed; }
.hour.is-skel { height: 44px; border-radius: var(--r-ctl); background: linear-gradient(90deg, var(--card-2) 25%, var(--line) 50%, var(--card-2) 75%); background-size: 200% 100%; animation: skel 1.1s linear infinite; }
@keyframes skel { to { background-position: -200% 0; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { background: var(--rojo-s); color: var(--rojo-t); font-weight: 700; padding: 12px 14px; border-radius: var(--r-ctl); margin-bottom: 14px !important; }
.form__err a { color: inherit; font-weight: 900; text-underline-offset: 3px; }
.form__fine { text-align: center; color: var(--mute); font-size: 13.5px; margin-top: 12px !important; }
[data-submit] { position: relative; }
.spin { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.is-loading .spin { display: block; }
.is-loading .btn__t { opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 24px 4px; outline: none; }
.done__i { font-size: 60px; color: var(--azul); }
.done .lead { margin-inline: auto; }
.done__a { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }

/* ---------- Preguntas ---------- */
.faq__in { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 56px; } }
.faq__l { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 800; font-size: 17.5px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; font-size: 20px; color: var(--azul-t); transition: transform 200ms var(--ease-out); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { color: var(--sub); font-size: 16px; line-height: 1.6; max-width: 65ch; padding: 0 2px 22px; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); color: var(--sub); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot .marca { font-size: 19px; }
.foot .marca svg { width: 30px; height: 30px; }
.foot a { color: var(--azul-t); font-weight: 800; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  .halo, .typing span, .hour.is-skel { animation: none; }
  .is-live .hero [data-in], .msg, .chip, .ficha__list li.is-new { animation: none; }
  .seg__pill, .swap__w, .toast, .video__progress span { transition: none; }
}
