@charset "UTF-8";
/* Tipografías alojadas en el propio servidor (sin Google Fonts: ningún dato del visitante sale a terceros). Licencia OFL. */
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono-SemiBold.woff2") format("woff2"); font-weight: 600 900; font-display: swap; }
/* DeCA Controller · sistema de diseño v1.7
   Base neutra y limpia (estilo producto SaaS / IA), un solo acento de marca: amarillo alta visibilidad.
   Tipografía Geist. Las pantallas del conductor priorizan contraste y áreas táctiles grandes. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f5;
  --border: #e4e4e7;
  --border-2: #d4d4d8;
  --text: #0a0a0b;
  --text-2: #52525b;
  --text-3: #71717a;
  --brand: #ffd60a;
  --brand-hover: #ffe14d;
  --brand-border: #e6bd00;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --err: #b42318;
  --err-soft: #fef3f2;
  --warn-soft: #fffaeb;
  --warn-border: #f5c33b;
  --ink: #0a0a0b;
  --ink-2: #18181b;
  --r: 12px;
  --r-lg: 16px;
  --sombra: 0 1px 2px rgba(10, 10, 11, .04), 0 1px 3px rgba(10, 10, 11, .06);
  --sombra-lg: 0 12px 32px -12px rgba(10, 10, 11, .18), 0 2px 6px rgba(10, 10, 11, .05);
  --fuente: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Compatibilidad con nombres anteriores */
  --asfalto: var(--ink); --asfalto-2: var(--ink-2); --hormigon: var(--surface-2); --papel: var(--bg); --blanco: var(--surface);
  --linea: var(--border); --texto-2: var(--text-2); --altavis: var(--brand); --altavis-borde: var(--brand-border);
  --senal: var(--accent); --senal-suave: var(--accent-soft); --ok-suave: var(--ok-soft); --error: var(--err); --error-suave: var(--err-soft);
  --aviso-suave: var(--warn-soft);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fuente); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11"; }
