/* ==========================================================================
   CONSTRUCTER — Sistema visual comercial
   Paleta: azul profundo (confianza), naranja (accion), verde/ambar/rojo (estado).
   Superficies blancas, sombras suaves, degradados navy-naranja.
   100% local: sin CDN.
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-main);
  background: var(--bg-app);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-dark); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.02em; font-weight: 800; color: var(--text); }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1rem; }
h4 { font-size: 0.9rem; }
.muted { color: var(--text-3); }
.small { font-size: .84rem; }
.eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
[hidden] { display: none !important; }

/* ------------------------------- SVG Sprite & Icons -------------------------------- */
.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; }

/* ------------------------------- Shell Móvil & Base -------------------------------- */
.mobile {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 84px;
}
.mobile main { flex: 1 0 auto; padding: 20px 16px 32px; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 16px 6px; }
.topbar .grow { flex: 1; min-width: 0; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
  flex-shrink: 0; box-shadow: var(--shadow); transition: all .14s ease;
}
.icon-btn:hover { border-color: var(--orange); color: var(--orange); }
.icon-btn.dark { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ------------------------------- Navegación Inferior (4 pestañas) -------------------------------- */
.bottom-nav, .app-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  width: 100%; height: 72px;
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: center;
  padding: 6px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 1000; box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}
.bottom-nav a, .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 14px; border-radius: 14px; text-decoration: none;
  transition: color .15s ease;
}
.bottom-nav a .icon, .nav-tab-btn .icon { width: 1.3rem; height: 1.3rem; }
.bottom-nav a.active, .nav-tab-btn.active { color: var(--navy); }
.bottom-nav a.active .icon, .nav-tab-btn.active .icon { color: var(--orange); }
.bottom-nav a.active::after, .nav-tab-btn.active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
}

/* ------------------------- Encabezado Navy (Constructer) ---------------------------- */
.app-header {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #FFF; padding: 20px 18px 26px; border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.header-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.header-greet { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; color: #FFF; }
.header-loc {
  display: inline-flex; align-items: center; gap: 6px; 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; text-decoration: none;
}
.notif-badge, .bell-count {
  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); background: var(--navy-2);
}
.header-avatar-initials {
  width: 44px; height: 44px; border-radius: 50%; background: var(--navy-2);
  color: #FFF; font-weight: 800; font-size: 14px; display: flex; align-items: center;
  justify-content: center; 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; padding: 0 16px; }
.hero-search { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 18px; }
.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 14px;
  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, .hero-field textarea {
  border: none; outline: none; background: transparent; font-size: .86rem; width: 100%;
  color: var(--text); font-family: inherit; resize: none;
}
.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: .88rem; }
.hero-note { font-size: .72rem; color: var(--text-3); margin-top: 10px; text-align: center; }

/* --------------------------- Cuadrícula de Servicios (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; text-decoration: none;
  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: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--orange-soft); color: var(--orange);
  display: flex; align-items: center; justify-content: center;
}
.qa-3d-icon .icon { width: 1.25rem; height: 1.25rem; stroke: currentColor; }
.qa-3d-lbl { font-size: .68rem; 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: .52rem; font-weight: 800;
  text-transform: uppercase; color: #8A5A00; background: var(--amber-soft);
  border-radius: 6px; padding: 2px 4px;
}

/* ---------------------------- Promociones (Retail Media) ----------------------------- */
.promo-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); cursor: pointer; background: var(--navy); color: #FFF;
}
.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; text-shadow: 0 2px 6px rgba(0,0,0,0.9); }
.promo-info strong { font-size: .76rem; font-weight: 800; color: #FDBA74; text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 2px; }
.promo-title { font-size: 1.12rem; font-weight: 800; line-height: 1.22; color: #FFF; text-shadow: 0 2px 8px rgba(0,0,0,0.95); margin-bottom: 4px; }
.promo-sub { font-size: .76rem; opacity: .96; color: #F1F5F9; text-shadow: 0 1px 4px rgba(0,0,0,0.9); line-height: 1.35; }
.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; }

/* ------------------------- Operación 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: 18px; 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: .62rem; letter-spacing: .07em; color: #94A3B8; font-weight: 700; }
.live-title { font-size: .95rem; font-weight: 800; line-height: 1.25; color: #FFF; }
.live-provider { display: flex; align-items: center; gap: 5px; font-size: .72rem; 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; color: #FFF; }
.live-amount small { font-size: .62rem; font-weight: 700; opacity: .7; }
.stepper-4 { display: flex; gap: 5px; 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: .6rem; font-weight: 700; color: #94A3B8; }
.stepper-labels span.on { color: #FDBA74; }

/* ------------------------------- Pop-up Promocional -------------------------------- */
.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; }
.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: .62rem; 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); display: grid; place-items: center;
}
.popup-body { padding: 20px; }
.popup-body h3 { font-size: 1.15rem; font-weight: 900; line-height: 1.25; margin-bottom: 6px; }
.popup-body .sub { font-size: .78rem; color: var(--text-3); margin-bottom: 14px; line-height: 1.4; }
.benefits { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 9px; }
.benefits li { display: flex; gap: 8px; align-items: flex-start; font-size: .8rem; color: var(--text-2); }
.benefits li .icon { width: 1rem; height: 1rem; color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ------------------------------- Mapa & Tracking --------------------------------- */
.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; display: block; }
.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; font-size: .72rem; color: var(--text-3); line-height: 1.45; }

