/* Web PandaPhone — estilos compartidos (misma paleta que el tracker) */
:root {
  color-scheme: dark;
  --bg: #0b0b0b; --panel: #141414; --panel-2: #1c1c1c; --ink: #ffffff; --muted: #a8a8a8; --line: #2a2a2a;
  --accent: #f5b800; --accent-ink: #0b0b0b; --accent-soft: rgba(245, 184, 0, .13); --gold-dark: #b8860b;
  --warn: #ffcf4d; --bad: #ff3b30; --ok: #34c759; --wa: #25d366;
  --display: "Bebas Neue", "Arial Narrow", Arial, sans-serif; --body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body) }
body.con-barra { padding-bottom: 96px }
img { max-width: 100% }
a { color: var(--accent) }
button, input, select, textarea { font: inherit; color: inherit }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)) }

/* Encabezado y menú */
header.top { border-bottom: 1px solid var(--line); background: radial-gradient(120% 140% at 85% -20%, rgba(245, 184, 0, .22), transparent 55%) }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-block: 12px; flex-wrap: wrap }
.top .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit }
.top img { width: 52px; height: 52px; object-fit: contain }
.top .marca { font-family: var(--display); font-size: 22px; letter-spacing: .04em; line-height: 1 }
.top .marca span { color: var(--accent) }
.top .marca small { display: block; font-family: var(--body); letter-spacing: 0; font-size: 12.5px; color: var(--muted) }
.top .blue { margin-left: auto; font-size: 12.5px; color: var(--muted); text-align: right; line-height: 1.3 }
.top .blue b { color: var(--ink); font-variant-numeric: tabular-nums }
.top .blue { order: 1 }
nav.menu { order: 2; display: flex; gap: 6px; width: 100%; overflow-x: auto; scrollbar-width: none }
nav.menu a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent }
nav.menu a:hover { color: var(--ink) }
nav.menu a[aria-current="page"] { color: var(--accent-ink); background: var(--accent) }
@media (min-width: 760px) { nav.menu { width: auto; order: 2; margin-left: 24px } .top .blue { order: 3 } }

.hero { padding: 28px 0 8px }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 64px); line-height: .95; margin: 0; letter-spacing: .01em; text-wrap: balance }
.hero h1 em { color: var(--accent); font-style: normal }
.hero p { color: var(--muted); max-width: 60ch; margin: 10px 0 0 }
.aviso { margin-top: 14px; font-size: 13px; color: var(--warn); background: var(--accent-soft); border: 1px solid rgba(245, 184, 0, .35); border-radius: 10px; padding: 8px 12px }

/* Estructura de las herramientas */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; padding-top: 20px }
@media (max-width: 900px) { .grid { grid-template-columns: minmax(0, 1fr) } aside.resumen { display: none } }
.paso { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 18px }
.paso > h2 { font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: .03em; margin: 0 0 4px; display: flex; align-items: center; gap: 10px }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--body); font-weight: 700; font-size: 15px; flex: none }
.paso > p.sub { margin: 0 0 16px; color: var(--muted); font-size: 14px }

label.campo { display: grid; gap: 6px; font-weight: 600; font-size: 14px }
select, input[type=text], input[type=number], input[type=tel], textarea { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; width: 100%; font-size: 16px }
textarea { resize: vertical; min-height: 70px }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
@media (max-width: 520px) { .fila2 { grid-template-columns: 1fr } }
.hint { font-size: 12.5px; color: var(--muted); font-weight: 400 }

.pregunta { margin-top: 18px }
.pregunta > .t { font-weight: 600; font-size: 14px; margin-bottom: 8px; display: block }
.pills { display: flex; flex-wrap: wrap; gap: 8px }
.pill { border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: 14px; line-height: 1.2 }
.pill[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600 }
.pill.mala[aria-pressed="true"] { background: var(--panel-2); color: var(--warn); border-color: var(--warn) }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); cursor: pointer; font-size: 14px }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; flex: none }

/* Tarjeta de resultado dorada */
.toma { margin-top: 20px; border-radius: 14px; padding: 18px; background: linear-gradient(135deg, rgba(245, 184, 0, .2), rgba(245, 184, 0, .05)); border: 1px solid rgba(245, 184, 0, .45) }
.toma small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--muted); font-weight: 600 }
.toma .monto { font-family: var(--display); font-size: clamp(44px, 9vw, 60px); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; margin: 4px 0 }
.toma .usd { color: var(--muted); font-size: 13px }
.toma table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13.5px; font-variant-numeric: tabular-nums }
.toma td { padding: 6px 0; border-top: 1px solid rgba(255, 255, 255, .08); vertical-align: top }
.toma td:last-child { text-align: right; white-space: nowrap; padding-left: 10px }
.toma td .hint { display: block }
.pend { margin-top: 12px; font-size: 13.5px; color: var(--warn) }
.pend ul { margin: 4px 0 0; padding-left: 18px }
.vacio { color: var(--muted); font-size: 14px; padding: 6px 0 }