a { color: var(--accent); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: 1.6rem; font-weight: 650; }
h2 { font-size: 1.1rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.suave { color: var(--text-2); }
.peq { font-size: .85rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.oculto { display: none !important; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); color: var(--text);
  font: inherit; font-weight: 550; font-size: .95rem; text-decoration: none; cursor: pointer; box-shadow: var(--sombra);
  transition: background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn-primario { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primario:hover { background: #27272a; }
.btn-altavis { background: var(--brand); border-color: var(--brand-border); color: var(--ink); font-weight: 650; font-size: 1.15rem;
  min-height: 60px; width: 100%; border-radius: 14px; }
.btn-altavis:hover { background: var(--brand-hover); }
.btn-altavis:disabled { background: var(--surface-2); border-color: var(--border); color: var(--text-3); cursor: not-allowed; box-shadow: none; }
.btn-peligro { color: var(--err); border-color: #f4c7c3; }
.btn-peligro:hover { background: var(--err-soft); }
.btn-bloque { width: 100%; }
.btn-peq { min-height: 32px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }

/* ---------- Avisos y estados ---------- */
.aviso { padding: 12px 14px; border-radius: var(--r); margin: 0 0 16px; border: 1px solid; font-size: .95rem; }
.aviso-ok { background: var(--ok-soft); border-color: #abefc6; color: #054f31; }
.aviso-error { background: var(--err-soft); border-color: #fecdca; color: #7a271a; }
.aviso-info { background: var(--warn-soft); border-color: #fedf89; color: #7a4a00; }
.err { color: var(--err); font-weight: 550; font-size: .88rem; margin: 6px 0 0; }
.estado { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.estado-emitido { background: var(--accent-soft); color: var(--accent); border-color: #c7d7fe; }
.estado-finalizado { background: var(--ok-soft); color: var(--ok); border-color: #abefc6; }
.estado-sustituido { background: var(--surface-2); color: var(--text-3); border-color: var(--border); text-decoration: line-through; }
.estado-anulado { background: var(--err-soft); color: var(--err); border-color: #fecdca; }

/* ---------- Formularios ---------- */
label.campo { display: block; margin: 0 0 16px; }
label.campo > span { display: block; font-weight: 550; font-size: .9rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; font: inherit; color: inherit; background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 10px; box-shadow: inset 0 1px 1px rgba(10,10,11,.03); transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
textarea { min-height: 84px; resize: vertical; }
input[type=file] { font: inherit; font-size: .9rem; }

/* ---------- Tarjetas, tablas, datos ---------- */
.caja { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin: 0 0 20px; box-shadow: var(--sombra); }
.caja > h2:first-child { margin-bottom: 14px; }
.tabla-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sombra); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fcfcfd; }
th { background: var(--surface); font-size: .75rem; color: var(--text-3); font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
tr.inactivo td { color: var(--text-3); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td a { font-weight: 550; text-decoration: none; }
td a:hover { text-decoration: underline; }
.datos { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 4px 16px; margin: 0 0 16px; }
.datos div { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.datos div:last-child { border-bottom: 0; }
.datos dt { color: var(--text-3); font-size: .88rem; }
.datos dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.rejilla-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .rejilla-2 { grid-template-columns: 1fr; } }
.form-ancho { max-width: 640px; }
.linea-botones { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.enlace-copia { display: flex; gap: 8px; }
.enlace-copia input { font-family: var(--mono); font-size: .8rem; }
.qr-peq svg { width: 180px; height: 180px; border: 1px solid var(--border); border-radius: 12px; padding: 6px; background: #fff; }
.opcion { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; margin: 0 0 8px; border: 1px solid var(--border-2);
  border-radius: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s; }
.opcion:hover { border-color: #a1a1aa; }
.opcion input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.opcion:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); background: #fff; }
.opcion .o-sub { display: block; font-size: .83rem; color: var(--text-3); font-weight: 400; }
.opcion-otra > span { display: block; flex: 1 1 0; min-width: 0; }
.opcion-otra input[type=text] { display: block; width: 100%; margin-top: 6px; text-transform: uppercase; font-family: var(--mono); }
.vacio { padding: 10px; color: var(--text-3); }
.matriz th, .matriz td { text-align: center; }
.matriz th:first-child, .matriz td:first-child { text-align: left; }
.matriz input { width: 18px; height: 18px; accent-color: var(--ink); }
.cifras { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 20px; }
.cifras > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sombra); }
.cifras b { display: block; font-size: 1.7rem; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cifras span { color: var(--text-3); font-size: .85rem; }
.cifras a { color: inherit; }
.filtros { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filtros label span { display: block; font-size: .78rem; color: var(--text-3); margin-bottom: 4px; font-weight: 550; }
.barras { display: flex; align-items: flex-end; gap: 10px; min-height: 170px; overflow-x: auto; padding-top: 6px; }
.barra { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 38px; }
.barra-col { width: 26px; background: var(--ink); border-radius: 6px 6px 2px 2px; }
.barra-valor { font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.barra-etq { font-size: .75rem; color: var(--text-3); }
.envio-rejilla { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: start; }
@media (max-width: 820px) { .envio-rejilla { grid-template-columns: 1fr; } }
.envio-destacado { border: 2px solid var(--brand-border); box-shadow: 0 0 0 4px rgba(255, 214, 10, .18); }

/* ---------- Aplicación (panel de empresa y administración): barra lateral ---------- */
.app { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sb { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 16px 12px; }
.sb-marca { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; text-decoration: none; color: var(--text); }
.sb-logo { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.sb-logo img { max-width: 34px; max-height: 34px; object-fit: contain; }
.sb-logo-letra { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; }
.sb-nombre { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.sb-nombre small { display: block; font-weight: 400; color: var(--text-3); font-size: .75rem; }
.sb-grupo { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: 14px 10px 6px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: .92rem; font-weight: 500; }
.sb-link:hover { background: var(--surface-2); color: var(--text); }
.sb-link[aria-current] { background: var(--surface-2); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--ink); }
.sb-cta { margin: 8px 4px 4px; }
.sb-pie { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; font-size: .85rem; }
.sb-pie .sb-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 600; font-size: .8rem; flex: none; }
.sb-pie div { flex: 1; min-width: 0; line-height: 1.25; }
.sb-pie small { color: var(--text-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-pie a { color: var(--text-3); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; }
.sb-pie a:hover { background: var(--surface-2); color: var(--text); }
.sb-producto { font-size: .72rem; color: var(--text-3); padding: 10px 10px 0; }
.app-top { display: none; }
.app-main { min-width: 0; }
.p-main { max-width: 1200px; margin: 0 auto; padding: 28px 32px 64px; }
.p-titulo { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.p-titulo h1 { margin: 0; font-size: 1.55rem; }
.app-admin .sb-link[aria-current] { box-shadow: inset 2px 0 0 #7c3aed; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sb { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--sombra-lg); }
  body.menu-abierto .sb { transform: none; }
  body.menu-abierto::after { content: ""; position: fixed; inset: 0; background: rgba(10,10,11,.35); z-index: 30; }
  .app-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 16px; }
  .app-top button { background: none; border: 1px solid var(--border); border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--text); }
  .app-top b { font-size: .95rem; }
  .p-main { padding: 20px 16px 56px; }
}

/* ---------- Acceso (login, recuperar…) ---------- */
body:has(.acceso) { background: radial-gradient(1200px 500px at 50% -10%, #fff7cc 0%, rgba(255,247,204,0) 60%), var(--bg); }
.acceso { max-width: 420px; margin: 9vh auto; padding: 0 16px; }
.acceso .caja { padding: 28px; box-shadow: var(--sombra-lg); }
.acceso-marca { font-weight: 700; font-size: 1.3rem; margin-bottom: 18px; letter-spacing: -.02em; }
.acceso-marca small { display: block; font-weight: 400; font-size: .9rem; color: var(--text-3); letter-spacing: 0; }

/* ---------- App del conductor (móvil, exterior) ---------- */
.c-cab { background: var(--ink); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.c-cab a { color: #fff; text-decoration: none; font-weight: 700; }
.c-logo { height: 40px; min-width: 40px; max-width: 120px; padding: 4px 8px; background: #fff; border-radius: 10px; display: grid; place-items: center; }
.c-logo img { max-height: 32px; max-width: 104px; object-fit: contain; }
.c-emp { font-size: .85rem; line-height: 1.25; }
.c-emp small { display: block; opacity: .7; }
.c-main { max-width: 560px; margin: 0 auto; padding: 18px 16px 150px; }
body:has(.c-main) { background: var(--bg); font-size: 17px; }
.c-lista { list-style: none; margin: 0; padding: 0; }
.c-lista li { margin: 0 0 10px; }
.c-lista a { display: block; background: var(--surface); border: 1px solid var(--border-2); border-radius: 14px; padding: 14px; text-decoration: none; color: inherit; box-shadow: var(--sombra); }
.c-lista .c-l1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 650; }
.paso { background: var(--surface); border: 1px solid var(--border-2); border-radius: 16px; padding: 16px; margin: 0 0 14px; box-shadow: var(--sombra); min-width: 0; }
.paso.hecho { border-color: var(--ink); }
.paso > legend { float: left; width: 100%; display: flex; gap: 10px; align-items: center; font-weight: 650; font-size: 1.08rem; padding: 0; margin-bottom: 12px; }
.paso > legend + * { clear: both; }
.paso-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: .9rem; flex: none; border: 1px solid var(--border-2); }
.paso.hecho .paso-n { background: var(--ink); color: #fff; border-color: var(--ink); }
.peso-wrap { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: 14px; background: #fff; }
.peso-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.peso-wrap input { border: 0; box-shadow: none; font-size: 2.3rem; font-weight: 650; text-align: right; min-height: 74px; padding: 0 12px; font-family: var(--mono); letter-spacing: -.02em; }
.peso-wrap input:focus { box-shadow: none; }
.peso-wrap span { font-size: 1.3rem; font-weight: 600; padding: 0 16px 0 4px; color: var(--text-3); }
.barra-final { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--border); padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
.barra-final > div { max-width: 560px; margin: 0 auto; }
.resumen { font-size: .86rem; color: var(--text-2); margin: 0 0 8px; min-height: 1.2em; }
.doc-qr { background: #fff; border: 1px solid var(--border-2); border-radius: 20px; padding: 18px; text-align: center; margin: 0 0 16px; box-shadow: var(--sombra-lg); }
.doc-qr svg { width: min(78vw, 290px); height: auto; }
.doc-num { font-size: 1.4rem; font-weight: 650; margin: 8px 0 6px; font-family: var(--mono); letter-spacing: -.02em; }
.acciones { display: grid; gap: 10px; }
.acciones .btn { min-height: 52px; border-radius: 14px; font-size: 1rem; }

/* ---------- Web comercial ---------- */
body.w { background: #fff; }
.w-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.w-cab { position: sticky; top: 0; z-index: 50; background: rgba(9, 9, 11, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.w-cab .w-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.w-marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; }
.w-marca i { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); display: grid; place-items: center; color: var(--ink); font-style: normal; font-weight: 800; font-size: .95rem; }
.w-nav { display: flex; align-items: center; gap: 2px; }
.w-nav a { color: #d4d4d8; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: .92rem; }
.w-nav a:hover { color: #fff; }
.w-nav .w-entrar { color: #fff; }
.w-nav .btn { margin-left: 8px; min-height: 36px; padding: 0 14px; box-shadow: none; }
.w-nav .btn-marca { background: var(--brand); border-color: var(--brand); color: var(--ink); font-weight: 650; }
.w-nav .btn-marca:hover { background: var(--brand-hover); color: var(--ink); }
@media (max-width: 820px) { .w-nav a:not(.btn):not(.w-entrar) { display: none; } }

.w-hero { position: relative; overflow: hidden; background: #09090b; color: #fff; padding: 88px 0 0; isolation: isolate; }
.w-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 20% 10%, rgba(255, 214, 10, .20), transparent 70%),
              radial-gradient(700px 400px at 85% 0%, rgba(37, 99, 235, .28), transparent 70%); }
.w-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.w-hero-texto { text-align: center; max-width: 900px; margin: 0 auto; }
.w-pildora { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); border-radius: 999px; padding: 6px 14px 6px 8px; font-size: .85rem; color: #e4e4e7; margin-bottom: 26px; }
.w-pildora b { background: var(--brand); color: var(--ink); border-radius: 999px; padding: 2px 10px; font-size: .78rem; }
.w-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0 0 22px; }
.w-degradado { background: linear-gradient(90deg, #ffd60a 0%, #fff3a3 45%, #93b4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-entrada { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #a1a1aa; max-width: 680px; margin: 0 auto 32px; }
.w-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.w-ctas .btn { min-height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.w-ctas .btn-marca { background: var(--brand); border-color: var(--brand); color: var(--ink); font-weight: 650; box-shadow: 0 8px 30px -8px rgba(255, 214, 10, .6); }
.w-ctas .btn-marca:hover { background: var(--brand-hover); }
.w-ctas .btn-fantasma { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.w-ctas .btn-fantasma:hover { background: rgba(255,255,255,.12); }
.w-confianza { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; color: #a1a1aa; font-size: .88rem; }
.w-confianza span { display: inline-flex; align-items: center; gap: 6px; }
.w-confianza .ico { width: 16px; height: 16px; color: #4ade80; }

.w-escena { position: relative; max-width: 1040px; margin: 64px auto 0; padding: 0 24px; }
.w-ventana { background: #fff; color: var(--text); border-radius: 14px 14px 0 0; border: 1px solid rgba(255,255,255,.14); border-bottom: 0; box-shadow: 0 -20px 80px -20px rgba(37, 99, 235, .45); overflow: hidden; }
.w-ventana-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.w-ventana-barra i { width: 10px; height: 10px; border-radius: 50%; background: #d4d4d8; }
.w-ventana-barra span { margin-left: 12px; font-size: .75rem; color: var(--text-3); font-family: var(--mono); }
.w-ventana-cuerpo { display: grid; grid-template-columns: 180px 1fr; min-height: 330px; }
.w-v-sb { border-right: 1px solid var(--border); padding: 14px 10px; font-size: .78rem; color: var(--text-2); }
.w-v-sb div { padding: 6px 8px; border-radius: 6px; margin-bottom: 2px; }
.w-v-sb .act { background: var(--surface-2); color: var(--text); font-weight: 600; }
.w-v-main { padding: 18px 20px; font-size: .8rem; }
.w-v-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.w-v-cifras div { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.w-v-cifras b { display: block; font-size: 1.2rem; }
.w-v-cifras span { color: var(--text-3); }
.w-v-tabla div { display: grid; grid-template-columns: 1.3fr 1.2fr .8fr .9fr; gap: 8px; padding: 8px 4px; border-bottom: 1px solid var(--border); align-items: center; }
.w-v-tabla div:first-child { color: var(--text-3); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; }
.w-v-tabla .mono { font-size: .76rem; }
.w-movil { position: absolute; right: 0; bottom: -40px; width: 230px; border-radius: 34px; background: #0a0a0b; padding: 10px; box-shadow: 0 30px 70px -10px rgba(0,0,0,.55); border: 1px solid #27272a; }
.w-movil-pantalla { background: var(--bg); color: var(--text); border-radius: 26px; overflow: hidden; padding-bottom: 12px; }
.w-movil-cab { background: var(--ink); color: #fff; font-weight: 700; padding: 10px 14px; font-size: .8rem; display: flex; align-items: center; gap: 8px; }
.w-movil-cab i { background: #fff; color: var(--ink); font-style: normal; border-radius: 6px; padding: 2px 6px; font-size: .7rem; }
.w-movil-ok { margin: 10px; padding: 8px 10px; background: var(--ok-soft); border: 1px solid #abefc6; border-radius: 10px; font-size: .72rem; font-weight: 600; color: #054f31; }
.w-movil-qr { margin: 0 10px; background: #fff; border: 1px solid var(--border-2); border-radius: 14px; text-align: center; padding: 8px 0 2px; }
.w-movil-qr svg { width: 128px; height: 128px; }
.w-movil-num { text-align: center; font-weight: 650; margin: 8px 0; font-family: var(--mono); font-size: .82rem; }
.w-movil-dato { display: flex; justify-content: space-between; gap: 8px; margin: 0 12px; padding: 5px 0; border-top: 1px solid var(--border); font-size: .7rem; }
.w-movil-dato span { color: var(--text-3); }
@media (max-width: 860px) {
  .w-ventana-cuerpo { grid-template-columns: 1fr; } .w-v-sb { display: none; }
  .w-movil { position: relative; right: auto; bottom: auto; margin: -80px auto 0; }
  .w-v-tabla div { grid-template-columns: 1.3fr 1fr .8fr; } .w-v-tabla div > :nth-child(4) { display: none; }
}

.w-sectores { border-bottom: 1px solid var(--border); padding: 30px 0; background: #fff; }
.w-sectores .w-in { display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap; color: var(--text-3); font-size: .92rem; }
.w-sectores b { color: var(--text-2); font-weight: 500; }
.w-sectores span { font-weight: 600; color: var(--text-2); letter-spacing: -.01em; }

.w-seccion { padding: 96px 0; }
.w-etiqueta { font-family: var(--mono); font-size: .8rem; color: var(--accent); letter-spacing: .02em; margin-bottom: 12px; display: block; }
.w-seccion h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.03em; font-weight: 700; margin-bottom: 16px; max-width: 760px; }
.w-intro { font-size: 1.1rem; color: var(--text-2); max-width: 680px; margin-bottom: 44px; }
.w-gris { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.w-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.w-celda { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 8px; min-height: 220px; overflow: hidden; position: relative; }
.w-celda h3 { font-size: 1.12rem; margin: 6px 0 2px; }
.w-celda p { color: var(--text-2); margin: 0; font-size: .95rem; }
.w-celda .w-icono { width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; border: 1px solid var(--border); }
.w-celda .w-icono .ico { width: 20px; height: 20px; }
.w-c3 { grid-column: span 3; } .w-c2 { grid-column: span 2; } .w-c4 { grid-column: span 4; }
.w-celda-oscura { background: #09090b; color: #fff; border-color: #09090b; }
.w-celda-oscura p { color: #a1a1aa; }
.w-celda-oscura .w-icono { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
@media (max-width: 900px) { .w-bento { grid-template-columns: 1fr; } .w-c3, .w-c2, .w-c4 { grid-column: auto; } }
.w-mini-lista { margin-top: auto; display: grid; gap: 6px; font-size: .82rem; }
.w-mini-lista div { display: flex; justify-content: space-between; border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--bg); }
.w-celda-oscura .w-mini-lista div { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.w-versiones { margin-top: auto; display: grid; gap: 6px; font-size: .82rem; }
.w-versiones div { display: flex; gap: 8px; align-items: center; }

.w-pasos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: paso; }
@media (max-width: 900px) { .w-pasos { grid-template-columns: 1fr; } }
.w-pasos li { counter-increment: paso; background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 26px; box-shadow: var(--sombra); }
.w-pasos li::before { content: "0" counter(paso); font-family: var(--mono); color: var(--text-3); font-size: .85rem; display: block; margin-bottom: 18px; }
.w-pasos b { display: block; font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -.01em; }
.w-pasos span { color: var(--text-2); }

.w-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .w-dos { grid-template-columns: 1fr; gap: 32px; } }
.w-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.w-check li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.w-check .ico { color: var(--ok); margin-top: 2px; }
.w-anatomia { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--sombra-lg); font-size: .9rem; }
.w-anatomia-cab { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 8px; }
.w-anatomia-cab b { font-family: var(--mono); }
.w-anatomia div.f { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.w-anatomia div.f:last-child { border-bottom: 0; }
.w-anatomia .l { font-family: var(--mono); color: var(--accent); font-weight: 600; }

.w-numeros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .w-numeros { grid-template-columns: 1fr 1fr; } }
.w-numeros div { border-top: 1px solid var(--border-2); padding-top: 18px; }
.w-numeros b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.04em; font-weight: 700; }
.w-numeros span { color: var(--text-2); }

.w-planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .w-planes { grid-template-columns: 1fr; } }
.w-plan { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 28px; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.w-plan h3 { font-size: 1rem; color: var(--text-2); font-weight: 600; }
.w-plan-precio { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; margin: 4px 0 14px; }
.w-plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: .93rem; color: var(--text-2); }
.w-plan li { display: flex; gap: 8px; }
.w-plan li .ico { color: var(--ok); width: 16px; height: 16px; margin-top: 3px; }
.w-plan .btn { margin-top: auto; }
.w-plan-destacado { background: #09090b; color: #fff; border-color: #09090b; box-shadow: var(--sombra-lg); position: relative; }
.w-plan-destacado h3, .w-plan-destacado ul { color: #a1a1aa; }
.w-plan-destacado .btn { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.w-plan-destacado .w-insignia { position: absolute; top: 18px; right: 18px; background: rgba(255,214,10,.16); color: var(--brand); border: 1px solid rgba(255,214,10,.35); border-radius: 999px; font-size: .72rem; padding: 2px 10px; font-weight: 600; }

.w-faq { max-width: 780px; }
.w-faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.w-faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.w-faq summary::-webkit-details-marker { display: none; }
.w-faq summary::after { content: "+"; font-weight: 400; color: var(--text-3); font-size: 1.3rem; line-height: 1; }
.w-faq details[open] summary::after { content: "–"; }
.w-faq details p { margin: 12px 0 0; color: var(--text-2); }

.w-cierre { background: #09090b; color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.w-cierre::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 10% 100%, rgba(255,214,10,.16), transparent 70%), radial-gradient(700px 360px at 90% 0%, rgba(37,99,235,.22), transparent 70%); }
.w-cierre h2 { color: #fff; }
.w-cierre .w-intro { color: #a1a1aa; }
.w-cierre .caja { color: var(--text); border: 0; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); border-radius: 20px; padding: 26px; }
.w-cierre .btn-altavis { font-size: 1.05rem; min-height: 52px; }
.w-contacto-lista { display: grid; gap: 14px; margin-top: 28px; color: #d4d4d8; }
.w-contacto-lista div { display: flex; gap: 12px; align-items: flex-start; }
.w-contacto-lista .ico { color: var(--brand); margin-top: 2px; }

.w-pie { background: #09090b; color: #a1a1aa; padding: 48px 0 36px; border-top: 1px solid #1f1f23; font-size: .9rem; }
.w-pie .w-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .w-pie .w-in { grid-template-columns: 1fr; } }
.w-pie b { color: #fff; display: block; margin-bottom: 10px; font-weight: 600; }
.w-pie a { color: #a1a1aa; text-decoration: none; display: block; padding: 3px 0; }
.w-pie a:hover { color: #fff; }
.w-pie .w-legal-linea { grid-column: 1 / -1; border-top: 1px solid #1f1f23; padding-top: 20px; font-size: .8rem; color: #71717a; }

/* ---------- Textos legales ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 24px 80px; }
.legal h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); letter-spacing: -.03em; font-weight: 700; }
.legal h2 { font-size: 1.15rem; margin-top: 2em; }
.legal p, .legal li { color: #3f3f46; }
.legal li { margin-bottom: 6px; }
.legal .borrador { background: var(--warn-soft); border: 1px solid #fedf89; padding: 12px 14px; border-radius: 12px; color: #7a4a00; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .c-cab, .sb, .app-top, .acciones, .barra-final, .w-cab { display: none !important; } .app { display: block; } }

/* Ajustes */
.btn-altavis { white-space: normal; text-align: center; padding: 10px 16px; flex-wrap: wrap; }
.btn-altavis > span { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-logo { width: auto; min-width: 40px; max-width: 132px; padding: 4px 6px; }
.sb-logo img { max-width: 118px; max-height: 30px; }
td.mono, td .mono { white-space: nowrap; }
.w-movil { bottom: 28px; }
@media (max-width: 860px) { .w-movil { bottom: auto; } }
.w-marca { white-space: nowrap; }
@media (max-width: 520px) { .w-nav .btn-marca { display: none; } .w-cab .w-in { padding: 0 16px; } }
.w-alta { padding: 72px 0 96px; background: radial-gradient(900px 400px at 15% 0%, #fff7cc 0%, rgba(255,247,204,0) 60%), #fff; }
.w-alta h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -.035em; font-weight: 700; margin-bottom: 14px; }
.w-alta-form { padding: 26px; box-shadow: var(--sombra-lg); border-radius: 20px; }
.w-promo { display: inline-flex; align-items: center; gap: 8px; background: #fff7cc; border: 1px solid #fedf89; color: #7a4a00; border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 550; margin-bottom: 26px; }
.w-planes-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .w-planes-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .w-planes-4 { grid-template-columns: 1fr; } }
.w-plan-precio small { font-size: .95rem; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.w-plan-destacado .w-plan-precio small { color: #a1a1aa; }
.c-cambiar { margin-left: auto; font-size: .8rem !important; font-weight: 600 !important; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 12px; white-space: nowrap; }
.c-para { font-size: .92rem; }
.elegir { display: grid; gap: 12px; }
.elegir form { margin: 0; }
.elegir-emp { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; min-height: 76px; border: 1px solid var(--border-2);
  border-radius: 16px; background: #fff; font: inherit; color: var(--text); cursor: pointer; box-shadow: var(--sombra); }
.elegir-emp:hover { border-color: var(--ink); }
.elegir-emp.actual { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.elegir-emp b { display: block; font-size: 1.05rem; }
.elegir-emp small { color: var(--text-3); }
.elegir-emp .ico { margin-left: auto; }
.elegir-marca { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 1.1rem; flex: none; }
/* Marca DECA Controller */
.w-marca img { display: block; height: 32px; width: auto; }
.acceso-marca a img { display: block; height: 40px; width: auto; margin-bottom: 6px; }
.c-plataforma { display: grid; place-items: center; }
.app-admin .sb-logo { background: #1F2B42; border-color: #1F2B42; padding: 0; min-width: 40px; }
.app-admin .sb-logo img { max-width: 40px; max-height: 40px; }
.app-admin .sb-link[aria-current] { box-shadow: inset 2px 0 0 #1F2B42; }
.sb-producto { display: flex; align-items: center; gap: 6px; }
@media (max-width: 520px) { .w-marca img { height: 26px; } }
.importar-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.importar-rejilla .caja { margin: 0; scroll-margin-top: 20px; }
.btn-wa { background: #25D366; border-color: #1fb457; color: #06301a; }
.btn-wa:hover { background: #1fbe5a; }
/* Campo de contraseña con botón para mostrarla */
.clave-caja { position: relative; display: block; }
.clave-caja input { padding-right: 46px; }
.clave-ojo { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--text-3); border-radius: 8px; cursor: pointer; }
.clave-ojo:hover { color: var(--text); background: var(--surface-2); }
.veh-buscar { margin: 0 0 10px; }
.veh-buscar input { min-height: 52px; font-size: 1.1rem; font-family: var(--mono); border-radius: 12px; }
.veh-rec-t { margin: 4px 0 6px; }
.bienvenida { border: 2px solid var(--ok); background: var(--ok-soft); }
/* Varias mercancías en un DeCA */
.lineas-extra { margin-top: 12px; }
.lx-fila { display: grid; grid-template-columns: 1fr 150px 40px; gap: 8px; align-items: center; margin: 0 0 8px; }
.lx-fila select { min-height: 48px; }
.lx-peso { display: flex; align-items: center; border: 1px solid var(--border-2); border-radius: 10px; background: #fff; }
.lx-peso input { border: 0; box-shadow: none; text-align: right; font-weight: 650; font-family: var(--mono); min-height: 46px; }
.lx-peso span { padding: 0 10px 0 2px; color: var(--text-3); font-weight: 600; }
.lx-quitar { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border-2); background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--text-2); }
.lx-add { margin-top: 2px; }
.lx-add:disabled { opacity: .5; cursor: not-allowed; }
.lx-ayuda, .lx-principal { margin: 8px 0 0; }
.lx-total { margin: 10px 0 0; font-weight: 700; font-size: 1.05rem; }
@media (max-width: 480px) { .lx-fila { grid-template-columns: 1fr 120px 40px; } }
@media (max-width: 480px) {
  .lx-fila { grid-template-columns: 1fr 44px; }
  .lx-fila select { grid-column: 1 / -1; }
}
/* Primeros pasos */
.pasos-bienvenida { border: 1px solid #c7d7fe; background: linear-gradient(180deg, #f5f8ff, #fff 60%); }
.pasos-barra { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 0 0 14px; }
.pasos-barra span { display: block; height: 100%; background: var(--ok); border-radius: 999px; }
.pasos-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 6px 18px; }
.pasos-lista li { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: .93rem; }
.pasos-lista li.hecho { color: var(--text-3); text-decoration: line-through; }
.pasos-marca { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; font-size: .75rem; font-weight: 600; flex: none; background: #fff; }
.pasos-lista li.hecho .pasos-marca { background: var(--ok); border-color: var(--ok); color: #fff; }
.pasos-lista li.hecho .pasos-marca .ico { width: 14px; height: 14px; }
.ayuda h2 { scroll-margin-top: 80px; }
.ayuda-indice { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.ayuda-indice a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; text-decoration: none; font-size: .88rem; color: var(--text); background: #fff; }
.ayuda-indice a:hover { border-color: var(--ink); }
/* Pie de la app del conductor */
.c-pie { max-width: 560px; margin: 8px auto 110px; padding: 14px 18px; font-size: .85rem; color: var(--text-3); text-align: center; }
.c-pie a { color: var(--text-2); }
.c-quitar { margin-top: 10px; }
.c-quitar summary { cursor: pointer; color: var(--text-3); }
.c-quitar p { margin: 8px 0; }

/* ---------- DCS SIRA: colores de destinos y residuos (v1.31) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 2px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; line-height: 1.5;
  background: var(--chip-bg, var(--surface-2)); color: var(--chip-fg, var(--text-2)); border: 1px solid color-mix(in srgb, var(--chip-fg, #888) 22%, transparent); overflow-wrap: anywhere; }
.chip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; white-space: nowrap; flex: none; }
.chip-peligro { background: #fee2e2; color: #991b1b; }
.chip-peligro::before { content: "⚠"; width: auto; height: auto; background: none; font-size: .8rem; }
a.chip { text-decoration: none; }
a.chip:hover { filter: brightness(.96); }
a.chip[aria-pressed="true"] { outline: 2px solid currentColor; outline-offset: 1px; }
tr[style*="--fila"] td:first-child { box-shadow: inset 4px 0 0 var(--fila); }
.leyenda { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.leyenda > span:first-child { font-size: .78rem; color: var(--text-3); font-weight: 550; margin-right: 2px; }
td .chip { line-height: 1.35; padding: 3px 9px; }

/* ===== DCSfácil (marca del módulo DCS SIRA, dominio DECA_DCS_HOST) · v1.37 =====
   Claro, sobrio y con los verdes del logotipo. Sin degradados ni en fondos ni en texto. */
.w-dcs {
  --d-tinta: #0C2A1F; --d-texto: #3F5A4F; --d-suave: #6B8379;
  --d-verde: #0E9F6E; --d-verde-osc: #067A55; --d-bosque: #053D2C;
  --d-menta: #EEF7F2; --d-linea: #D6E7DE; --d-papel: #FFFFFF;
  background: var(--d-papel); color: var(--d-texto);
}
.w-dcs ::selection { background: #BDEBD5; color: var(--d-tinta); }
.w-dcs :focus-visible { outline: 2px solid var(--d-verde); outline-offset: 2px; }
/* Cabecera clara */
.w-dcs .w-cab { background: rgba(255,255,255,.86); border-bottom: 1px solid var(--d-linea); color: var(--d-tinta); }
.w-dcs .w-nav a { color: var(--d-texto); }
.w-dcs .w-nav a:hover, .w-dcs .w-nav .w-entrar { color: var(--d-tinta); }
.w-dcs .w-nav .btn-marca { background: var(--d-verde); border-color: var(--d-verde); color: #fff; }
.w-dcs .w-nav .btn-marca:hover { background: var(--d-verde-osc); border-color: var(--d-verde-osc); color: #fff; }
/* Pie verde bosque */
.w-dcs .w-pie { background: var(--d-bosque); color: #A8C9BA; border-top: 1px solid rgba(255,255,255,.1); }
.w-dcs .w-pie a { color: #A8C9BA; }
.w-dcs .w-pie a:hover { color: #fff; }
.w-dcs .w-pie .w-legal-linea { border-top-color: rgba(255,255,255,.12); color: #84A898; }
/* Botones */
.d-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.d-btn-1 { background: var(--d-verde); color: #fff; }
.d-btn-1:hover { background: var(--d-verde-osc); color: #fff; }
.d-btn-2 { background: #fff; color: var(--d-tinta); border-color: var(--d-linea); }
.d-btn-2:hover { border-color: var(--d-verde); color: var(--d-verde-osc); }
.d-btn-bloque { width: 100%; margin-top: 14px; }
/* Tipografía */
.d h1, .d h2, .d h3 { color: var(--d-tinta); font-weight: 650; letter-spacing: -.025em; }
.d h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04; margin: 0 0 22px; letter-spacing: -.035em; max-width: 13ch; }
.d h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.12; margin: 0 0 14px; }
.d h3 { font-size: 1.08rem; line-height: 1.3; margin: 0 0 6px; letter-spacing: -.01em; }
.d p { line-height: 1.6; }
/* Hero */
.d-hero { padding: 72px 0 80px; border-bottom: 1px solid var(--d-linea); }
.d-hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.d-ambito { display: inline-block; margin: 0 0 22px; padding: 6px 12px; border-radius: 999px; background: var(--d-menta); color: var(--d-verde-osc); font-size: .9rem; font-weight: 550; }
.d-entrada { font-size: 1.15rem; max-width: 34em; margin: 0 0 30px; }
.d-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.d-garantias { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--d-texto); }
.d-garantias li { display: flex; align-items: center; gap: 7px; }
.d-garantias svg, .d-lista svg { width: 18px; height: 18px; color: var(--d-verde); flex: none; }
/* La pieza memorable: las dos copias del DCS */
.d-copias { position: relative; min-height: 430px; }
.d-hoja { position: relative; z-index: 2; background: #fff; border: 1px solid var(--d-linea); border-radius: 6px; padding: 22px 22px 18px;
  box-shadow: 0 1px 0 rgba(12,42,31,.04), 0 24px 48px -24px rgba(5,61,44,.28); max-width: 440px; margin-left: auto; }
.d-hoja-atras { position: absolute; z-index: 1; top: -46px; right: 30px; width: calc(100% - 34px); max-width: 440px; height: 100%; padding: 0;
  transform: rotate(-2.5deg); box-shadow: 0 12px 30px -20px rgba(5,61,44,.3); }
.d-hoja-atras .d-hoja-franja { margin: 9px 14px 0; background: var(--d-menta); color: var(--d-verde-osc); text-align: left; }
.d-hoja-cab { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.d-hoja-cab b { display: block; color: var(--d-tinta); font-size: .95rem; letter-spacing: -.01em; }
.d-hoja-cab span { font-size: .75rem; color: var(--d-suave); }
.d-qr { display: block; width: 64px; height: 64px; flex: none; }
.d-qr svg { width: 64px; height: 64px; display: block; }
.d-hoja-franja { background: var(--d-bosque); color: #fff; font-size: .74rem; font-weight: 600; text-align: center; padding: 6px 8px; border-radius: 3px; }
.d-hoja-datos { margin: 14px 0 0; border-top: 1px solid var(--d-linea); }
.d-hoja-datos div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--d-linea); font-size: .84rem; }
.d-hoja-datos dt { color: var(--d-suave); }
.d-hoja-datos dd { margin: 0; color: var(--d-tinta); font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.d-hoja-firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.d-hoja-firmas span { border: 1px dashed #B9D3C6; border-radius: 4px; height: 52px; padding: 6px 8px; font-size: .72rem; color: var(--d-suave); }
.d-sello { position: absolute; z-index: 3; left: 0; bottom: -6px; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--d-verde-osc);
  border: 1px solid var(--d-linea); border-radius: 999px; padding: 9px 16px 9px 12px; font-weight: 600; font-size: .9rem; box-shadow: 0 10px 24px -14px rgba(5,61,44,.35); }
.d-sello svg { width: 18px; height: 18px; color: #fff; background: var(--d-verde); border-radius: 50%; padding: 3px; }
/* Franja de público */
.d-para { padding: 22px 0; border-bottom: 1px solid var(--d-linea); }
.d-para p { margin: 0; color: var(--d-suave); font-size: .98rem; }
/* Secciones */
.d-sec { padding: 96px 0; }
.d-sec-menta { background: var(--d-menta); }
.d-sec-cab { max-width: 40em; margin-bottom: 48px; }
.d-sec-cab p { font-size: 1.08rem; margin: 0; }
.d-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.d-dos .d-sec-cab { margin-bottom: 0; }
/* Funciones: rejilla sin tarjetas, separadas por líneas */
.d-funciones { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--d-linea); }
.d-funciones article { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--d-linea); }
.d-funciones article:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--d-linea); }
.d-funciones p { margin: 0; font-size: .97rem; }
.d-ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--d-menta); color: var(--d-verde-osc); margin-bottom: 16px; }
.d-ico svg { width: 20px; height: 20px; }
/* Pasos: secuencia real, numerada y unida por una línea */
.d-pasos { list-style: none; counter-reset: paso; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.d-pasos::before { content: ""; position: absolute; top: 19px; left: 20px; right: calc(25% - 20px); height: 2px; background: #BFDFCF; }
.d-pasos li { counter-increment: paso; position: relative; }
.d-pasos li::before { content: counter(paso); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--d-verde); color: #fff;
  font-weight: 650; margin-bottom: 18px; position: relative; box-shadow: 0 0 0 6px var(--d-menta); }
.d-pasos p { margin: 0; font-size: .97rem; }
/* Listas con check */
.d-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.d-lista li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.02rem; color: var(--d-tinta); }
.d-lista li svg { margin-top: 3px; }
/* Preguntas */
.d-faq details { border-bottom: 1px solid var(--d-linea); }
.d-faq details:first-child { border-top: 1px solid var(--d-linea); }
.d-faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; color: var(--d-tinta); font-weight: 600; }
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--d-verde); }
.d-faq details[open] summary::after { content: "−"; }
.d-faq details p { margin: 0 0 18px; }
/* Cierre con formulario */
.d-cierre { background: var(--d-bosque); color: #CFE6DB; padding: 96px 0; }
.d-cierre h2 { color: #fff; }
.d-cierre p { font-size: 1.08rem; margin: 0 0 28px; max-width: 32em; }
.d-lista-clara li { color: #E3F2EA; }
.d-lista-clara svg { color: #6EE7B7; }
.d-form { color: var(--d-texto); }
.d-form a { color: var(--d-verde-osc); }
.w-dcs .campo input:focus, .w-dcs .campo textarea:focus { border-color: var(--d-verde); box-shadow: 0 0 0 3px rgba(14,159,110,.18); }
/* Móvil */
@media (max-width: 900px) {
  .d-hero { padding: 44px 0 56px; }
  .d-hero-in, .d-dos { grid-template-columns: 1fr; gap: 40px; }
  .d-copias { min-height: 0; padding: 22px 6px 34px; }
  .d-hoja { margin: 0 auto; }
  .d-hoja-atras { right: 16px; width: calc(100% - 26px); top: -14px; height: calc(100% - 30px); }
  .d-copias { padding-top: 40px; }
  .d-hoja-datos div { grid-template-columns: 7.2em 1fr; }
  .d-sello { left: 6px; bottom: 6px; }
  .d-funciones { grid-template-columns: 1fr; }
  .d-funciones article, .d-funciones article:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .d-pasos { grid-template-columns: 1fr; gap: 22px; }
  .d-pasos::before { top: 20px; bottom: 20px; left: 19px; right: auto; width: 2px; height: auto; }
  .d-pasos li { padding-left: 60px; }
  .d-pasos li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .d-sec, .d-cierre { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { .d-btn { transition: none; } }

/* Avisos · v1.47: campana del menú y de la barra superior, punto si no están activados, banda de activación */
.sb-avisos { position: relative; }
.punto-aviso { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; margin-left: 6px; vertical-align: middle; }
.punto-aviso[hidden] { display: none; }
.app-top-avisos { margin-left: auto; position: relative; display: inline-flex; align-items: center; padding: 6px; color: inherit; }
.app-top-avisos .punto-aviso { position: absolute; top: 4px; right: 2px; margin: 0; }
.banda-avisos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.banda-avisos[hidden] { display: none; }
.banda-avisos .ico { width: 18px; height: 18px; vertical-align: -3px; }
.aviso-dispositivo-cab { display: flex; align-items: center; gap: 14px; }
.aviso-dispositivo-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); flex: none; }
.aviso-dispositivo-ico .ico { width: 22px; height: 22px; }

/* Lo oculto con el atributo hidden no se muestra aunque su clase tenga display propio (p. ej. .btn) */
[hidden] { display: none !important; }

/* v1.48 · campana de avisos destacada con el color de la marca (verde DCSfácil / azul DeCA) */
.sb-avisos .ico, .app-top-avisos .ico { box-sizing: content-box; width: 16px; height: 16px; padding: 4px; border-radius: 7px; color: #fff; background: var(--color-avisos, #1F2B42); stroke-width: 2.2; }
.sb-avisos { font-weight: 600; }
