@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url(fuentes/poppins-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(fuentes/poppins-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(fuentes/poppins-600-latin.woff2) format("woff2"); }
:root { --noir: #151515; --wine: #A0223E; --wine-light: #E06A84; --cream: #FAFAF8; --bone: #F1F1EE; --muted: #6E6E69; --line: #E2E2DC; --ok: #1F7A3E; --ok-bg: #E7F5EC; --mal: #B3203A; --mal-bg: #FBE9EC; --gut: clamp(20px, 5vw, 48px); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { font-family: "Poppins", system-ui, sans-serif; background: var(--cream); color: var(--noir); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
svg { display: block; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
.in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gut); }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--wine); }
h2 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; line-height: 1.08; letter-spacing: -.03em; margin-top: 14px; max-width: 22ch; }
.intro { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 60ch; }
section { padding: clamp(64px, 9vw, 112px) 0; }
.suave { background: var(--bone); }
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; background: var(--wine); color: var(--cream); font-size: 15px; font-weight: 600; text-decoration: none; transition: background .2s; }
.boton:hover { background: #8A1D35; }
.boton.claro { background: transparent; box-shadow: inset 0 0 0 1px rgba(250, 250, 248, .35); }
.boton.claro:hover { background: rgba(250, 250, 248, .08); }
.enlace { display: inline-block; font-size: 15px; font-weight: 600; color: var(--wine); text-underline-offset: 4px; }

.nav { position: sticky; top: 0; z-index: 20; background: rgba(21, 21, 21, .95); color: var(--cream); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav .in { display: flex; align-items: center; gap: 22px; height: 56px; }
.nav .marca svg { height: 26px; width: auto; margin-left: -5px; }
.nav ul { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.nav ul::-webkit-scrollbar { display: none; }
.nav li a { display: block; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(250, 250, 248, .72); text-decoration: none; }
.nav li a:hover, .nav li a.activo { color: var(--cream); background: rgba(250, 250, 248, .12); }

.portada { background: var(--noir); color: var(--cream); padding: clamp(56px, 9vw, 112px) 0; }
.portada .eyebrow { color: var(--wine-light); }
.portada h1 { margin-top: 20px; font-size: clamp(42px, 7.6vw, 88px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; max-width: 14ch; }
.portada .sub { margin-top: 26px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: rgba(250, 250, 248, .74); max-width: 52ch; }
.para { margin-bottom: 20px; font-size: 14px; color: rgba(250, 250, 248, .7); }
.para b { font-weight: 600; color: var(--cream); }
.acciones-p { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.portada dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(48px, 7vw, 84px); padding-top: 22px; border-top: 1px solid rgba(250, 250, 248, .16); }
.portada dt { font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.portada dd { margin-top: 6px; font-size: 14px; color: rgba(250, 250, 248, .66); }
@media (max-width: 620px) { .portada dl { grid-template-columns: 1fr; gap: 16px; } .acciones-p .boton { width: 100%; } }

.tabs { display: flex; gap: 8px; margin: 32px calc(-1 * var(--gut)) 0; padding: 2px var(--gut) 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--noir); border-color: var(--noir); color: var(--cream); }

.sector { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; margin-top: 28px; align-items: start; }
.sector h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.puntos { margin-top: 20px; border-top: 1px solid var(--noir); }
.puntos li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.puntos b { display: block; font-weight: 600; }
.puntos span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.lado { padding: 24px; border-radius: 20px; background: var(--noir); color: var(--cream); }
.lado h4 { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--wine-light); }
.lado ul { margin-top: 12px; }
.lado li { padding: 11px 0; border-bottom: 1px solid rgba(250, 250, 248, .12); font-size: 15px; line-height: 1.45; color: rgba(250, 250, 248, .82); }
.lado .ir a { display: block; color: var(--cream); font-weight: 500; text-decoration: none; }
.lado .ir a::after { content: " →"; color: var(--wine-light); }
.lado .ir a:hover { text-decoration: underline; }
.lado .enlace { margin-top: 16px; color: var(--wine-light); }
.lado h4:not(:first-child) { margin-top: 22px; }
@media (max-width: 860px) { .sector { grid-template-columns: 1fr; gap: 24px; } }

.lab { margin-top: 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; overflow: hidden; box-shadow: 0 30px 70px -50px rgba(21, 21, 21, .5); }
.lab-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 16px clamp(16px, 2.6vw, 28px); background: var(--bone); border-bottom: 1px solid var(--line); }
.lab-lista { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.lab-lista::-webkit-scrollbar { display: none; }
.lab-lista button { flex: none; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.lab-lista button:hover { color: var(--noir); }
.lab-lista button[aria-pressed="true"] { background: #fff; color: var(--noir); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.lab-sello { font-size: 12px; font-weight: 500; color: var(--muted); }
.lab-sello::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--wine); }
.lab-cuerpo { padding: clamp(18px, 3vw, 32px) clamp(16px, 2.6vw, 28px) clamp(22px, 3vw, 32px); min-height: 480px; }
.lab-cuerpo h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.lab-cuerpo > p { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 64ch; }
#demo-caja { margin-top: 22px; }
#demo-caja[aria-busy] { opacity: .5; }

.d-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; background: var(--wine); color: var(--cream); font-size: 14px; font-weight: 600; text-align: center; transition: background .2s; }
.d-btn:hover { background: #8A1D35; }
.d-btn.sec { background: #fff; color: var(--noir); box-shadow: inset 0 0 0 1px var(--line); }
.d-btn.sec:hover { box-shadow: inset 0 0 0 1px var(--noir); }
.d-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.d-input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; }
textarea.d-input { resize: vertical; }
.d-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.d-chips button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; }
.d-chips button[aria-pressed="true"] { background: var(--noir); border-color: var(--noir); color: var(--cream); }
.d-pie { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 18px; }
.d-doble { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.d-doble-izq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.d-doble-igual { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 860px) { .d-doble, .d-doble-izq, .d-doble-igual { grid-template-columns: minmax(0, 1fr); } }
.d-lateral { padding: 18px; border-radius: 16px; background: var(--bone); font-size: 14px; }
.d-lateral > * + * { margin-top: 10px; }
.d-lateral h4, .d-sub { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.d-lateral h4:not(:first-child) { margin-top: 18px; }
.d-sub { margin: 18px 0 8px; }
.d-nota { margin-top: 12px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.d-titular { font-weight: 600; line-height: 1.4; margin: 10px 0; }
.d-fuente { margin-top: 10px; font-size: 13px; color: var(--muted); }
.d-confirmado, .d-alerta { margin-top: 12px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; line-height: 1.45; }
.d-confirmado { background: var(--ok-bg); color: var(--ok); }
.d-alerta { background: var(--mal-bg); color: var(--mal); }
.d-bien { color: var(--ok); font-style: normal; font-weight: 500; }
.d-mal { color: var(--mal); font-weight: 500; }
.d-pensando { display: flex; align-items: center; gap: 4px; padding: 12px 0; font-size: 14px; color: var(--muted); }
.d-pensando span { margin-left: 8px; }
.d-pensando i, .suya.escribe i { width: 6px; height: 6px; border-radius: 50%; background: var(--wine); animation: d-punto 1s infinite ease-in-out; }
.d-pensando i:nth-child(2), .suya.escribe i:nth-child(2) { animation-delay: .15s; }
.d-pensando i:nth-child(3), .suya.escribe i:nth-child(3) { animation-delay: .3s; }
@keyframes d-punto { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.d-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.d-kpis li { padding: 14px; border-radius: 14px; background: var(--bone); }
.d-kpis b { display: block; font-size: clamp(20px, 2.3vw, 26px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.d-kpis span { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.d-kpis .vino { background: var(--wine); color: var(--cream); }
.d-kpis .vino span { color: rgba(250, 250, 248, .78); }
.d-lateral .d-kpis li { background: #fff; }

.d-tabla-caja { overflow-x: auto; margin-top: 10px; }
.d-tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.d-tabla th { padding: 8px 10px 8px 0; text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--noir); white-space: nowrap; }
.d-tabla td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.d-tabla .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; padding-left: 10px; }
.d-barras { display: grid; gap: 9px; margin-top: 8px; }
.d-barras li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; font-size: 13.5px; line-height: 1.3; }
.d-barras li > span { grid-column: 1; }
.d-barras li > b { grid-column: 2; grid-row: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.d-barras li > i { grid-column: 1 / -1; display: block; height: 6px; margin-top: 4px; border-radius: 4px; background: var(--bone); overflow: hidden; }
.d-lateral .d-barras li > i { background: #fff; }
.d-barras em { display: block; height: 100%; border-radius: 4px; background: var(--noir); transition: width .35s ease; }
.d-barras em.vino { background: var(--wine); }
.d-campo { display: block; }
.d-campo > span { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.d-campo output { font-weight: 600; color: var(--wine); }
.d-rango input { width: 100%; accent-color: var(--wine); min-height: 28px; }
.d-controles { display: grid; gap: 16px; align-content: start; }
.d-controles .d-btn { justify-self: start; }
.d-fila { margin: 16px 0; max-width: 480px; }
.d-sw { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.d-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.d-sw i { flex: none; position: relative; width: 42px; height: 24px; border-radius: 999px; background: #CFCFC8; transition: background .2s; }
.d-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.d-sw input:checked + i { background: var(--wine); }
.d-sw input:checked + i::after { transform: translateX(18px); }
.d-sw input:focus-visible + i { outline: 2px solid var(--wine); outline-offset: 3px; }
.d-resultado > * + * { margin-top: 12px; }
.d-borrador { padding: 14px 16px; border-left: 3px solid var(--wine); border-radius: 0 12px 12px 0; background: var(--bone); font-size: 14px; }
.d-borrador h4 { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.d-grafico { width: 100%; height: auto; }
.d-log { display: grid; gap: 8px; font-size: 12.5px; line-height: 1.4; max-height: 220px; overflow-y: auto; }
.d-log:empty::before { content: "Todavía sin acciones."; color: var(--muted); }
.d-log li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; }
.d-log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.d-log .ok span { color: var(--ok); }
.d-log .mal span { color: var(--mal); }

.d-sug { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.d-sug::-webkit-scrollbar { display: none; }
.d-sug button { flex: none; max-width: 260px; min-height: 40px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; line-height: 1.3; text-align: left; }
.d-sug button:hover { border-color: var(--noir); }
.d-conversacion { display: grid; gap: 12px; max-height: 500px; min-height: 240px; overflow-y: auto; padding: 10px 2px; }
.d-yo { justify-self: end; max-width: 86%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--wine); color: var(--cream); font-size: 14.5px; font-weight: 500; }
.d-el { padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: var(--bone); font-size: 14.5px; }
.d-el .d-tabla td { border-color: #DDDDD6; }
.d-el .d-barras li > i { background: #fff; }
.d-el .d-btn { margin-top: 12px; }
.d-sql { margin-top: 8px; font-size: 13px; }
.d-sql summary { cursor: pointer; font-weight: 500; color: var(--muted); }
.d-sql pre { margin-top: 8px; padding: 12px; border-radius: 10px; background: var(--noir); color: #D9D9D2; font: 12px/1.5 Consolas, Menlo, monospace; overflow-x: auto; }
.d-pregunta { display: flex; gap: 8px; margin-top: 12px; }
.d-pregunta .d-btn { flex: none; }
@media (max-width: 480px) { .d-pregunta { flex-direction: column; } }

.d-papel { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 12.5px; box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .5); }
.d-papel header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; padding-bottom: 8px; border-bottom: 2px solid var(--noir); font-size: 13.5px; }
.d-papel b { font-weight: 600; }
.d-papel > p { margin: 8px 0; color: var(--muted); }
.d-papel table { width: 100%; border-collapse: collapse; }
.d-papel th { padding: 5px 4px; text-align: left; font-weight: 600; border-bottom: 1px solid var(--line); }
.d-papel td { padding: 6px 4px; border-bottom: 1px solid #F0F0EA; }
.d-papel th:not(:first-child), .d-papel td:not(:first-child) { text-align: right; white-space: nowrap; }
.d-papel footer { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px; }
.d-papel small { display: block; margin-top: 12px; color: var(--muted); }
.d-papel .lee { background: rgba(224, 106, 132, .25); box-shadow: 0 0 0 3px rgba(224, 106, 132, .25); }

.d-telefono { display: flex; flex-direction: column; height: 560px; max-width: 420px; width: 100%; margin: 0 auto; border-radius: 26px; overflow: hidden; background: #EFEAE2; box-shadow: 0 0 0 7px var(--noir); }
.d-telefono header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--noir); color: var(--cream); }
.d-telefono .av { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--wine); font-size: 14px; font-weight: 600; }
.d-telefono header b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.d-telefono header small { font-size: 11.5px; opacity: .7; }
.d-wa-chat { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 14px 12px; overflow-y: auto; font-size: 14px; line-height: 1.4; }
.d-wa-chat p { position: relative; max-width: 84%; padding: 7px 10px 18px; border-radius: 10px; }
.d-wa-chat .suya { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.d-wa-chat .mia { align-self: flex-end; background: #D9F7D0; border-top-right-radius: 2px; }
.d-wa-chat time { position: absolute; right: 8px; bottom: 3px; font-size: 10px; color: #72726C; }
.suya.escribe { display: flex; gap: 4px; padding: 11px 12px !important; }
.d-wa-rapidas { display: flex; gap: 6px; padding: 6px 10px; overflow-x: auto; scrollbar-width: none; }
.d-wa-rapidas:empty { display: none; }
.d-wa-rapidas button { flex: none; min-height: 34px; padding: 0 12px; border-radius: 999px; background: #fff; color: var(--wine); font-size: 13px; font-weight: 500; }
.d-telefono form { display: flex; gap: 6px; padding: 8px 10px; }
.d-wa-input { flex: 1; min-width: 0; min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px; background: #fff; font-size: 16px; }
.d-telefono form button { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--wine); color: var(--cream); }
.d-ficha dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 8px; font-size: 13px; }
.d-ficha dt { color: var(--muted); }
.d-ficha dd { text-align: right; font-weight: 500; }
.d-ficha h4:not(:first-child) { margin-top: 14px; }
.d-aprobar { padding: 14px; border: 1.5px solid var(--wine); border-radius: 14px; background: #fff; }
.d-aprobar h4 { color: var(--wine) !important; }
.d-aprobar p { margin-top: 6px; font-size: 13.5px; }

.d-locales { display: grid; gap: 4px; }
.d-locales button { width: 100%; display: grid; grid-template-columns: minmax(110px, 1fr) minmax(50px, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 10px; text-align: left; font-size: 13.5px; }
.d-locales button:hover { background: var(--bone); }
.d-locales button[aria-pressed="true"] { background: var(--bone); box-shadow: inset 3px 0 0 var(--wine); }
.d-locales .n { font-weight: 500; line-height: 1.2; }
.d-locales small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.d-locales i { display: block; height: 6px; border-radius: 4px; background: var(--bone); overflow: hidden; }
.d-locales em { display: block; height: 100%; background: var(--noir); border-radius: 4px; }
.d-locales em.vino { background: var(--wine); }
.d-locales b { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
#demo-caja > div > .d-kpis { margin-bottom: 16px; }

.d-forma { display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: var(--bone); }
.d-forma h4 { font-size: 14px; font-weight: 600; }
.d-forma .d-btn { justify-self: start; }
.d-tareas { display: grid; gap: 10px; margin-top: 14px; max-height: 560px; overflow-y: auto; }
.d-tarea { padding: 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; }
.d-tarea.critica { border-color: var(--mal); box-shadow: inset 3px 0 0 var(--mal); }
.d-tarea header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.d-tarea header b { font-weight: 600; margin-right: 4px; }
.d-etq { padding: 2px 9px; border-radius: 999px; background: var(--bone); font-size: 11.5px; font-weight: 500; white-space: nowrap; }
.d-etq.negativa, .d-etq.u-critica { background: var(--mal-bg); color: var(--mal); }
.d-etq.positiva { background: var(--ok-bg); color: var(--ok); }
.d-cita { margin-top: 8px; color: var(--muted); }
.d-resp { margin-top: 6px; font-size: 13.5px; }
.d-resp b { font-weight: 600; }
.d-tarea details { margin-top: 8px; font-size: 13.5px; }
.d-tarea summary { cursor: pointer; font-weight: 500; color: var(--wine); }
.d-tarea details p { margin-top: 6px; }

.d-foto { position: relative; border-radius: 14px; overflow: hidden; background: var(--bone); }
.d-escena { width: 100%; height: auto; }
.d-scan { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--wine); box-shadow: 0 0 22px 7px rgba(160, 34, 62, .55); animation: d-scan 1.2s linear; }
@keyframes d-scan { from { left: 0; } to { left: 100%; } }
.d-revision { display: grid; gap: 6px; }
.d-revision li { padding: 11px 14px; border-radius: 12px; font-size: 13.5px; background: var(--ok-bg); }
.d-revision li.no { background: var(--mal-bg); }
.d-revision b { display: block; font-weight: 600; }
.d-revision li.no span { color: var(--mal); }
.d-revision .d-btn { min-height: 36px; margin-top: 8px; font-size: 12.5px; }
.d-revision em { display: block; margin-top: 6px; font-style: normal; color: var(--ok); }

.d-informe { padding: clamp(16px, 2.4vw, 24px); border: 1px solid var(--line); border-radius: 16px; }
.d-informe > * + * { margin-top: 14px; }
.d-informe header span { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wine); }
.d-informe header h4 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.d-informe header small { color: var(--muted); }
.d-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; font-size: 13.5px; }
.d-datos b { display: block; font-size: 17px; font-weight: 600; }

.d-cola { display: grid; gap: 4px; }
.d-cola button { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 7px 10px; border-radius: 10px; text-align: left; font-size: 14px; }
.d-cola button:hover { background: var(--bone); }
.d-cola button[aria-pressed="true"] { background: var(--bone); box-shadow: inset 3px 0 0 var(--wine); }
.d-cola i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--noir); color: var(--cream); font-size: 12px; font-style: normal; font-weight: 600; }
.d-cola b { display: block; font-weight: 500; line-height: 1.25; }
.d-cola small { font-size: 12px; color: var(--muted); }
.d-cola em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.d-cola .hecho { opacity: .45; }
.d-cola .hecho i { background: var(--ok); }
#demo-caja .d-chips + .d-borrador { margin-top: 12px; }

.d-vencen { display: grid; gap: 8px; margin-top: 14px; }
.d-vencen li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.d-vencen li.urgente { border-color: var(--wine); }
.d-dias { text-align: center; }
.d-dias b { display: block; font-size: 22px; font-weight: 600; line-height: 1; }
.d-dias small { font-size: 11px; color: var(--muted); }
.urgente .d-dias b { color: var(--wine); }
.d-doc b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.d-doc span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.d-doc small { display: block; font-size: 11.5px; color: var(--muted); }
.d-prog { display: block; height: 5px; margin: 6px 0 3px; border-radius: 3px; background: var(--bone); overflow: hidden; }
.d-prog em { display: block; height: 100%; background: var(--noir); }
.d-vencen .d-btn { min-height: 36px; padding: 0 14px; font-size: 12.5px; }
@media (max-width: 520px) { .d-vencen li { grid-template-columns: 48px minmax(0, 1fr); } .d-vencen li > :last-child { grid-column: 2; justify-self: start; } }

.comparar { display: grid; gap: 6px; margin-top: 24px; }
.comparar-t { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; justify-self: start; box-shadow: inset 0 0 0 1px var(--line); margin-top: 20px; }
.comparar-t button { min-height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.comparar-t button[aria-pressed="true"] { background: var(--noir); color: var(--cream); }
.dia { display: grid; gap: 10px; margin-top: 18px; }
.dia li { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.dia time { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dia p { font-size: 16px; line-height: 1.45; }
.dia .despues { display: none; }
[data-comparar="despues"] .dia .antes { display: none; }
[data-comparar="despues"] .dia .despues { display: block; font-weight: 500; }
[data-comparar="despues"] .dia li { border-color: var(--wine); }
[data-comparar="despues"] .dia time { color: var(--wine); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.calc-in { display: grid; gap: 22px; }
.calc label { display: block; }
.calc label > span { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 500; }
.calc output { font-weight: 600; color: var(--wine); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc input { width: 100%; min-height: 34px; margin-top: 4px; accent-color: var(--wine); }
.calc-out { padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: var(--noir); color: var(--cream); }
.calc-out small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(250, 250, 248, .6); }
.calc-out strong { display: block; margin-top: 6px; font-size: clamp(38px, 5.4vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.calc-out ul { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(250, 250, 248, .16); }
.calc-out li { display: flex; justify-content: space-between; gap: 16px; font-size: 14.5px; color: rgba(250, 250, 248, .78); }
.calc-out li b { font-weight: 600; color: var(--cream); white-space: nowrap; }
.calc-out p { margin-top: 18px; font-size: 12.5px; line-height: 1.5; color: rgba(250, 250, 248, .55); }
@media (max-width: 820px) { .calc { grid-template-columns: minmax(0, 1fr); } }

.rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.rejilla li { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.rejilla b { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; }
.rejilla span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .rejilla { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rejilla { grid-template-columns: 1fr; gap: 10px; } .rejilla li { padding: 20px; } }

.arq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.arq-capas { display: grid; gap: 7px; }
.arq-capas button { width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: left; transition: background .25s, color .25s, border-color .25s, transform .25s; }
.arq-capas b { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.arq-capas span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.arq-capas button.on { background: var(--wine); border-color: var(--wine); color: var(--cream); transform: translateX(6px); }
.arq-capas button.on span { color: rgba(250, 250, 248, .78); }
.arq-p { position: sticky; top: 76px; padding: clamp(20px, 3vw, 28px); border-radius: 20px; background: var(--noir); color: var(--cream); }
.arq-p .d-chips button { background: transparent; border-color: rgba(250, 250, 248, .25); color: var(--cream); }
.arq-p .d-chips button[aria-pressed="true"] { background: var(--cream); color: var(--noir); }
.arq-p small { display: block; margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wine-light); }
.arq-p p { margin-top: 8px; min-height: 92px; font-size: clamp(18px, 2vw, 21px); line-height: 1.4; font-weight: 500; }
.arq-ctrl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.arq-ctrl button { min-height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(250, 250, 248, .12); color: var(--cream); font-size: 14px; font-weight: 500; }
.arq-ctrl button:disabled { opacity: .35; cursor: default; }
.arq-ctrl #arq-auto { background: var(--wine); }
@media (max-width: 860px) { .arq { grid-template-columns: minmax(0, 1fr); } .arq-p { order: -1; top: 60px; z-index: 5; } .arq-p p { min-height: 86px; font-size: 16.5px; } .arq-capas button { padding: 10px 14px; } .arq-capas button.on { transform: none; } }

.caso-r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 48px; margin-top: 32px; align-items: start; }
.caso-c { display: grid; gap: 12px; }
.caso-c > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.caso-c .ahora { background: var(--noir); border-color: var(--noir); color: var(--cream); }
.caso-c .ahora .eyebrow { color: var(--wine-light); }
.caso-c p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; }
.caso-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--noir); }
.caso-cifras em { display: block; min-height: 18px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--wine); }
.caso-cifras strong { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; }
.caso-cifras span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.escala { margin-top: 48px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--wine); color: var(--cream); }
.escala h3 { font-size: clamp(24px, 3vw, 36px); font-weight: 600; line-height: 1.12; letter-spacing: -.025em; max-width: 22ch; }
.escala > p { margin-top: 12px; max-width: 62ch; color: rgba(250, 250, 248, .85); }
.escala ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.escala li { padding-top: 14px; border-top: 1px solid rgba(250, 250, 248, .35); font-size: 14px; line-height: 1.4; }
.escala b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.escala .otros { margin-top: 22px; font-size: 14px; font-weight: 500; }
@media (max-width: 860px) { .caso-r { grid-template-columns: minmax(0, 1fr); gap: 28px; } .escala ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .escala ul { grid-template-columns: 1fr; } }

.etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.etapas li { padding-top: 18px; border-top: 2px solid var(--noir); }
.etapas li:nth-child(2) { border-color: var(--wine); }
.etapas b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.etapas span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .etapas { grid-template-columns: 1fr 1fr; gap: 28px 14px; } }
@media (max-width: 560px) { .etapas { grid-template-columns: 1fr; gap: 22px; } }

.faq { margin-top: 32px; border-top: 1px solid var(--noir); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 28px 18px 0; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; font-weight: 400; color: var(--wine); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding-bottom: 20px; color: var(--muted); max-width: 66ch; }

.cierre { background: var(--noir); color: var(--cream); }
.cierre .eyebrow { color: var(--wine-light); }
.cierre h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1.04; max-width: 14ch; }
.cierre p { margin-top: 20px; font-size: 18px; color: rgba(250, 250, 248, .72); max-width: 50ch; }
.pie { background: var(--noir); color: rgba(250, 250, 248, .45); border-top: 1px solid rgba(250, 250, 248, .1); padding: 22px 0; font-size: 13px; }
.pie .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pie svg { height: 24px; width: auto; margin-left: -5px; }

.plan-lista { display: grid; gap: 14px; margin-top: 32px; }
.plan-lista > li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.plan-lista i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: var(--cream); font-style: normal; font-weight: 600; }
.plan-lista b { display: block; font-size: 18px; font-weight: 600; }
.plan-lista span { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.plan-lista a { font-size: 14px; font-weight: 600; color: var(--wine); white-space: nowrap; text-underline-offset: 4px; }
@media (max-width: 620px) { .plan-lista > li { grid-template-columns: 44px minmax(0, 1fr); } .plan-lista a { grid-column: 2; } }
.hipotesis { margin-top: 28px; display: grid; gap: 10px; }
.hipotesis li { padding: 16px 18px; border-left: 3px solid var(--wine); background: #fff; border-radius: 0 12px 12px 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .d-scan, .d-pensando i, .suya.escribe i { animation: none; } }
@media print {
  @page { size: A4; margin: 12mm; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .nav, .lab, .tabs, .arq-ctrl { display: none; }
  section { padding: 28px 0; }
  .rejilla li, .etapas li, .faq details, .plan-lista > li, .escala { break-inside: avoid; }
}
@media (max-width: 860px) {
  .lab-lista { flex-wrap: wrap; overflow: visible; }
  .d-conversacion { max-height: none; }
  .d-tareas { max-height: none; }
  .d-telefono { margin-top: 7px; margin-bottom: 7px; }
}
.d-lateral .d-kpis li.vino { background: var(--wine); }
.d-revision span { display: block; }
.d-campo output { white-space: nowrap; }
@media (max-width: 860px) { .arq-p { position: static; } }
@media (max-width: 480px) { .mk-pasos button { gap: 3px; padding: 0 3px; font-size: 11.5px; } }