/* ------------------------------ Stats & Contadores --------------------------------- */
.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 & Garantía --------------------------------- */
.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-icon .icon { width: 1.25rem; height: 1.25rem; }
.trust-title { font-size: .84rem; font-weight: 800; color: var(--navy); }
.trust-body { font-size: .74rem; color: var(--text-3); line-height: 1.5; margin-top: 3px; }

/* ------------------------------ Aviso de Privacidad / Banner --------------------------------- */
.privacy-banner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 12px 16px; margin: 16px 0; box-shadow: var(--shadow); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; font-size: .74rem; color: var(--text-2);
}
.privacy-banner-text { flex: 1; min-width: 0; line-height: 1.4; }
.privacy-banner-btn {
  background: var(--navy); color: #FFF; border: none; border-radius: 999px;
  padding: 6px 14px; font-size: .7rem; font-weight: 800; cursor: pointer; white-space: nowrap;
}
.legal-note { font-size: .66rem; color: var(--text-3); text-align: center; padding: 6px 0; line-height: 1.5; }

/* ------------------------------ Superficies y Componentes Core ------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card.dashed { border-style: dashed; border-color: var(--line-strong); box-shadow: none; }
.card.selected { border: 2px solid var(--orange); background: var(--orange-soft); }
.card.dark {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; border-color: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.card.dark .muted { color: #A9B3C1; }
.row { display: flex; align-items: center; gap: 12px; }
.row .grow { flex: 1; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-title { font-size: .96rem; font-weight: 800; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 24px 0 12px; }
.section-hint { font-size: .68rem; font-weight: 700; color: var(--text-3); }

.kpi .value { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.kpi .label { font-size: .82rem; color: var(--text-3); }

/* ------------------------------ Botones ------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 11px 20px; font-family: inherit; font-size: .84rem;
  font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .12s ease, background .14s ease, filter .14s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn-primary, .btn.primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.32); }
.btn-primary:hover, .btn.primary:hover { background: var(--orange-dark); }
.btn-navy, .btn.dark { background: var(--navy); color: #fff; }
.btn-navy:hover, .btn.dark:hover { background: var(--navy-2); }
.btn-ghost, .btn.ghost { background: var(--surface); color: var(--text-2); border: 1.5px solid var(--border); }
.btn-ghost:hover, .btn.ghost:hover { border-color: var(--orange); color: var(--orange-dark); }
.btn-white { background: #FFF; color: var(--navy); }
.btn-sm, .btn.small, .btn.sm { padding: 8px 14px; font-size: .74rem; }
.link-btn { background: none; border: 0; color: var(--orange-dark); font-family: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; padding: 0; text-decoration: underline; }

/* ------------------------------- Chips & Badges -------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; text-decoration: none;
}
.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; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge.ok { background: var(--green-soft); color: #15803D; border-color: #BBE9C8; }
.badge.warn { background: var(--amber-soft); color: #92400E; border-color: #F3DFAE; }
.badge.danger { background: var(--red-soft); color: var(--red); border-color: #F6C7C7; }
.badge.dark { background: var(--navy); color: #fff; border-color: var(--navy); }

/* -------------------------- Formularios y Campos -------------------------- */
label.field { display: block; margin-top: 14px; }
label.field > span { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: .88rem; color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: .85rem; color: var(--text-2); }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--orange); flex-shrink: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented button {
  padding: 11px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; color: var(--text-2);
}
.segmented button.active { border: 2px solid var(--orange); background: var(--orange-soft); color: var(--orange-dark); }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .86rem; margin-top: 14px; }
.alert.error { background: var(--red-soft); color: #991B1B; border: 1px solid #F6C7C7; }
.alert.ok { background: var(--green-soft); color: #15803D; border: 1px solid #BBE9C8; }
.alert.warn { background: var(--amber-soft); color: #92400E; border: 1px solid #F3DFAE; }

/* -------------------------- Modal & Toast -------------------------- */
.modal-content {
  background: #FFF; width: 100%; max-width: 440px; border-radius: var(--radius-xl);
  padding: 24px; max-height: 88vh; overflow-y: auto; animation: popIn .26s ease-out; box-shadow: var(--shadow-lg);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.modal-head strong { font-size: 1.05rem; font-weight: 900; }
.modal-x {
  background: #F1F5F9; border: none; width: 32px; height: 32px; border-radius: 50%;
  font-size: 1.2rem; line-height: 1; color: var(--text-2); cursor: pointer; display: grid; place-items: center;
}
.toast-app {
  position: fixed; bottom: 88px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: #FFF; padding: 12px 22px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; z-index: 2100; box-shadow: var(--shadow-lg);
  max-width: 88vw; text-align: center; border: 1px solid rgba(255,255,255,.15);
}

/* -------------------------- Stepper & Wizard -------------------------- */
.stepper { display: flex; align-items: flex-start; margin: 18px 0 20px; }
.stepper .step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-3); width: 56px; text-align: center; }
.stepper .step .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--border); background: var(--surface); font-weight: 800; font-size: .8rem; }
.stepper .step.done .n { background: var(--green); border-color: var(--green); color: #fff; }
.stepper .step.current .n { background: var(--orange); border-color: var(--orange); color: #fff; }
.stepper .step.current { color: var(--navy); font-weight: 800; }
.stepper .bar { flex: 1; height: 2px; background: var(--border); margin-top: 15px; }
.stepper .bar.done { background: var(--green); }

/* -------------------------- Splash Screen -------------------------- */
.splash {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-color: var(--navy);
  background-image: radial-gradient(circle at 20% 90%, rgba(249,115,22,.18), transparent 40%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  color: #fff; text-align: center; padding: 24px;
}
.splash .mark {
  width: 84px; height: 84px; border-radius: 24px; background: var(--orange);
  display: grid; place-items: center; font-size: 2.8rem; font-weight: 800; color: #FFF;
  box-shadow: 0 12px 32px rgba(249,115,22,.4);
}
.splash h1 { font-size: 2.1rem; margin-top: 24px; color: #FFF; font-weight: 900; }
.splash .progress { width: 140px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); margin: 44px auto 14px; overflow: hidden; }
.splash .progress i { display: block; height: 100%; width: 30%; background: var(--orange); border-radius: 4px; animation: load 1.4s ease-in-out infinite; }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(460%); } }

/* -------------------------- Drawer Móvil -------------------------- */
.trazzo-drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.trazzo-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.trazzo-drawer-panel {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--navy); color: #fff; z-index: 1001; transform: translateX(-100%);
  transition: transform .28s ease; display: flex; flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35); overflow-y: auto;
}
.trazzo-drawer-backdrop.open .trazzo-drawer-panel { transform: translateX(0); }
.trazzo-drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 18px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.trazzo-drawer-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; }
.trazzo-drawer-close {
  background: rgba(255, 255, 255, 0.08); border: 0; color: #D5DBE3; width: 32px; height: 32px;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer;
}
.trazzo-drawer-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.trazzo-drawer-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: #CBD5E1; text-decoration: none; font-size: .92rem; font-weight: 700; transition: all .15s ease;
}
.trazzo-drawer-nav a.active, .trazzo-drawer-nav a:hover {
  background: rgba(249, 115, 22, 0.2); color: #fff; font-weight: 800;
}
.trazzo-drawer-nav a .icon { width: 1.25rem; height: 1.25rem; color: var(--orange); }
.trazzo-drawer-footer { padding: 16px 18px 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.trazzo-drawer-logout {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
  padding: 11px 14px; border-radius: 12px; font-family: inherit; font-weight: 700; cursor: pointer;
}
.trazzo-drawer-logout:hover { background: rgba(220, 38, 38, 0.25); border-color: var(--red); color: #FCA5A5; }

/* -------------------------- Responsivo: Escritorio (>= 1024px) -------------------------- */
.hub-aside { display: none; }

@media (min-width: 1024px) {
  .mobile.hub-shell {
    width: 100%; max-width: none; min-height: 100vh; margin: 0; padding-bottom: 0;
    display: grid !important; grid-template-columns: 260px minmax(0, 1fr) !important;
    overflow: visible; background: var(--bg-app);
  }
  .mobile.hub-shell > .hub-aside {
    grid-column: 1; grid-row: 1; display: flex !important; flex-direction: column !important;
    position: sticky; top: 0; width: 260px; height: 100vh; padding: 24px 16px;
    background: var(--navy); color: #FFF; z-index: 50; border-right: 1px solid var(--navy-2);
    box-shadow: var(--shadow-md); overflow-y: auto;
  }
  .hub-brand {
    display: flex; align-items: center; gap: 12px; padding: 0 10px 24px;
    font-weight: 800; font-size: 1.15rem; color: #FFF;
  }
  .hub-brand img { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; }
  .hub-aside nav { display: grid; gap: 4px; }
  .hub-aside nav a, .hub-logout {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px;
    border: 0; border-radius: 12px; background: transparent; color: #CBD5E1;
    text-decoration: none; font-family: inherit; font-size: .88rem; font-weight: 700;
    text-align: left; cursor: pointer; transition: all .15s ease;
  }
  .hub-aside nav a:hover, .hub-aside nav a.active, .hub-logout:hover {
    background: rgba(249,115,22,.18); color: #fff;
  }
  .hub-aside nav a.active { border-left: 3px solid var(--orange); }
  .hub-aside .icon { width: 1.2rem; height: 1.2rem; flex-shrink: 0; color: inherit; }
  .hub-aside-footer { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; }

  .mobile.hub-shell > main.hub-main {
    grid-column: 2; grid-row: 1; width: 100%; max-width: 1240px; min-width: 0;
    margin: 0 auto; padding: 32px 40px 64px;
  }
  .mobile.hub-shell > .bottom-nav,
  .mobile.hub-shell > .app-bottom-nav {
    display: none !important;
  }
}

/* ---------- Consola web (Trust & Ops Center) ---------- */
.console {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--bg-app, #F8FAFC);
}
.console aside {
  background: #0F172A;
  color: #FFFFFF;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.console aside .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #FFFFFF;
  padding: 0 8px 24px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}
.console aside .logo-mark {
  width: 24px;
  height: 24px;
  background: var(--constructer-amber, #E07B00);
  border-radius: 6px;
  display: inline-block;
  flex-shrink: 0;
}
.console aside nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.console aside nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #94A3B8;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.console aside nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  text-decoration: none !important;
}
.console aside nav a.active {
  background: rgba(224, 123, 0, 0.18);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none !important;
}
.console aside nav a [data-ic] {
  color: var(--constructer-amber, #E07B00);
  display: inline-flex;
  align-items: center;
}
.console aside .who {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 8px 0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.console > section {
  padding: 32px 40px;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bg-app, #F8FAFC);
}
.console > section h1 {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.kpis .card.kpi, .card.kpi {
  background: #FFFFFF;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  margin: 0;
}
.kpis .card.kpi .value, .card.kpi .value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 6px;
}
.kpis .card.kpi .label, .card.kpi .label {
  font-size: 12.5px;
  color: #64748B;
}
.table-card {
  background: #FFFFFF;
  border: 1px solid var(--border, #E2E8F0);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.table-card header {
  padding: 18px 22px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border, #E2E8F0);
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #FFFFFF;
}
table.data th {
  background: #0F172A;
  color: #FFFFFF;
  text-align: left;
  font-weight: 600;
  padding: 13px 18px;
  font-size: 13px;
  letter-spacing: 0.02em;
  border: none;
}
table.data td {
  padding: 14px 18px;
  border-top: 1px solid var(--border, #E2E8F0);
  vertical-align: middle;
  color: #1E293B;
}
table.data tr.clickable {
  cursor: pointer;
  transition: background 0.15s ease;
}
table.data tr.clickable:hover td {
  background: #F8FAFC;
}
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
  z-index: 100;
}
.drawer[hidden] {
  display: none !important;
}
.drawer .panel {
  width: min(580px, 100%);
  background: #FFFFFF;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 28px;
  box-shadow: -8px 0 32px rgba(15, 27, 45, 0.15);
  animation: slideDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 900px) {
  .console {
    grid-template-columns: 1fr;
  }
  .console aside {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    justify-content: space-between;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .console aside .brand {
    padding: 0;
    border-bottom: none;
    margin-bottom: 0;
  }
  .console aside nav {
    display: none;
  }
  .console aside .who {
    display: none;
  }
  .console > section {
    padding: 20px 16px;
  }
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}
.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
@media (min-width: 901px) {
  .hamburger-btn {
    display: none !important;
  }
}
.trazzo-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.trazzo-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.trazzo-drawer-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: #0F1B2D;
  color: #fff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}
.trazzo-drawer-backdrop.open .trazzo-drawer-panel {
  transform: translateX(0);
}
.trazzo-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.trazzo-drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
}
.trazzo-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: #D5DBE3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.trazzo-drawer-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.trazzo-drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: #D5DBE3;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.trazzo-drawer-nav a.active,
.trazzo-drawer-nav a:hover {
  background: rgba(224, 123, 0, 0.22);
  color: #fff;
  font-weight: 600;
}
.trazzo-drawer-footer {
  padding: 16px 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* -------------------------- Focus Visible & Accesibilidad -------------------------- */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange); outline-offset: 2px;
}

/* ==========================================================================
   BLOQUE D: Encabezado público, Footer común, Páginas Legales y Home Constructer
   ========================================================================== */

/* Header Público Común */
.constructer-public-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.constructer-public-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
}
.public-brand .brand-logo-badge {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.public-brand .brand-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.public-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.public-nav-links a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.public-nav-links a:hover,
.public-nav-links a.active {
  color: #FFFFFF;
}
.public-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.public-header-actions .btn-login {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}
.public-header-actions .btn-login:hover {
  background: rgba(255, 255, 255, 0.08);
}
.public-header-actions .btn-register {
  background: var(--orange);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 9px;
  transition: background 0.15s ease;
}
.public-header-actions .btn-register:hover {
  background: var(--orange-dark);
}

@media (max-width: 768px) {
  .public-nav-links {
    display: none;
  }
  .constructer-public-header-inner {
    padding: 12px 16px;
  }
}

/* Footer Común Constructer (D3) */
.constructer-footer {
  background: var(--navy);
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-main);
  margin-top: auto;
}
.constructer-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-brand-col .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #94A3B8;
  margin: 0 0 14px;
  max-width: 320px;
}
.footer-legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #FDBA74;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  margin-bottom: 14px;
}
.footer-links, .footer-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
}
.footer-links a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--orange);
  text-decoration: underline;
}
.footer-meta-list li {
  color: #94A3B8;
  line-height: 1.4;
}
.footer-meta-list strong, .footer-meta-list span.lbl {
  color: #CBD5E1;
  font-weight: 600;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 24px;
  background: rgba(15, 23, 42, 0.6);
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  color: #64748B;
  flex-wrap: wrap;
}
.footer-bottom-inner .demo-tag {
  color: #F97316;
  font-weight: 700;
  background: rgba(249, 115, 22, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
}

@media (max-width: 820px) {
  .constructer-footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 16px 24px;
  }
  .footer-bottom {
    padding: 16px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Páginas Legales & ARCO (D1) */
.legal-page-body {
  background: var(--bg-app);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.legal-main-container {
  max-width: 860px;
  margin: 36px auto 60px;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}
.legal-card-sheet {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 40px 44px;
}
.legal-banner-draft {
  background: #FFF7ED;
  border: 1px solid #FDBA74;
  border-left: 5px solid var(--orange);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-banner-draft-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.legal-banner-draft-text strong {
  display: block;
  color: #9A3412;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.legal-banner-draft-text p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #C2410C;
  line-height: 1.4;
}
.legal-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.legal-header .legal-version {
  font-size: 12.5px;
  color: var(--text-3);
  margin-bottom: 24px;
}
.legal-content h2 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.legal-content p, .legal-content li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0 0 12px;
}
.legal-content ul, .legal-content ol {
  padding-left: 20px;
  margin: 0 0 16px;
}
.placeholder-tag {
  background: #F1F5F9;
  border: 1px dashed #94A3B8;
  color: #475569;
  font-family: monospace;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Formulario ARCO / Eliminar Datos */
.arco-form-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}
.arco-form-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--navy);
}
.arco-form-box p {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 16px;
}
.arco-field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.arco-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arco-field label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}
.arco-field input, .arco-field textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 13.5px;
  background: #FFFFFF;
}
.arco-field input:focus, .arco-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.arco-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.4;
  margin-top: 4px;
}
.arco-confirm-check input {
  margin-top: 2px;
}
.arco-submit-btn {
  background: var(--orange);
  color: #FFFFFF;
  border: none;
  border-radius: 9px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  align-self: flex-start;
}
.arco-submit-btn:hover {
  background: var(--orange-dark);
}
.arco-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 600px) {
  .legal-card-sheet {
    padding: 24px 18px;
    border-radius: 14px;
  }
  .legal-main-container {
    margin: 20px auto 40px;
    padding: 0 14px;
  }
  .legal-header h1 {
    font-size: 23px;
  }
}