/* Tarjetas de equipos */
.stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px }
.eq { text-align: left; border: 1px solid var(--line); background: var(--panel-2); border-radius: 14px; padding: 14px; cursor: pointer; display: grid; gap: 4px; min-width: 0; color: inherit; text-decoration: none }
.eq[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft) }
.eq .m { font-weight: 700; font-size: 15px; line-height: 1.25 }
.eq .d { color: var(--muted); font-size: 12.5px }
.eq .p { font-family: var(--display); font-size: 26px; color: var(--accent); line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums }
.eq.solo .p { font-family: var(--body); font-size: 13px; color: var(--muted); font-weight: 500 }
.eq .acciones { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap }
.eq .acciones a { font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink) }
.eq .acciones a.prim { background: var(--accent); color: var(--accent-ink); border-color: var(--accent) }
.filtro { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px }

/* Fallas (reparación) */
.fallas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px }
.falla { text-align: left; border: 1px solid var(--line); background: var(--panel-2); border-radius: 14px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; min-width: 0 }
.falla[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft) }
.falla .m { font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 8px }
.falla .m b { color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px }
.falla .d { color: var(--muted); font-size: 12.5px }
.calidades { margin-top: 14px; display: grid; gap: 12px }

/* Pago */
.promo { border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; border: 1px solid var(--line); background: var(--panel-2) }
.promo.si { border-color: var(--accent); background: var(--accent-soft) }
.promo b { color: var(--accent) }
.dif { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px }
.dif .monto { font-family: var(--display); font-size: clamp(40px, 8vw, 54px); line-height: 1; font-variant-numeric: tabular-nums }
.dif .monto.favor { color: var(--ok) }
.cuentas { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums }
.opciones { display: grid; gap: 8px }
.op { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--panel-2); border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; width: 100% }
.op[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft) }
.op .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted) }
.op[aria-pressed="true"] .radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%) }
.op .t { font-weight: 600 }
.op .s { font-size: 12.5px; color: var(--muted) }
.op .v { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap }
.op .v small { display: block; font-weight: 400; font-size: 12px; color: var(--muted) }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); margin-left: 6px; vertical-align: 1px }

/* Enviar por WhatsApp */
.wa { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 16px; border: 0; border-radius: 14px; padding: 16px; background: var(--wa); color: #06210f; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none }
.wa[aria-disabled="true"] { opacity: .45; pointer-events: none }
.wa svg { width: 22px; height: 22px }
.legal { font-size: 12.5px; color: var(--muted); margin-top: 12px }

/* Resumen lateral (compu) y barra inferior (celular) */
aside.resumen { position: sticky; top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px }
aside h3 { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: .03em; margin: 0 0 10px }
.lin { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px }
.lin span:first-child { color: var(--muted) }
.lin b { font-variant-numeric: tabular-nums; text-align: right }
.lin.total b { color: var(--accent); font-size: 18px }
.barra { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(11, 11, 11, .94); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); display: none; z-index: 5 }
@media (max-width: 900px) { .barra { display: flex } }
.barra .wrap { display: flex; width: 100%; padding: 0; gap: 12px; align-items: center }
.barra div small { display: block; font-size: 11.5px; color: var(--muted) }
.barra div b { font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums }
.barra a { margin-left: auto; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; padding: 10px 14px; border-radius: 10px; font-size: 14px; white-space: nowrap }

/* Inicio */
.servicios { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding: 22px 0 8px }
.servicio { display: grid; gap: 8px; align-content: start; text-decoration: none; color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; position: relative; overflow: hidden }
.servicio:hover { border-color: var(--accent) }
.servicio .ico { font-size: 30px; line-height: 1 }
.servicio h2 { font-family: var(--display); font-weight: 400; font-size: 32px; letter-spacing: .03em; margin: 0; line-height: 1 }
.servicio p { margin: 0; color: var(--muted); font-size: 14px }
.servicio .ir { margin-top: 6px; font-weight: 700; color: var(--accent) }
.servicio.prox { opacity: .6 }
.seccion { padding: 24px 0 8px }
.seccion > h2 { font-family: var(--display); font-weight: 400; font-size: 34px; letter-spacing: .03em; margin: 0 0 4px }
.seccion > p { color: var(--muted); margin: 0 0 16px }

footer { color: var(--muted); font-size: 12.5px; padding: 20px 0 30px; border-top: 1px solid var(--line); margin-top: 10px }
@media (prefers-reduced-motion: no-preference) { .pill, .eq, .op, .falla, .servicio { transition: background .15s, border-color .15s } }
