/* D&A Solution Services — demo web (Nexur Solutions). Sin fuentes ni recursos externos.
   Dirección: ordenada, luminosa y confiable. Neutros fríos (tinta), un solo acento: el azul del logo.
   Firma: el pin del logo marca cada parada y cada zona. */
:root {
  /* neutros (rampa tinta, clara) */
  --bg: #F5F7FA; --card: #FFFFFF; --raised: #ECEFF4; --line: rgba(17,24,39,.08); --line-2: rgba(17,24,39,.12);
  --ink: #111827; --ink-2: #4B5565; --muted: #6B7487; --faint: #A9B0BE;
  /* marca */
  --navy: #0A1464; --blue: #1F4FD6; --blue-press: #1A43B8; --blue-soft: #E9EFFC; --sky: #3A88F0;
  --grad: #1F4FD6; /* compatibilidad: ya no hay degradés en la interfaz */
  /* semánticos, apagados */
  --red: #D23F44; --red-soft: #FBECEC; --ok: #178A55; --ok-soft: #E6F4EC; --amber: #A86A0A; --amber-soft: #FBF1DE;
  --land: #EEF1F6; --water: #DCE7F6;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sh-1: 0 1px 2px rgba(17,24,39,.05);
  --sh-2: 0 1px 2px rgba(17,24,39,.04), 0 8px 24px rgba(17,24,39,.06);
  --sh-3: 0 2px 6px rgba(17,24,39,.06), 0 24px 60px rgba(17,24,39,.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms; --t-mid: 200ms; --t-slow: 420ms;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
a { color: var(--blue); text-decoration: none; -webkit-tap-highlight-color: transparent; }
img { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; } .col { display: flex; flex-direction: column; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.g4 { gap: 4px; } .g6 { gap: 6px; } .g8 { gap: 8px; } .g10 { gap: 10px; } .g12 { gap: 12px; } .g16 { gap: 16px; } .g20 { gap: 20px; }
.grow { flex: 1; min-width: 0; } .muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .bold { font-weight: 600; } .heavy { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; } .red { color: var(--red); } .blue { color: var(--blue); } .okc { color: var(--ok); } .navy { color: var(--navy); } .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .nowrap { white-space: nowrap; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }

/* Barra de demo */
.demobar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: rgba(255,255,255,.86); font-size: 12.5px; height: 36px; padding: 0 16px; display: flex; align-items: center; gap: 12px; view-transition-name: demobar; }
.demobar .tag { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; font-size: 11px; letter-spacing: .04em; padding: 2px 8px; border-radius: 4px; }
.demobar select, .demobar button { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; height: 26px; padding: 0 8px; font-size: 12.5px; transition: background-color var(--t-fast) var(--ease); }
.demobar button:hover, .demobar select:hover { background: rgba(255,255,255,.18); }
.demobar select option { color: #000; }
.demobar .sp { flex: 1; }
.demobar .dtxt-m, .demobar .ricon { display: none; }
.demobar > * { flex-shrink: 0; white-space: nowrap; } .demobar .dtxt { flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* Piezas */
.card { background: var(--card); border-radius: 16px; padding: 20px; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.card.grad { background: var(--navy); color: #fff; box-shadow: var(--sh-2); }
.card.navyc { background: var(--navy); color: #fff; }
.h1 { font-family: var(--display); font-size: 32px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.h2 { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--muted); }
.eyebrow::first-letter { text-transform: uppercase; }
.sec { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 24px 4px 8px; gap: 8px; }
.sec > span:last-child { font-weight: 400; color: var(--muted); }
.sec .lnk { color: var(--blue); font-size: 13px; font-weight: 500; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--blue); color: #fff; box-shadow: var(--sh-1), inset 0 1px 0 rgba(255,255,255,.14); }
.btn.primary:hover { background: var(--blue-press); }
.btn.navy { background: var(--ink); color: #fff; }
.btn.navy:hover { background: #1F2937; }
.btn.light { background: #fff; color: var(--ink); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.btn.ghost:hover { background: var(--raised); }
.btn.wa { background: #178A55; color: #fff; }
.btn.wa:hover { background: #12734A; }
.btn.danger { background: var(--red); color: #fff; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 8px; }
.btn.xs { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.block { display: flex; width: 100%; }
.btn.big { height: 52px; border-radius: 12px; font-size: 16px; }
.card.grad .btn.light { background: #fff; color: var(--navy); }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.red::before { content: ""; width: 6px; height: 6px; border-radius: 3px; background: currentColor; }
.badge.redsoft { background: var(--red-soft); color: var(--red); } .badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.blue { background: var(--blue-soft); color: var(--blue); } .badge.amber { background: var(--amber-soft); color: var(--amber); } .badge.gray { background: var(--raised); color: var(--ink-2); } .badge.navy { background: var(--ink); color: #fff; }
.card.grad .badge.red { background: rgba(255,255,255,.14); color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--ink-2); transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.chip:hover { background: var(--raised); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { display: flex; background: var(--raised); border-radius: 10px; padding: 3px; position: relative; }
.seg > button { flex: 1; text-align: center; font-size: 13.5px; font-weight: 500; padding: 6px 12px; border-radius: 7px; color: var(--ink-2); transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.seg > button.on { background: #fff; color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.list { background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; position: relative; width: 100%; text-align: left; color: var(--ink); transition: background-color var(--t-fast) var(--ease); }
.item + .item::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
button.item:hover, a.item:hover { background: #F8F9FB; }
button.item:active, a.item:active { background: var(--raised); }
.item .t { font-weight: 500; } .item .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.urgent-line { box-shadow: inset 3px 0 0 var(--red); }
.av { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; color: #fff; flex-shrink: 0; }
.av.none { background: #fff; box-shadow: inset 0 0 0 1.5px var(--faint); color: var(--muted); }
.ico { width: 18px; height: 18px; flex-shrink: 0; } .ico.sm { width: 16px; height: 16px; } .ico.xs { width: 14px; height: 14px; }
.icc { width: 32px; height: 32px; border-radius: 8px; background: var(--raised); color: var(--ink-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.kpi > .small:first-child { color: var(--muted) !important; font-weight: 500; }
.kpi .v { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .v.red { color: var(--red); } .kpi .v.okc { color: var(--ok); }
.window { position: relative; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; }
.window > i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--blue); transform-origin: left; }
.window.urgent > i { background: var(--red); }
.card.grad .window { background: rgba(255,255,255,.16); } .card.grad .window > i { background: #fff; }
.bar { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; } .bar > i { display: block; height: 100%; border-radius: 3px; background: var(--blue); transform-origin: left; } .bar.low > i { background: var(--red); }
.alert { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 12px 16px; background: var(--card); box-shadow: inset 3px 0 0 var(--red), var(--sh-1), 0 0 0 1px var(--line); }
.alert.amber { box-shadow: inset 3px 0 0 var(--amber), var(--sh-1), 0 0 0 1px var(--line); }
.alert .ic { width: 28px; height: 28px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alert.amber .ic { background: var(--amber-soft); color: var(--amber); }
.field { display: block; background: var(--card); border-radius: 10px; padding: 8px 12px; box-shadow: 0 0 0 1px var(--line-2); transition: box-shadow var(--t-fast) var(--ease); }
.field label { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; padding: 2px 0; }
.field:focus-within { box-shadow: 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(31,79,214,.12); }
.check { width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--faint); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #fff; color: #fff; transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.check.on { background: var(--ok); box-shadow: none; }
.check.on svg { stroke-dasharray: 24; stroke-dashoffset: 0; animation: draw 260ms var(--ease); }
@keyframes draw { from { stroke-dashoffset: 24; } }
.photo { border-radius: 10px; overflow: hidden; position: relative; flex-shrink: 0; width: 72px; height: 60px; box-shadow: 0 0 0 1px var(--line); }
.ph-bed { background: linear-gradient(180deg, #E4EAF3 0 46%, #F4F6F9 46%); } .ph-bed::before { content: ""; position: absolute; left: 14%; right: 14%; top: 34%; height: 40%; border-radius: 6px; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.08); }
.ph-kitchen { background: linear-gradient(180deg, #F2F4F7 0 55%, #CDD3DD 55% 60%, #E7EAF0 60%); } .ph-kitchen::before { content: ""; position: absolute; left: 12%; right: 12%; top: 14%; height: 30%; border-radius: 4px; background: repeating-linear-gradient(90deg, #fff 0 30%, #DEE3EA 30% 33%); }
.ph-bath { background: #E9EEF5; } .ph-bath::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 14%; height: 34%; border-radius: 8px 8px 12px 12px; background: #fff; }
.ph-add { box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--card); display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: background-color var(--t-fast) var(--ease); }
.ph-add:hover { background: var(--raised); }
.photo.new { animation: pop 320ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.92); } }

/* Pin numerado: la firma (sale del pin del logo) */
.stopn { position: relative; isolation: isolate; width: 26px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: flex-start; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; padding-top: 5px; line-height: 1; }
.stopn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M13 30C13 30 0 19 0 12.5A13 12.5 0 0 1 26 12.5C26 19 13 30 13 30Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 30'%3E%3Cpath d='M13 30C13 30 0 19 0 12.5A13 12.5 0 0 1 26 12.5C26 19 13 30 13 30Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.stopn.done::before { background: var(--ok); }
.stopn.big { width: 34px; height: 40px; font-size: 15px; padding-top: 7px; }

/* Panel: estructura */
.shell { display: flex; min-height: calc(100vh - 36px); }
.side { width: 248px; flex-shrink: 0; background: var(--card); box-shadow: 1px 0 0 var(--line); padding: 20px 12px; position: sticky; top: 36px; height: calc(100vh - 36px); display: flex; flex-direction: column; gap: 2px; view-transition-name: side; }
.side .brand { margin: 0 8px 20px; }
.side .nav { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 8px; font-weight: 500; font-size: 14px; color: var(--ink-2); width: 100%; text-align: left; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.side .nav .ico { color: var(--muted); transition: color var(--t-fast) var(--ease); }
.side .nav:hover { background: #F4F6F9; }
.side .nav.on { background: var(--raised); color: var(--ink); }
.side .nav.on .ico { color: var(--blue); }
.side .nav .pill, .tabbar .pill { margin-left: auto; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; font-variant-numeric: tabular-nums; }
.side .plan { margin-top: auto; padding: 16px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.main { flex: 1; min-width: 0; padding: 28px 32px 128px; max-width: 1240px; view-transition-name: main; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .w1 { font-weight: 700; color: var(--navy); font-size: 16px; line-height: 1; letter-spacing: .01em; } .brand .w2 { font-size: 9px; letter-spacing: .14em; font-weight: 600; color: var(--navy); margin-top: 2px; }
.tabbar { display: none; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.table tr:last-child td { border-bottom: 0; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Calendario */
.cal { min-width: 720px; }
.cal .head, .cal .r { display: grid; grid-template-columns: 152px repeat(7, 1fr); align-items: center; }
.cal .head div { text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); padding: 4px 0; text-transform: capitalize; }
.cal .head div.today { color: var(--blue); background: var(--blue-soft); border-radius: 6px; margin: 0 6px; }
.cal .r { height: 40px; border-top: 1px solid var(--line); position: relative; }
.cal .r .u { font-size: 13px; font-weight: 500; line-height: 1.15; } .cal .r .u small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.cal .lane { position: absolute; left: 152px; right: 0; top: 0; bottom: 0; }
.cal .stay { position: absolute; top: 12px; height: 16px; border-radius: 8px; }
.cal .mk { position: absolute; top: 8px; width: 24px; height: 24px; margin-left: -12px; border-radius: 7px; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; z-index: 2; }
.cal .gh { display: flex; justify-content: space-between; align-items: center; height: 36px; margin-top: 8px; }

/* Mapa */
.mapbox { position: relative; background: var(--water); border-radius: 16px; overflow: hidden; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.mapbox svg { display: block; width: 100%; height: auto; }
.mapbox .lbl { position: absolute; left: 12px; font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 6px; }
.pin { cursor: pointer; }
.pin > .shape { transition: transform var(--t-mid) var(--ease); transform-box: fill-box; transform-origin: center bottom; }
.pin:hover > .shape { transform: translateY(-3px); }
.route-line { stroke-dasharray: 1400; stroke-dashoffset: 0; }
.anim .route-line { animation: route 1200ms var(--ease) 250ms both; }
@keyframes route { from { stroke-dashoffset: 1400; } }

/* Entradas (solo al cambiar de pantalla) */
.anim .enter { animation: rise var(--t-slow) var(--ease) both; }
.anim .enter:nth-child(2) { animation-delay: 50ms; } .anim .enter:nth-child(3) { animation-delay: 100ms; } .anim .enter:nth-child(4) { animation-delay: 150ms; } .anim .enter:nth-child(5) { animation-delay: 200ms; } .anim .enter:nth-child(n+6) { animation-delay: 250ms; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.anim .window > i, .anim .bar > i { animation: grow 800ms var(--ease) 180ms both; }
@keyframes grow { from { transform: scaleX(0); } }
.anim .chartbar { animation: growy 800ms var(--ease) both; transform-origin: bottom; }
@keyframes growy { from { transform: scaleY(0); } }

/* Transición entre pantallas (View Transitions: disolución con un leve ascenso) */
::view-transition-old(main) { animation: vt-out 180ms var(--ease) both; }
::view-transition-new(main) { animation: vt-in 400ms var(--ease) both; }
::view-transition-old(root) { animation: vt-fade-out 200ms var(--ease) both; }
::view-transition-new(root) { animation: vt-fade-in 360ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in { from { opacity: 0; } }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(17,24,39,.36); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade 200ms var(--ease) both; }
.modal { background: var(--bg); border-radius: 20px; width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--sh-3); animation: sheet 380ms var(--ease) both; overscroll-behavior: contain; }
.modal-bg.out { animation: fade-out 180ms var(--ease) both; }
.modal-bg.out .modal { animation: sheet-out 180ms var(--ease) both; }
@keyframes fade { from { opacity: 0; } } @keyframes fade-out { to { opacity: 0; } }
@keyframes sheet { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(8px) scale(.99); } }
.modal .mh { position: sticky; top: 0; background: rgba(245,247,250,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 1px 0 var(--line); z-index: 2; }
.modal .mb { padding: 16px 20px 24px; }
.modal .mb.swap { animation: fade 240ms var(--ease) both; }
.x { width: 32px; height: 32px; border-radius: 8px; background: var(--raised); display: flex; align-items: center; justify-content: center; transition: background-color var(--t-fast) var(--ease); }
.x:hover { background: #E1E5EC; }
.mail { background: #fff; border-radius: 14px; padding: 20px; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.mail .from { font-size: 12.5px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 14px; z-index: 200; box-shadow: var(--sh-3); max-width: calc(100vw - 32px); text-align: center; animation: toast 2600ms var(--ease) both; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 4px); } }

/* Web pública */
.pub { background: var(--bg); min-height: calc(100vh - 36px); position: relative; overflow: hidden; view-transition-name: main; }
.pub .glow { display: none; }
.pub .top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; gap: 16px; max-width: 1280px; margin: 0 auto; }
.pub .menu { display: flex; align-items: center; gap: 24px; font-weight: 500; color: var(--ink-2); font-size: 14.5px; }
.pub .menu a { color: var(--ink-2); transition: color var(--t-fast) var(--ease); } .pub .menu a:hover { color: var(--ink); }
.pub .hero { position: relative; display: grid; grid-template-columns: 1fr 480px; gap: 64px; padding: 32px 48px 64px; max-width: 1280px; margin: 0 auto; align-items: center; min-height: calc(100vh - 36px - 84px); }
.pub h1 { font-family: var(--display); font-size: 60px; line-height: 1.04; letter-spacing: -.03em; color: var(--navy); font-weight: 600; }
.pub .lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 20px; max-width: 34rem; }
.pub .eyebrow { color: var(--blue); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 32px; max-width: 600px; font-size: 14.5px; }
.feats .bold { font-weight: 500; }
.feats .icc { background: var(--blue-soft); color: var(--blue); }
.quote { border-radius: 20px; padding: 24px; box-shadow: var(--sh-3), 0 0 0 1px var(--line); background: #fff; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; line-height: 1.25; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); background: #fff; width: 100%; text-align: left; transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.opt:hover { background: #F8F9FB; }
.opt:active { transform: scale(.98); }
.opt.on { box-shadow: 0 0 0 1.5px var(--blue); background: var(--blue-soft); }
.opt .grow { font-weight: 500 !important; }
.opt .radio { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); flex-shrink: 0; transition: box-shadow var(--t-mid) var(--ease); }
.opt.on .radio { box-shadow: inset 0 0 0 5px var(--blue); }
.opt .cb { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--faint); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.opt .cb svg { opacity: 0; transition: opacity var(--t-fast) var(--ease); }
.opt.on .cb { background: var(--blue); box-shadow: none; }
.opt.on .cb svg { opacity: 1; stroke-dasharray: 24; animation: draw 240ms var(--ease); }

/* Barra para arrastrar (tamaño) */
.range { position: relative; height: 36px; margin-top: 4px; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.range.drag { cursor: grabbing; }
.range .track { position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 2px; background: var(--raised); }
.range .fill { position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 2px; background: var(--blue); transform-origin: left; }
.range .knob { position: absolute; top: 6px; left: 0; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(17,24,39,.25), 0 0 0 1px var(--line-2); transition: box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.range.drag .knob, .range:focus-visible .knob { box-shadow: 0 1px 3px rgba(17,24,39,.25), 0 0 0 6px rgba(31,79,214,.14); transform: scale(1.08); }
.range:focus-visible { outline: none; }
.range .ticks { position: absolute; left: 0; right: 0; top: 26px; display: flex; justify-content: space-between; pointer-events: none; }
.range .ticks i { width: 1px; height: 4px; background: var(--faint); }
.sizev { font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.total { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-radius: 14px; background: var(--navy); color: #fff; margin-top: 16px; }
.total .price { font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; display: inline-block; }
.total .bd { font-size: 12px; color: rgba(255,255,255,.72); margin-top: 4px; font-variant-numeric: tabular-nums; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 48px 64px; max-width: 1280px; margin: 0 auto; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 48px 64px; max-width: 1280px; margin: 0 auto; }
.pub .sect-title { max-width: 1280px; margin: 0 auto; padding: 0 48px 20px; font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.foot { text-align: center; padding: 24px 16px 48px; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .demobar .dtxt, .demobar .vlbl, .demobar .rlbl { display: none; } .demobar .dtxt-m, .demobar .ricon { display: inline; } .demobar { gap: 8px; padding: 0 12px; } .demobar select { max-width: 108px; } .demobar { gap: 6px; padding: 0 10px; } }
@media (max-width: 900px) {
  .side { display: none; }
  .main { padding: 20px 16px 128px; }
  .tabbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 64px; border-radius: 22px; z-index: 40; view-transition-name: tabbar;
    background: rgba(255,255,255,.76); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(17,24,39,.14); align-items: center; justify-content: space-around; padding: 0 4px; }
  .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--muted); padding: 6px 8px; border-radius: 14px; position: relative; min-width: 60px; transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), transform var(--t-fast) var(--ease); }
  .tabbar button:active { transform: scale(.94); }
  .tabbar button.on { color: var(--blue); background: rgba(31,79,214,.08); }
  .tabbar .pill { position: absolute; top: 0; right: 10px; margin: 0; }
  .two, .three { grid-template-columns: 1fr; }
  .h1 { font-size: 28px; }
  .pub .top { padding: 16px; } .pub .menu { gap: 16px; } .pub .menu .hide-m { display: none; }
  .pub .hero { grid-template-columns: 1fr; padding: 16px 16px 40px; gap: 32px; min-height: 0; }
  .pub h1 { font-size: 40px; }
  .pub .sect-title { padding: 0 16px 16px; font-size: 24px; }
  .feats { grid-template-columns: 1fr; }
  .steps, .packs { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; padding-bottom: 40px; }
  .quote { padding: 20px; }
  .modal-bg { align-items: flex-end; padding: 0; }
  .modal { border-radius: 20px 20px 0 0; max-height: 92vh; animation-name: sheet-m; }
  @keyframes sheet-m { from { transform: translateY(48px); opacity: 0; } }
}