/* Home Público (D4) */
.home-page-body {
  background: var(--bg-app);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.home-hero-section {
  background: var(--navy);
  background-image: 
    radial-gradient(circle at 18% 25%, rgba(249, 115, 22, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 82% 75%, rgba(30, 41, 59, 0.5) 0%, transparent 45%);
  color: #FFFFFF;
  padding: 72px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.home-hero-container {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.home-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #FDBA74;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.home-hero-title {
  color: #FFFFFF;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
.home-hero-title span.accent {
  color: var(--orange);
}
.home-hero-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 680px;
  margin: 0 auto 36px;
}
.home-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.home-btn-primary {
  background: var(--orange);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  transition: all 0.15s ease;
}
.home-btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}
.home-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.15s ease;
}
.home-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* Home: Accesos por Perfil (D4) */
.home-profiles-section {
  max-width: 1100px;
  margin: -40px auto 48px;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}
.home-profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.home-profile-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-profile-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.profile-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.profile-tag.client {
  background: var(--navy-soft);
  color: var(--navy);
}
.profile-tag.partner {
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.home-profile-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 10px;
}
.home-profile-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 18px;
}
.profile-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.profile-features-list li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-features-list li svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}
.home-profile-card .card-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.home-profile-card .card-cta.client-cta {
  background: var(--navy);
  color: #FFFFFF;
}
.home-profile-card .card-cta.client-cta:hover {
  background: var(--navy-2);
}
.home-profile-card .card-cta.partner-cta {
  background: var(--orange);
  color: #FFFFFF;
}
.home-profile-card .card-cta.partner-cta:hover {
  background: var(--orange-dark);
}

/* Home: Cómo funciona en 4 pasos (D4) */
.home-steps-section {
  max-width: 1100px;
  margin: 32px auto 60px;
  padding: 0 20px;
}
.home-section-head {
  text-align: center;
  margin-bottom: 40px;
}
.home-section-head h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.home-section-head p {
  font-size: 14.5px;
  color: var(--text-3);
  margin: 0;
}
.home-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-item {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.step-item h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
}
.step-item p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

@media (max-width: 900px) {
  .home-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .home-hero-title {
    font-size: 30px;
  }
  .home-hero-subtitle {
    font-size: 14.5px;
  }
  .home-profiles-grid {
    grid-template-columns: 1fr;
  }
  .home-steps-grid {
    grid-template-columns: 1fr;
  }
}

