:root {
  --bg: #0e1116; --panel: #161b22; --panel2: #1c232d; --line: #2a333f;
  --text: #e6edf3; --muted: #8b98a7; --accent: #f97316; --accent2: #fb923c;
  --ok: #22c55e; --warn: #eab308; --bad: #ef4444; --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent2); text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: rgba(14,17,22,.9); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { font-weight: 800; letter-spacing: .5px; font-size: 19px; color: var(--text); }
.logo span { color: var(--accent); }
nav a { color: var(--muted); margin-left: 18px; font-size: 14px; }
nav a:hover, nav a.on { color: var(--text); }
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 10px 18px; font-weight: 600; cursor: pointer; font-size: 14px; background: var(--accent); color: #111; }
.btn:hover { background: var(--accent2); }
.btn.sec { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.btn.bad { background: var(--bad); color: #fff; }
.btn.ok { background: var(--ok); color: #062; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 0 0 16px; }
h2 { font-size: 24px; margin: 0 0 12px; }
h3 { font-size: 16px; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hero { padding: 56px 0 32px; }
.hero .grid { align-items: center; }
.big { font-size: clamp(40px, 7vw, 60px); font-weight: 800; letter-spacing: -1px; line-height: 1; }
.big small { font-size: 18px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--panel2); border: 1px solid var(--line); }
.pill.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.pill.sim { color: var(--warn); border-color: rgba(234,179,8,.4); }
.pill.on { color: var(--ok); border-color: rgba(34,197,94,.4); }
.pill.off { color: var(--muted); }
.pill.man { color: var(--accent2); border-color: rgba(249,115,22,.4); }
section { padding: 36px 0; }
.chart { width: 100%; height: 240px; display: block; }
.stat .v { font-size: 22px; font-weight: 700; }
.stat .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.step { counter-increment: s; }
.step h3::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #111; font-size: 13px; margin-right: 8px; }
.steps { counter-reset: s; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
input, select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.scroll { overflow-x: auto; max-height: 360px; overflow-y: auto; }
.msg { min-height: 20px; font-size: 13px; margin-top: 8px; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--ok); }
footer { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 13px; margin-top: 24px; }
.price .v { font-size: 34px; font-weight: 800; }
.g21 { grid-template-columns: 2fr 1fr; }
@media (max-width: 860px) { .g21 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hero { padding-top: 32px; } }

/* ---- Menú, carro y móvil ---- */
header.top nav { display: flex; align-items: center; gap: 18px; }
header.top nav a { margin-left: 0; }
.menuBtn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; font-size: 18px; padding: 4px 10px; cursor: pointer; }
.carro { position: relative; font-size: 18px; }
#carroN { position: absolute; top: -8px; right: -10px; background: var(--accent); color: #111; font-size: 11px; font-weight: 700; border-radius: 99px; min-width: 18px; height: 18px; display: none; place-items: center; padding: 0 4px; }
@media (max-width: 900px) {
  .menuBtn { display: block; }
  header.top nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--panel); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 16px; gap: 6px; }
  body.menuAbierto header.top nav { display: flex; }
  header.top nav a { display: block; padding: 8px 0; }
  header.top nav .btn { text-align: center; }
}

/* ---- Tienda / servicios ---- */
.prod { display: flex; flex-direction: column; gap: 10px; }
.prod .img { aspect-ratio: 16/10; border-radius: 10px; background: linear-gradient(135deg, #1f2833, #121820); display: grid; place-items: center; border: 1px solid var(--line); }
.prod .img svg { width: 46%; height: auto; }
.prod .precio { font-size: 22px; font-weight: 800; }
.prod .antes { color: var(--muted); text-decoration: line-through; font-size: 14px; margin-left: 6px; font-weight: 500; }
.prod .acciones { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 8px; border-radius: 6px; background: rgba(249,115,22,.15); color: var(--accent2); }
.tag.gris { background: var(--panel2); color: var(--muted); }
.cant { width: 70px; }

/* ---- Estados ---- */
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.st.pendiente_pago, .st.pendiente, .st.solicitada { color: var(--warn); border-color: rgba(234,179,8,.4); }
.st.pagado, .st.confirmada, .st.activa, .st.despachado { color: var(--ok); border-color: rgba(34,197,94,.4); }
.st.entregado, .st.realizada { color: #60a5fa; border-color: rgba(96,165,250,.4); }
.st.cancelado, .st.cancelada, .st.pausada { color: var(--muted); }

/* ---- Agenda ---- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .dn { font-size: 11px; color: var(--muted); text-align: center; text-transform: uppercase; }
.cal button { height: 40px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); font-size: 14px; cursor: not-allowed; }
.cal button.libre { color: var(--text); cursor: pointer; border-color: #3a4655; background: var(--panel2); }
.cal button:disabled { opacity: .35; }
.cal button.libre:hover { border-color: var(--accent); }
.cal button.sel { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }
.horas { display: flex; flex-wrap: wrap; gap: 8px; }
.horas button { border: 1px solid #3a4655; background: var(--bg); color: var(--text); border-radius: 8px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.horas button.sel { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 700; }

/* ---- Ventana modal ---- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; z-index: 20; }
.modal.abierto { display: flex; }
.modal .card { width: 100%; max-width: 640px; }
.cerrar { float: right; background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; }

/* ---- Pestañas ---- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 10px 14px; cursor: pointer; font-size: 14px; border-bottom: 2px solid transparent; }
.tabs button.on { color: var(--text); border-color: var(--accent); }
.vacio { color: var(--muted); padding: 24px; text-align: center; }
textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; min-height: 80px; }
.aviso { border: 1px solid rgba(234,179,8,.35); background: rgba(234,179,8,.08); color: #fde68a; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.resumen td:last-child, .resumen th:last-child { text-align: right; }
footer .row a { color: var(--muted); }

/* ---- Mercado Pago ---- */
.btn.mp { background: #009ee3; color: #fff; }
.btn.mp:hover { background: #0086c3; }
.banner { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; border: 1px solid var(--line); }
.banner.ok { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); color: #bbf7d0; }
.banner.warn { background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.35); color: #fde68a; }
.banner.err { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.4); color: #fecaca; }

/* ---- Imágenes de productos y planes ---- */
.prod .img img, .plan-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod .img { overflow: hidden; }
.plan-img { aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--panel2); margin-bottom: 4px; }
.miniatura { width: 96px; aspect-ratio: 16/10; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--panel2); display: grid; place-items: center; }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.subir { position: relative; overflow: hidden; }
.subir input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
