﻿/* ==========================================================================
   CONSTRUCTER — Sistema visual comercial
   Paleta: azul profundo (confianza), naranja (accion), verde/ambar/rojo (estado).
   Superficies blancas, sombras suaves, degradados navy-naranja.
   Estados con etiqueta textual + chip/barra: nunca solo color.
   100% local: sin CDN.
   ========================================================================== */

:root {
  --navy: #0F172A;
  --navy-2: #1E293B;
  --navy-soft: #E8EEF8;
  --orange: #F97316;
  --orange-dark: #EA580C;
  --orange-soft: #FFF3E8;
  --green: #22C55E;
  --green-soft: #E7F8ED;
  --amber: #F59E0B;
  --amber-soft: #FFF7E6;
  --red: #DC2626;
  --red-soft: #FDECEC;
  --bg-app: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #F8FAFD;
  --border: #E6EAF2;
  --text: #0F172A;
  --text-2: #475569;
  --text-3: #64748B;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.18);
  --font-main: 'Plus Jakarta Sans', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background: #DCE3ED; color: var(--text); display: flex; justify-content: center; padding: 20px 10px; -webkit-font-smoothing: antialiased; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; display: inline-block; vertical-align: middle; flex-shrink: 0; color: inherit; }
.battery-num { font-size: .72rem; font-weight: 700; }
button { font-family: inherit; }
img { display: block; }

/* ------------------------------- Shell -------------------------------- */
.device-wrapper { width: 100%; max-width: 440px; background: #05070C; border-radius: 46px; padding: 10px; box-shadow: 0 25px 60px rgba(15,23,42,.35); position: relative; overflow: hidden; transition: max-width .3s ease; }
.device-wrapper.expanded-mode { max-width: 920px; border-radius: 26px; padding: 0; }
.device-screen { background: var(--bg-app); border-radius: 38px; overflow: hidden; position: relative; min-height: 900px; display: flex; flex-direction: column; }
.device-wrapper.expanded-mode .device-screen { border-radius: 26px; }
.status-bar { height: 44px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; font-size: .9rem; font-weight: 700; color: #FFF; background: var(--navy); }
.status-bar-icons { display: flex; align-items: center; gap: 6px; }
.app-screen-container { flex: 1; overflow-y: auto; overflow-x: hidden; padding-bottom: 26px; animation: fadeIn .26s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------- Nav ---------------------------------- */
.app-bottom-nav { height: 76px; background: #FFF; border-top: 1px solid var(--border); display: flex; justify-content: space-around; align-items: center; padding: 6px 10px 14px; position: relative; box-shadow: 0 -6px 22px rgba(15,23,42,.05); }
.nav-tab-btn { position: relative; background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--text-3); font-size: .68rem; font-weight: 700; padding: 6px 10px; border-radius: 14px; transition: color .15s ease; }
.nav-tab-btn .icon { width: 1.32rem; height: 1.32rem; }
.nav-tab-btn.active { color: var(--navy); }
.nav-tab-btn.active .icon { color: var(--orange); }
.nav-tab-btn.active::after { content: ""; position: absolute; top: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.home-indicator { position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%); width: 130px; height: 4px; background: var(--navy); border-radius: 4px; }

/* ------------------------- Encabezado Home ---------------------------- */
.app-header { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); color: #FFF; padding: 18px 18px 26px; border-radius: 0 0 28px 28px; }
.header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.header-greet { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.header-loc { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 6px 12px; font-size: .72rem; font-weight: 700; color: #E2E8F0; }
.header-loc .icon { width: .85rem; height: .85rem; color: #FDBA74; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.notif-btn { position: relative; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #FFF; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.notif-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--orange); color: #FFF; font-size: .6rem; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid var(--navy); }
.avatar-wrap { position: relative; display: inline-flex; }
.header-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.65); }
.avatar-check { position: absolute; bottom: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%; background: var(--green); color: #FFF; display: flex; align-items: center; justify-content: center; border: 2px solid var(--navy); }
.avatar-check .icon { width: .65rem; height: .65rem; }
.mode-switch { display: flex; gap: 6px; margin-top: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px; }
.mode-btn { flex: 1; border: none; background: transparent; color: #CBD5E1; border-radius: 999px; padding: 9px 8px; font-size: .72rem; font-weight: 800; cursor: pointer; transition: all .16s ease; }
.mode-btn.active { background: #FFF; color: var(--navy); }

/* ---------------------------- Buscador hero --------------------------- */
.hero-section { margin-top: -18px; position: relative; z-index: 2; }
.hero-search { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 16px; }
.hero-rotate { position: relative; height: 22px; margin-bottom: 8px; }
.hero-rotate-item { position: absolute; inset: 0; opacity: 0; font-size: .8rem; font-weight: 800; color: var(--orange-dark); animation: rotateHero 18s infinite; }
@keyframes rotateHero { 0% { opacity: 0; transform: translateY(6px); } 3% { opacity: 1; transform: translateY(0); } 17% { opacity: 1; transform: translateY(0); } 20% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 0; transform: translateY(-6px); } }
.hero-field { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--border); border-radius: 16px; padding: 10px 12px; background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(15,23,42,.04); }
.hero-field .icon:first-child { color: var(--orange); }
.hero-field input { border: none; outline: none; background: transparent; font-size: .85rem; width: 100%; color: var(--text); font-family: inherit; }
.hero-icon-btn { background: #FFF; border: 1px solid var(--border); width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; flex-shrink: 0; }
.hero-icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.hero-cta { width: 100%; margin-top: 12px; padding: 13px; font-size: .86rem; }
.hero-note { font-size: .72rem; color: var(--text-3); margin-top: 10px; text-align: center; }

/* --------------------------- Accesos 3D ------------------------------- */
.qa-3d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qa-3d { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 6px 10px; display: flex; flex-direction: column; align-items: center; gap: 7px; cursor: pointer; box-shadow: 0 6px 14px rgba(15,23,42,.07), inset 0 -2px 0 rgba(15,23,42,.04); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.qa-3d:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.qa-3d-icon { width: 40px; height: 40px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; }
.qa-3d-icon .icon { width: 1.15rem; height: 1.15rem; }
.qa-3d-lbl { font-size: .66rem; font-weight: 800; color: var(--text-2); text-align: center; line-height: 1.15; }
.qa-3d-tag { position: absolute; top: 5px; right: 5px; font-size: .5rem; font-weight: 800; text-transform: uppercase; color: #8A5A00; background: var(--amber-soft); border-radius: 6px; padding: 2px 4px; }

/* ---------------------------- Promociones ----------------------------- */
.promo-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); cursor: pointer; }
.promo-img { width: 100%; height: 180px; object-fit: cover; }
.promo-badge { position: absolute; top: 12px; left: 12px; background: var(--orange); color: #FFF; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; }
.promo-info { position: absolute; left: 14px; right: 14px; bottom: 52px; color: #FFF; }
.promo-info strong { font-size: .72rem; font-weight: 700; opacity: .9; display: block; }
.promo-title { font-size: 1.05rem; font-weight: 900; line-height: 1.15; }
.promo-sub { font-size: .74rem; opacity: .88; }
.promo-cta { position: absolute; right: 14px; bottom: 14px; }
.promo-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.promo-dots span { width: 7px; height: 7px; border-radius: 50%; background: #CBD5E1; }
.promo-dots span.on { background: var(--orange); width: 20px; border-radius: 999px; }

/* ------------------------- Operacion en vivo -------------------------- */
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--orange-dark); background: var(--orange-soft); border-radius: 999px; padding: 4px 10px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.5); } }
.live-card { background: linear-gradient(160deg, var(--navy) 0%, #16233C 100%); border-radius: var(--radius-lg); padding: 16px; color: #FFF; box-shadow: var(--shadow-lg); }
.live-head { display: flex; gap: 12px; align-items: flex-start; }
.live-thumb { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; border: 1px solid rgba(255,255,255,.18); }
.live-head-body { flex: 1; min-width: 0; }
.live-code { font-size: .6rem; letter-spacing: .07em; color: #94A3B8; font-weight: 700; }
.live-title { font-size: .95rem; font-weight: 800; line-height: 1.2; }
.live-provider { display: flex; align-items: center; gap: 5px; font-size: .7rem; color: #CBD5E1; margin-top: 4px; }
.live-provider .icon { width: .8rem; height: .8rem; color: var(--green); }
.live-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.live-state { font-size: .72rem; font-weight: 700; color: #FDBA74; background: rgba(249,115,22,.16); border: 1px solid rgba(249,115,22,.35); border-radius: 999px; padding: 4px 10px; }
.live-amount { font-size: 1.15rem; font-weight: 900; }
.live-amount small { font-size: .62rem; font-weight: 700; opacity: .7; }
.stepper-4 { display: flex; gap: 4px; margin-top: 14px; }
.seg { height: 5px; flex: 1; background: rgba(255,255,255,.18); border-radius: 5px; }
.seg.done { background: var(--green); }
.seg.current { background: var(--orange); animation: pulse 1.8s infinite; }
.stepper-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: .58rem; font-weight: 700; color: #94A3B8; }
.stepper-labels span.on { color: #FDBA74; }
.live-card .btn-orange { background: var(--orange); color: #FFF; border: none; border-radius: 999px; padding: 12px; font-size: .82rem; font-weight: 800; cursor: pointer; }
.live-card .btn-orange:hover { background: var(--orange-dark); }

/* ------------------------------- Mapa --------------------------------- */
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-img { width: 100%; height: 200px; object-fit: cover; }
.map-wrap.compact .map-img { height: 150px; }
.map-pin { position: absolute; transform: translate(-50%, -50%); }
.pin-dot { display: block; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #FFF; box-shadow: 0 2px 8px rgba(15,23,42,.35); animation: pinPop 2.4s infinite; }
.pin-ok .pin-dot { background: var(--green); }
.pin-attention .pin-dot { background: var(--orange); }
.pin-info .pin-dot { background: #3B82F6; }
@keyframes pinPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }
.pin-lbl { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); white-space: nowrap; background: rgba(15,23,42,.88); color: #FFF; font-size: .58rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.map-foot { margin-top: 8px; }

/* ------------------------------ Stats --------------------------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 6px; text-align: center; box-shadow: var(--shadow); }
.stat-val { font-size: 1.15rem; font-weight: 900; color: var(--navy); }
.stat-lbl { font-size: .58rem; font-weight: 700; color: var(--text-3); margin-top: 3px; line-height: 1.2; }

/* ------------------------------ Trust --------------------------------- */
.trust-card { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 14px; }
.trust-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 14px; background: var(--green-soft); color: #15803D; display: flex; align-items: center; justify-content: center; }
.trust-title { font-size: .84rem; font-weight: 800; }
.trust-body { font-size: .74rem; color: var(--text-3); line-height: 1.5; margin-top: 3px; }
.link-btn { background: none; border: none; color: var(--navy); font-size: .74rem; font-weight: 800; cursor: pointer; padding: 0; text-decoration: underline; }

/* ------------------------------ Base UI ------------------------------- */
.section { padding: 0 16px; margin-top: 18px; }
.section-title { font-size: .96rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.section-hint { font-size: .66rem; font-weight: 700; color: var(--text-3); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 14px; }
.page-head { padding: 18px 16px 10px; }
.page-head h1 { font-size: 1.4rem; font-weight: 900; letter-spacing: -.02em; }
.page-head .sub { font-size: .78rem; color: var(--text-3); margin-top: 3px; }
.legal-note { font-size: .66rem; color: var(--text-3); text-align: center; padding: 4px 0; }
.sub { font-size: .72rem; color: var(--text-3); line-height: 1.45; }
.thumb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.thumb-grid img { width: 100%; height: 104px; object-fit: cover; border-radius: 12px; background: #E9EDF4; }
.app-foot { margin: 22px 16px 0; padding: 16px; text-align: center; font-size: .68rem; color: var(--text-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); line-height: 1.6; }
.foot-logo { width: 34px; height: 34px; border-radius: 10px; margin: 0 auto 8px; }
.list-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px; margin-bottom: 8px; box-shadow: var(--shadow); }
.list-thumb { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #E9EDF4; }
.list-body { flex: 1; min-width: 0; }
.list-body strong { font-size: .82rem; font-weight: 800; display: block; }
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv-row { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.kv-row:last-child { border-bottom: none; padding-bottom: 0; }
.kv-row span { color: var(--text-3); }
.kv-row strong { text-align: right; font-weight: 800; }
.block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 14px; margin-top: 12px; }
.block h4 { font-size: .86rem; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.view-img { width: 100%; height: 180px; object-fit: cover; border-radius: 14px; margin-bottom: 10px; background: #E9EDF4; }

/* ------------------------------ Botones ------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; border-radius: 999px; padding: 11px 18px; font-size: .8rem; font-weight: 800; cursor: pointer; transition: transform .12s ease, background .14s ease; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--orange); color: #FFF; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-navy { background: var(--navy); color: #FFF; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-white { background: #FFF; color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: .72rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ------------------------------- Chips -------------------------------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.chip-ok { background: var(--green-soft); color: #15803D; border-color: #BBE9C8; }
.chip-info { background: var(--navy-soft); color: #1E3A8A; border-color: #C7D7F0; }
.chip-soon { background: var(--amber-soft); color: #92400E; border-color: #F3DFAE; }
.chip-partner { background: #F1ECFE; color: #5B3DBE; border-color: #DCCFFB; }
.chip-off { background: #F1F5F9; color: var(--text-3); border-color: #E2E8F0; }
.chip-attention { background: var(--amber-soft); color: #92400E; border-color: #F3DFAE; }
.chip-risk { background: var(--red-soft); color: #991B1B; border-color: #F6C7C7; }

/* ------------------------------ Filtros ------------------------------- */
.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 12px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill { flex: 0 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: .72rem; font-weight: 800; color: var(--text-2); cursor: pointer; }
.pill.active { background: var(--navy); border-color: var(--navy); color: #FFF; }

/* ---------------------------- Actividad ------------------------------- */
.group-head { display: flex; align-items: center; justify-content: space-between; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 6px 0 10px; }
.op-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: 13px; margin-bottom: 10px; }
.op-row.risk { border-left: 4px solid var(--red); }
.op-row-head { display: flex; gap: 11px; align-items: flex-start; }
.op-thumb { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex-shrink: 0; background: #E9EDF4; }
.op-body { flex: 1; min-width: 0; }
.op-type { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.op-row-title { font-size: .86rem; font-weight: 800; line-height: 1.25; }
.op-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.op-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: .68rem; color: var(--text-3); align-items: center; }
.op-meta .icon { width: .8rem; height: .8rem; margin-right: 3px; }
.sla-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; font-weight: 800; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.sla-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.sla-ok { background: var(--green); }
.sla-attention { background: var(--amber); }
.sla-risk { background: var(--red); }
.op-next { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.op-next-lbl { font-size: .64rem; color: var(--text-3); }
.op-next-val { font-size: .78rem; font-weight: 800; color: var(--navy); }
.inc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sev { font-size: .64rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.sev-alta { background: var(--red-soft); color: #991B1B; }
.sev-media { background: var(--amber-soft); color: #92400E; }
.sev-baja { background: #F1F5F9; color: var(--text-3); }
.timeline-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.timeline-row:last-child { border-bottom: none; }
.timeline-when { font-size: .66rem; font-weight: 800; color: var(--orange-dark); min-width: 68px; }

/* --------------------------- Proveedores ------------------------------ */
.prov-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 12px; }
.prov-cover { position: relative; }
.prov-img { width: 100%; height: 150px; object-fit: cover; }
.prov-verify { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; background: rgba(15,23,42,.86); color: #FFF; font-size: .62rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.prov-verify .icon { width: .8rem; height: .8rem; color: var(--green); }
.prov-sponsored { position: absolute; right: 10px; top: 10px; background: #F1ECFE; color: #5B3DBE; border: 1px solid #DCCFFB; font-size: .6rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.prov-body { padding: 13px; }
.prov-name { font-size: .92rem; font-weight: 900; }
.prov-meta { font-size: .72rem; color: var(--text-3); margin-top: 2px; }
.prov-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.prov-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.prov-gallery img { width: 100%; height: 62px; object-fit: cover; border-radius: 10px; background: #E9EDF4; }
.prov-gallery.big img { height: 92px; }
.prov-compat { font-size: .72rem; color: #1E3A8A; background: var(--navy-soft); border-radius: 12px; padding: 9px 11px; margin-top: 10px; line-height: 1.45; }

/* ------------------------------- Mapa pins ---------------------------- */
.pin-lbl { pointer-events: none; }

/* ------------------------------ Pop-up -------------------------------- */
.popup-modal { position: relative; background: var(--surface); width: 100%; max-width: 420px; margin: auto; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); animation: popIn .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(18px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.popup-hero { position: relative; }
.popup-hero img { width: 100%; height: 210px; object-fit: cover; }
.popup-badge { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(135deg, #F59E0B, var(--orange)); color: #FFF; font-size: .6rem; font-weight: 900; letter-spacing: .06em; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(249,115,22,.4); }
.popup-badge .icon { width: .8rem; height: .8rem; }
.popup-x { position: absolute; right: 12px; top: 12px; z-index: 3; background: rgba(255,255,255,.92); border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: var(--navy); }
.popup-body { padding: 18px; }
.popup-body h3 { font-size: 1.12rem; font-weight: 900; line-height: 1.2; }
.popup-body .sub { margin-top: 6px; margin-bottom: 12px; }
.benefits { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.benefits li { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; color: var(--text-2); }
.benefits li .icon { width: 1rem; height: 1rem; color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ------------------------------ Formularios --------------------------- */
.float-field { position: relative; display: block; margin-bottom: 12px; }
.float-field input, .float-field textarea, .float-field select { width: 100%; border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 13px 10px; font-size: .84rem; font-family: inherit; color: var(--text); background: var(--surface-2); outline: none; }
.float-field textarea { min-height: 92px; resize: vertical; }
.float-field > span { position: absolute; left: 13px; top: 13px; font-size: .78rem; color: var(--text-3); pointer-events: none; transition: all .15s ease; }
.float-field input:focus, .float-field textarea:focus, .float-field select:focus { border-color: var(--orange); background: #FFF; }
.float-field input:focus + span, .float-field textarea:focus + span, .float-field input:not(:placeholder-shown) + span, .float-field textarea:not(:placeholder-shown) + span { top: 4px; font-size: .6rem; font-weight: 800; color: var(--orange-dark); }
.check { display: flex; align-items: center; gap: 9px; font-size: .78rem; padding: 8px 0; }
.check input { width: 16px; height: 16px; accent-color: var(--orange); }
.hint-row { display: flex; align-items: center; gap: 8px; font-size: .7rem; color: var(--text-3); margin-top: 4px; }
.hint-row .icon { width: .9rem; height: .9rem; color: var(--navy); }
.cat-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cat-visual-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: none; padding: 0; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cat-visual-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.cat-visual-img { width: 100%; height: 92px; object-fit: cover; }
.cat-visual-lbl { display: flex; align-items: center; gap: 6px; padding: 9px; font-size: .72rem; font-weight: 800; color: var(--text); }
.cat-visual-lbl .icon { width: .95rem; height: .95rem; color: var(--orange); }

/* ------------------------------- Wizard ------------------------------- */
.wizard-steps { display: flex; align-items: center; gap: 6px; }
.wz { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.wz-num { width: 28px; height: 28px; border-radius: 50%; background: #E2E8F0; color: var(--text-3); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.wz-num .icon { width: .85rem; height: .85rem; }
.wz.current .wz-num { background: var(--orange); color: #FFF; }
.wz.done .wz-num { background: var(--green); color: #FFF; }
.wz-lbl { font-size: .6rem; font-weight: 800; color: var(--text-3); text-align: center; }
.wz.current .wz-lbl { color: var(--orange-dark); }
.progress-bar { height: 6px; background: #E2E8F0; border-radius: 6px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 6px; background: var(--orange); transition: width .35s ease; }
.progress-fill.green { background: var(--green); }
.progress-fill.amber { background: var(--amber); }
.progress-fill.navy { background: var(--navy); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.problem-card { position: relative; border: 1.5px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); padding: 0; cursor: pointer; text-align: left; transition: border-color .14s ease, transform .14s ease; }
.problem-card.active { border-color: var(--orange); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.problem-img { width: 100%; height: 74px; object-fit: cover; }
.problem-lbl { display: block; padding: 8px 8px 0; font-size: .68rem; font-weight: 800; }
.problem-desc { display: block; padding: 2px 8px 9px; font-size: .58rem; color: var(--text-3); line-height: 1.3; }
.problem-check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #FFF; display: flex; align-items: center; justify-content: center; }
.problem-check .icon { width: .7rem; height: .7rem; }
.drop-zone { border: 2px dashed #C7D2E4; border-radius: var(--radius-md); padding: 22px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface-2); cursor: pointer; }
.drop-zone .icon { width: 1.6rem; height: 1.6rem; color: var(--orange); }
.drop-zone strong { font-size: .8rem; }
.verified-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .72rem; font-weight: 800; color: #15803D; background: var(--green-soft); border-radius: 999px; padding: 6px 12px; }
.verified-line .icon { width: .85rem; height: .85rem; }
.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.select-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; padding: 9px 14px; font-size: .74rem; font-weight: 800; cursor: pointer; }
.select-chip .icon { width: .85rem; height: .85rem; opacity: 0; }
.select-chip.active { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.select-chip.active .icon { opacity: 1; }

/* ------------------------------- Ticket ------------------------------- */
.ticket { position: relative; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 18px; overflow: hidden; border: 1px solid var(--border); }
.perf { position: absolute; top: 0; bottom: 0; width: 14px; background-image: radial-gradient(circle at center, var(--bg-app) 6px, transparent 6px); background-size: 14px 22px; background-repeat: repeat-y; }
.perf.left { left: -7px; }
.perf.right { right: -7px; }
.ticket-head { display: flex; align-items: center; gap: 10px; }
.ticket-logo { width: 42px; height: 42px; border-radius: 12px; }
.ticket-head-body strong { font-size: .86rem; font-weight: 900; display: block; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; padding: 10px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.ticket-meta div span { font-size: .6rem; color: var(--text-3); font-weight: 700; display: block; }
.ticket-meta div strong { font-size: .76rem; font-weight: 800; }
.ticket-valid { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; background: var(--green-soft); color: #15803D; font-size: .64rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.ticket-valid .icon { width: .8rem; height: .8rem; }
.ticket-title { font-size: .95rem; font-weight: 900; margin-top: 12px; }
.ticket-lines { margin-top: 12px; }
.ticket-line { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--text-2); padding: 8px 0; border-bottom: 1px dashed var(--border); }
.ticket-line strong { color: var(--text); }
.ticket-total { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; background: var(--orange-soft); border-radius: 14px; padding: 12px 14px; }
.ticket-total span { font-size: .74rem; font-weight: 800; color: #9A3412; }
.ticket-total strong { font-size: 1.3rem; font-weight: 900; color: #9A3412; }
.ticket-total small { font-size: .62rem; }
.ticket-foot { font-size: .66rem; color: var(--text-3); margin-top: 10px; text-align: center; }
.accordion { margin-top: 12px; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 14px; font-size: .8rem; font-weight: 800; color: var(--text); cursor: pointer; margin-bottom: 8px; box-shadow: var(--shadow); }
.acc-head .icon { width: 1rem; height: 1rem; color: var(--text-3); transition: transform .18s ease; }
.acc-head.open .icon { transform: rotate(90deg); color: var(--orange); }
.acc-body { list-style: none; padding: 4px 4px 12px; }
.quote-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.quote-list li { font-size: .76rem; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.quote-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); margin-top: 6px; flex-shrink: 0; }
.quote-list.not li::before { background: #C4CBD6; }
.sticky-actions { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 12px 16px; background: linear-gradient(to top, var(--bg-app) 70%, rgba(244,246,250,0)); }
.sticky-actions .btn { flex: 1; }

/* ------------------------- Cuenta de Obra ----------------------------- */
.progress-triple { display: flex; flex-direction: column; gap: 12px; }
.prog-item { display: flex; flex-direction: column; gap: 5px; }
.prog-head { display: flex; justify-content: space-between; font-size: .7rem; color: var(--text-3); font-weight: 800; }
.checklist { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.check-row { display: flex; align-items: center; gap: 9px; font-size: .78rem; color: var(--text-2); }
.check-on { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #FFF; display: flex; align-items: center; justify-content: center; }
.check-on .icon { width: .7rem; height: .7rem; }
.check-off { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #CBD5E1; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.before-after figure { position: relative; }
.before-after img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.before-after figcaption { font-size: .64rem; font-weight: 800; color: var(--text-3); margin-top: 5px; text-align: center; }

/* ---------------------------- Productos ------------------------------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-img { width: 100%; height: 104px; object-fit: cover; }
.product-body { padding: 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-body strong { font-size: .74rem; font-weight: 800; line-height: 1.2; }
.product-price { font-size: .9rem; font-weight: 900; color: var(--navy); }
.product-price small { font-size: .58rem; font-weight: 700; color: var(--text-3); }
.product-body .btn { margin-top: auto; }

/* ------------------------------- Club --------------------------------- */
.club-card { background: linear-gradient(155deg, var(--navy) 0%, #1E293B 100%); color: #FFF; }
.club-card h4 { color: #FFF; }
.club-card .sub { color: #CBD5E1; }
.club-card .benefits li { color: #E2E8F0; }

/* ------------------------------ Banners ------------------------------- */
.banner { display: flex; align-items: center; gap: 10px; border-radius: var(--radius-md); padding: 12px; font-size: .76rem; border: 1px solid; margin-bottom: 10px; }
.banner .icon { width: 1.15rem; height: 1.15rem; flex-shrink: 0; }
.banner strong { display: block; font-size: .8rem; }
.banner-warn { background: var(--amber-soft); border-color: #F3DFAE; color: #92400E; }
.banner-risk { background: var(--red-soft); border-color: #F6C7C7; color: #991B1B; }
.banner-info { background: var(--navy-soft); border-color: #C7D7F0; color: #1E3A8A; }
.banner .btn { margin-left: auto; }
.empty-state { background: var(--surface); border: 1px dashed #C7D2E4; border-radius: var(--radius-md); padding: 22px 16px; text-align: center; color: var(--text-3); font-size: .8rem; line-height: 1.5; }
.info-note { background: var(--navy-soft); border: 1px solid #C7D7F0; color: #1E3A8A; border-radius: 12px; padding: 11px 12px; font-size: .72rem; line-height: 1.5; }

/* ------------------------------- Modal -------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,15,30,.6); z-index: 1900; display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(8px); }
.modal-overlay.active { display: flex; }
.modal-content { background: #FFF; width: 100%; max-width: 420px; border-radius: var(--radius-xl); padding: 20px; max-height: 86vh; overflow-y: auto; animation: popIn .26s ease-out; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.modal-head strong { font-size: .95rem; font-weight: 900; }
.modal-x { background: #F1F5F9; border: none; width: 32px; height: 32px; border-radius: 50%; font-size: 1.15rem; line-height: 1; color: var(--text-2); cursor: pointer; }
.toast-app { position: fixed; bottom: 96px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #FFF; padding: 12px 20px; border-radius: 999px; font-size: .76rem; font-weight: 700; z-index: 2100; box-shadow: var(--shadow-lg); max-width: 88vw; text-align: center; }

/* ---------------------------- Screen head ----------------------------- */
.screen-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 16px 4px; }
.btn-back { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; box-shadow: var(--shadow); }
.btn-back:hover { border-color: var(--orange); color: var(--orange-dark); }
.screen-title { flex: 1; min-width: 0; }
.screen-title h2 { font-size: 1.1rem; font-weight: 900; line-height: 1.2; margin-bottom: 6px; }
.screen-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* --------------------------- Screen mode ------------------------------ */
.screen-mode-toggle { position: fixed; top: 16px; right: 16px; z-index: 2200; background: var(--navy); color: #FFF; border: none; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .74rem; cursor: pointer; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); }
.screen-mode-toggle .icon { width: 1rem; height: 1rem; }

/* ---------------------------- Responsive ------------------------------ */
@media (min-width: 921px) { .device-wrapper.expanded-mode .qa-3d-grid { grid-template-columns: repeat(8, 1fr); } .device-wrapper.expanded-mode .stat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 480px) { body { padding: 0; } .device-wrapper { border-radius: 0; padding: 0; } .device-screen { border-radius: 0; min-height: 100vh; } .screen-mode-toggle { display: none; } }
button:focus-visible, .qa-3d:focus-visible, .pill:focus-visible, .cat-visual-card:focus-visible, .problem-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
