/* demo-pagina.css — la página /demo (22-oct-2026).
   Marco de abhalo (grafito, cian) por fuera; el escenario se viste con el sector elegido: variables --d-* en
   .d-main[data-tema], sus letras (css/demo-fuente-<slug>.css, cargado solo para el sector elegido) y su motivo de fondo.
   Texto >= 18 px, líneas cortas, foco visible, sin brillos ni cristal. Los pares de color se comprueban con
   herramientas/demo_v2/probar_pagina.py (AA). */

.d-main {
  --d-fondo: #f1efe9; --d-sup: #e4e1d8; --d-texto: #1c1b19; --d-suave: #4d4a44; --d-borde: #6b675e;
  --d-acento: #0a6277; --d-sobre: #ffffff; --d-enlace: #0a6277; --d-marca: #cfe9ef;
  --d-fuente: "Abhalo Marca", system-ui, sans-serif; --d-titulo: "Abhalo Marca", system-ui, sans-serif;
  --d-peso: 800; --d-radio: 3px; --d-motivo: none;
  position: relative; z-index: 0; overflow: clip;
  background: var(--d-fondo); color: var(--d-texto); font-family: var(--d-fuente); font-size: 1.125rem; line-height: 1.6;
  padding-bottom: clamp(56px, 8vw, 110px);
  transition: background-color .5s ease, color .5s ease;
}
.d-main :where(p, h1, h2) { max-width: none; }
.d-main a { color: var(--d-enlace); }
.d-main :focus-visible { outline: 3px solid var(--d-enlace); outline-offset: 3px; border-radius: 2px; }
.d-main h1, .d-main h2 { font-family: var(--d-titulo); font-weight: var(--d-peso); }
.d-main .m-et { color: var(--d-suave); }
.d-main .m-et b { color: var(--d-enlace); }

/* ───────── temas: una paleta, una letra y un motivo por sector (los valores salen de fuente/sectores/<slug>/estilo.css) ───────── */
.d-main[data-tema="dental"] { --d-fondo:#F6F0E4; --d-sup:#EBDFC8; --d-texto:#12302A; --d-suave:#4A5A54; --d-borde:#6F7C76; --d-acento:#B83F24; --d-sobre:#F6F0E4; --d-enlace:#B83F24; --d-marca:#E9C9AE;
  --d-fuente:"Dental Texto","Atkinson Hyperlegible",system-ui,sans-serif; --d-titulo:"Dental Titulos",Georgia,serif; --d-peso:700; --d-radio:2px; }
.d-main[data-tema="fisioterapia"] { --d-fondo:#EDEFE6; --d-sup:#DDE3D2; --d-texto:#161C1A; --d-suave:#4B5550; --d-borde:#161C1A; --d-acento:#C42E65; --d-sobre:#FFFFFF; --d-enlace:#B02456; --d-marca:#D5F03F;
  --d-fuente:"Fisio Texto",Lexend,system-ui,sans-serif; --d-titulo:"Fisio Titulos","Arial Black",Impact,sans-serif; --d-peso:800; --d-radio:0; }
.d-main[data-tema="veterinarias"] { --d-fondo:#F3EBDC; --d-sup:#FFFAF0; --d-texto:#232B21; --d-suave:#565E50; --d-borde:#7D7560; --d-acento:#B8451A; --d-sobre:#FFFAF0; --d-enlace:#A53D15; --d-marca:#EBCBA8;
  --d-fuente:"Vet Texto",Andika,"Trebuchet MS",sans-serif; --d-titulo:"Vet Titulos","Young Serif",Georgia,serif; --d-peso:400; --d-radio:10px; }
.d-main[data-tema="estetica"] { --d-fondo:#F6E3DE; --d-sup:#FDF6F3; --d-texto:#2A1618; --d-suave:#6A4F52; --d-borde:#8C6D70; --d-acento:#7C2336; --d-sobre:#FDF6F3; --d-enlace:#7C2336; --d-marca:#EDBFB6;
  --d-fuente:"Estetica Texto","Instrument Sans",Arial,sans-serif; --d-titulo:"Estetica Titulos","Bodoni Moda",Didot,Georgia,serif; --d-peso:500; --d-radio:0; }
.d-main[data-tema="inmobiliarias"] { --d-fondo:#E4E8E3; --d-sup:#F7F8F5; --d-texto:#1B2526; --d-suave:#46534F; --d-borde:#1B2526; --d-acento:#A83B22; --d-sobre:#FFFFFF; --d-enlace:#A83B22; --d-marca:#F3D45A;
  --d-fuente:"Inmobiliarias Texto",system-ui,sans-serif; --d-titulo:"Inmobiliarias Titulos",Georgia,serif; --d-peso:400; --d-radio:2px; }
.d-main[data-tema="talleres"] { --d-fondo:#dde1e1; --d-sup:#f2f4f3; --d-texto:#14202b; --d-suave:#46535f; --d-borde:#46535f; --d-acento:#f4c20d; --d-sobre:#14202b; --d-enlace:#1d4a85; --d-marca:#f4d65a;
  --d-fuente:"Talleres Texto","IBM Plex Sans",system-ui,sans-serif; --d-titulo:"Talleres Titulos",Rockwell,"Roboto Slab",serif; --d-peso:700; --d-radio:3px; }
.d-main[data-tema="restaurantes"] { --d-fondo:#17211c; --d-sup:#223029; --d-texto:#f1eee6; --d-suave:#b7c3b9; --d-borde:#5b6d61; --d-acento:#f0583f; --d-sobre:#17211c; --d-enlace:#ff8a73; --d-marca:#7a2c20;
  --d-fuente:"Restaurantes Texto",Karla,system-ui,sans-serif; --d-titulo:"Restaurantes Cartel",Georgia,serif; --d-peso:400; --d-radio:0; }
.d-main[data-tema="asesorias"] { --d-fondo:#14302B; --d-sup:#1c3d36; --d-texto:#F2F0E8; --d-suave:#B8C7BF; --d-borde:#7f9a8f; --d-acento:#B3291E; --d-sobre:#ffffff; --d-enlace:#F2D45C; --d-marca:#5d4a12;
  --d-fuente:"Asesorias Texto",system-ui,sans-serif; --d-titulo:"Asesorias Titulos",Georgia,serif; --d-peso:400; --d-radio:1px; }

/* Motivos de fondo (solo líneas y tramas finas: ni brillos ni degradados suaves) */
.d-fondo { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: d-entra .6s ease both; }
.d-fondo::before, .d-fondo::after { content: ""; position: absolute; }
@keyframes d-entra { from { opacity: 0; } to { opacity: 1; } }
.d-main[data-tema="dental"] .d-fondo { background-image: repeating-linear-gradient(0deg, transparent 0 35px, rgba(18,48,42,.09) 35px 36px); }
.d-main[data-tema="dental"] .d-fondo::after { top: 26px; right: 4%; width: min(300px, 40vw); height: 18px;
  background: linear-gradient(90deg, #F2E6D0 0 20%, #EAD9BC 20% 40%, #E0CBA6 40% 60%, #D2B98F 60% 80%, #C2A67A 80%); border: 1px solid rgba(18,48,42,.35); }
.d-main[data-tema="fisioterapia"] .d-fondo { background-image: linear-gradient(rgba(22,28,26,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(22,28,26,.1) 1px, transparent 1px); background-size: 28px 28px; }
.d-main[data-tema="fisioterapia"] .d-fondo::after { top: -40px; left: 38%; width: 54px; height: 460px; background: rgba(196,46,101,.22); transform: rotate(32deg); }
.d-main[data-tema="veterinarias"] .d-fondo { background-image: radial-gradient(circle, rgba(35,43,33,.12) 1.2px, transparent 1.6px); background-size: 18px 18px; }
.d-main[data-tema="veterinarias"] .d-fondo::after { top: 0; bottom: 0; left: 10px; width: 16px; background: radial-gradient(circle at 8px 8px, #232B21 0 5px, transparent 5.5px) 0 0 / 16px 34px repeat-y; opacity: .18; }
.d-main[data-tema="estetica"] .d-fondo { background-image: repeating-linear-gradient(90deg, rgba(124,35,54,.14) 0 1px, transparent 1px calc(100% / 6)); }
.d-main[data-tema="estetica"] .d-fondo::after { content: "N° 07"; right: 5%; top: 18px; font: 500 1rem/1 var(--d-titulo); letter-spacing: .3em; color: #7C2336; }
.d-main[data-tema="inmobiliarias"] .d-fondo { background-image: linear-gradient(rgba(27,37,38,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(27,37,38,.12) 1px, transparent 1px), linear-gradient(rgba(27,37,38,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(27,37,38,.05) 1px, transparent 1px); background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px; }
.d-main[data-tema="talleres"] .d-fondo { background-image: repeating-linear-gradient(-45deg, #f4c20d 0 14px, #14202b 14px 28px); background-size: 100% 14px; background-repeat: no-repeat; }
.d-main[data-tema="talleres"] .d-fondo::after { inset: 14px 0 0; background-image: radial-gradient(circle, rgba(20,32,43,.13) 1.3px, transparent 1.7px); background-size: 22px 22px; }
.d-main[data-tema="restaurantes"] .d-fondo { background-image: radial-gradient(circle, rgba(241,238,230,.22) 1.4px, transparent 1.9px); background-size: 14px 52px; }
.d-main[data-tema="asesorias"] .d-fondo { background-image: repeating-linear-gradient(0deg, transparent 0 39px, rgba(242,240,232,.12) 39px 40px); }
.d-main[data-tema="asesorias"] .d-fondo::after { top: 0; bottom: 0; left: clamp(14px, 5vw, 70px); width: 7px; border-left: 1px solid rgba(179,41,30,.9); border-right: 1px solid rgba(179,41,30,.9); }
.d-main[data-tema="custom"] .d-fondo { background-image: radial-gradient(circle, var(--d-borde) 1px, transparent 1.5px); background-size: 24px 24px; opacity: .35; }

/* ───────── cabecera de la página ───────── */
.d-cab { position: relative; }
.d-h1 { font-size: clamp(2.7rem, 6.2vw, 4.7rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 .25em; text-wrap: balance; }
.d-h1-2 { display: inline-block; margin-left: .6em; color: var(--d-enlace); background: linear-gradient(transparent 64%, var(--d-marca) 64% 93%, transparent 93%); padding: 0 .12em; }
.d-lead { font-size: 1.25rem; max-width: 34ch !important; color: var(--d-texto); margin: .6rem 0 0; }
.d-sinjs { background: #fff3c4; color: #3d3200; padding: 1rem; border: 2px solid #3d3200; margin-top: 1rem; }

/* ───────── selector de sector ───────── */
.d-selector { margin-top: clamp(22px, 3vw, 36px); }
.d-main .d-sel-t { font-family: var(--m-mono); font-weight: 500; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--d-suave); margin: 0 0 .7rem; }
.d-chips { display: flex; gap: .6rem; overflow-x: auto; padding: 6px 6px 14px; margin: 0 -6px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--d-borde) transparent; }
.d-chip { position: relative; flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: .6rem; min-height: 60px; padding: .35rem 1rem .35rem .4rem;
  background: var(--d-sup); color: var(--d-texto); border: 2px solid var(--d-borde); border-radius: var(--d-radio); cursor: pointer; font-weight: 700; line-height: 1.1;
  transition: transform .12s ease, box-shadow .12s ease, background-color .3s ease; }
.d-chip:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--d-borde); }
.d-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.d-chip:has(input:focus-visible) { outline: 3px solid var(--d-enlace); outline-offset: 3px; }
.d-chip.on { background: var(--d-acento); color: var(--d-sobre); border-color: var(--d-acento); box-shadow: 4px 4px 0 var(--d-borde); transform: translate(-1px, -1px); }
.d-chip-av { width: 46px; height: 46px; flex: none; display: block; position: relative; overflow: hidden; background: var(--d-fondo); border-radius: calc(var(--d-radio) - 1px); }
.d-chip-av > * { width: 100% !important; height: 100% !important; }
.d-chip-t { font-size: 1.0625rem; white-space: nowrap; }
.d-chip-otro { border-style: dashed; }

/* ───────── escenario ───────── */
.d-escenario { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 410px); gap: clamp(28px, 4vw, 56px); align-items: start; padding-top: clamp(24px, 4vw, 56px); position: relative; }
.d-izq { position: relative; min-width: 0; }
.d-zona { position: relative; width: min(100%, 440px); margin-top: clamp(8px, 2vw, 28px); transition: width .4s ease; }
.d-muneco { width: 100%; aspect-ratio: 600 / 780; position: relative; }
.d-etiqueta { position: absolute; left: -10px; bottom: -8px; margin: 0; display: flex; flex-direction: column; gap: .15rem; padding: .55rem .9rem .6rem; transform: rotate(-3deg);
  background: var(--d-sup); color: var(--d-texto); border: 2px solid var(--d-borde); border-radius: var(--d-radio); box-shadow: 4px 4px 0 var(--d-borde); font-size: 1rem; line-height: 1.25; max-width: 15em; }
.d-etiqueta-n { font-family: var(--m-mono); font-weight: 500; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--d-suave); }
.d-main[data-fase="formulario"] .d-zona, .d-main[data-fase="ficha"] .d-zona { width: min(100%, 250px); }
.d-main[data-fase="formulario"] .d-etiqueta, .d-main[data-fase="ficha"] .d-etiqueta { display: none; }

/* móvil apoyado en la mesa */
.d-der { position: relative; padding-top: 14px; }
.d-movil { width: 100%; max-width: 410px; height: min(740px, calc(100svh - 40px)); min-height: 600px; margin-inline: auto; padding: 12px; background: #151412; border-radius: 38px;
  box-shadow: 12px 14px 0 var(--d-borde); transform: rotate(1.8deg); transform-origin: 50% 100%; border: 2px solid #0b0a09; }
.d-pantalla { height: 100%; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--d-sup); color: var(--d-texto); position: relative; }
.d-barra { display: flex; justify-content: space-between; align-items: center; padding: .35rem 1.3rem; background: var(--d-acento); color: var(--d-sobre); font: 500 .8125rem/1 var(--m-mono); min-height: 28px; }
.d-altavoz { width: 64px; height: 8px; border-radius: 4px; background: #151412; }
.d-bateria { width: 22px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; position: relative; }
.d-bateria::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; background: currentColor; }
.d-tel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.d-vacio { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem; text-align: left; background: var(--d-sup); }
.d-vacio p { margin: 0 0 .6rem; }
.d-wa-cab { display: flex; align-items: center; gap: .8rem; padding: .55rem 1rem .7rem; background: var(--d-acento); color: var(--d-sobre); }
.d-foto, .d-ll-foto { flex: none; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; width: 46px; height: 46px; border-radius: 6px; background: var(--d-sobre); color: var(--d-acento); font: 800 1.4rem/1 var(--d-titulo); }
.d-foto img, .d-ll-foto img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.d-tit { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.d-tit strong { font-size: 1.125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-sub { font-size: 1rem; }
.d-tabs { display: flex; background: var(--d-fondo); border-bottom: 2px solid var(--d-borde); }
.d-tab { flex: 1; min-height: 50px; background: none; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; color: var(--d-suave); font: 700 1.0625rem/1 var(--d-fuente); cursor: pointer; }
.d-tab[aria-selected="true"] { color: var(--d-texto); border-bottom-color: var(--d-enlace); }
.d-tab:focus-visible { outline-offset: -4px; }

.d-estado { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; padding: .7rem 1rem; background: #fff3c4; color: #3d3200; border-bottom: 2px solid #3d3200; }
.d-estado[hidden] { display: none; }
.d-estado p { margin: 0; font-size: 1.0625rem; line-height: 1.4; }

.d-panel { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.d-panel[hidden] { display: none; }
.d-log { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem .9rem .5rem; display: flex; flex-direction: column; gap: .5rem; overscroll-behavior: contain; }
.d-b { max-width: 86%; padding: .5rem .75rem .35rem; border-radius: 4px 14px 14px 14px; background: #ffffff; color: #16181a; font-size: 1.0625rem; line-height: 1.45; overflow-wrap: anywhere;
  box-shadow: 2px 2px 0 rgba(0,0,0,.28); align-self: flex-start; animation: d-sube .25s ease both; }
.d-b-out { align-self: flex-end; background: var(--d-acento); color: var(--d-sobre); border-radius: 14px 4px 14px 14px; }
.d-b-sis { align-self: center; max-width: 94%; background: var(--d-fondo); color: var(--d-texto); border: 2px dashed var(--d-borde); box-shadow: none; text-align: left; }
.d-b-texto { white-space: pre-wrap; }
.d-b-hora { display: block; text-align: right; font: 500 .8125rem/1.6 var(--m-mono); color: #50565a; }
.d-b-out .d-b-hora { color: var(--d-sobre); }
.d-b-sis .d-b-hora { display: none; }
@keyframes d-sube { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.d-puntos { display: inline-flex; gap: 4px; margin-left: .5rem; vertical-align: middle; }
.d-puntos i { width: 7px; height: 7px; background: #50565a; border-radius: 50%; animation: d-pun 1.1s infinite ease-in-out both; }
.d-puntos i:nth-child(2) { animation-delay: .15s; } .d-puntos i:nth-child(3) { animation-delay: .3s; }
@keyframes d-pun { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.d-sug { display: flex; flex-wrap: wrap; gap: .45rem; padding: .3rem .9rem .6rem; }
.d-sug[hidden] { display: none; }
.d-sug.d-fila { max-height: 6.4rem; overflow-y: auto; }
.d-sug-b { flex: none; min-height: 44px; padding: .35rem .8rem; background: var(--d-fondo); color: var(--d-texto); border: 2px solid var(--d-borde); border-radius: var(--d-radio); font: 600 1rem/1.25 var(--d-fuente); cursor: pointer; text-align: left; }
.d-sug-b:hover { border-color: var(--d-enlace); }
.d-envio { display: flex; gap: .5rem; padding: .6rem .7rem .8rem; background: var(--d-fondo); border-top: 2px solid var(--d-borde); }
.d-envio[hidden] { display: none; }
.d-inp { flex: 1; min-width: 0; min-height: 50px; padding: .4rem .8rem; border: 2px solid var(--d-borde); border-radius: var(--d-radio); background: #fff; color: #16181a; font: 400 1.0625rem/1.3 var(--d-fuente); }
.d-inp::placeholder { color: #5b6166; opacity: 1; }
.d-env { min-height: 50px; padding: 0 1rem; border: 2px solid var(--d-acento); background: var(--d-acento); color: var(--d-sobre); border-radius: var(--d-radio); font: 800 1rem/1 var(--d-fuente); cursor: pointer; }
.d-env:disabled, .d-inp:read-only { opacity: .7; }

/* llamada */
.d-ll { background: #1c1b19; color: #f2eee5; align-items: center; text-align: center; padding: 1.2rem 1rem 1rem; overflow-y: auto; }
.d-ll-quien { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.d-ll-foto { width: 86px; height: 86px; border-radius: 12px; font-size: 2.6rem; background: var(--d-acento); color: var(--d-sobre); margin-bottom: .6rem; }
.d-ll-foto.con-logo { background: #fff; }
.d-ll-quien strong { font-size: 1.3rem; line-height: 1.2; }
.d-ll-estado { margin: .2rem 0 0; font-size: 1.0625rem; color: #d3cdc0; min-height: 1.6em; max-width: 24ch; }
.d-ll-tiempo { margin: 0; font: 500 1.4rem/1.4 var(--m-mono); color: #f2eee5; }
.d-ll-slot { display: none; }
.d-subs { width: 100%; flex: 1; min-height: 0; margin-top: .6rem; text-align: left; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: .5rem; }
.d-subs p { margin: 0; font-size: 1.0625rem; line-height: 1.4; }
.d-subs span { display: block; font: 500 .8125rem/1.4 var(--m-mono); letter-spacing: .06em; text-transform: uppercase; color: #bdb7aa; }
.d-subs q { quotes: none; display: block; }
.d-subs q:empty { display: none; }
.d-sub-tu q { color: #a8e4f2; }
.d-sub-as q { color: #f2eee5; }
.d-ll .d-envio { width: calc(100% + 2rem); margin: .5rem -1rem 0; }
.d-ctl { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; padding-top: .8rem; width: 100%; }
.d-btn { min-height: 54px; min-width: 120px; padding: 0 1.3rem; border: 2px solid #f2eee5; background: transparent; color: #f2eee5; border-radius: 4px; font: 800 1.0625rem/1 var(--d-fuente); cursor: pointer; }
.d-btn[hidden] { display: none; }
.d-llamar { background: #1f7a3e; border-color: #1f7a3e; color: #fff; min-width: 180px; }
.d-colgar { background: #c2342a; border-color: #c2342a; color: #fff; }
.d-mudo[aria-pressed="true"] { background: #f2eee5; color: #1c1b19; }
.d-ll :focus-visible { outline-color: #a8e4f2; }

/* detalles de mesa */
.d-postit { position: absolute; right: 4%; bottom: 14%; width: 11.5em; margin: 0; padding: .7rem .8rem .8rem; background: var(--d-marca); color: var(--d-texto); font-size: 1rem; line-height: 1.35; transform: rotate(4deg);
  box-shadow: 3px 4px 0 var(--d-borde); z-index: 3; max-width: 11.5em !important; }
.d-postit b { display: block; }
.d-aviso { margin: 1.6rem auto 0; max-width: 410px !important; font-size: 1rem; line-height: 1.45; color: var(--d-suave); }
.d-main[data-fase="formulario"] .d-postit, .d-main[data-fase="formulario"] .d-aviso { display: none; }

/* formulario "otro negocio" y ficha */
.d-otro, .d-ficha { position: relative; margin-top: 1.4rem; padding: 1.4rem 1.4rem 1.6rem; background: var(--d-sup); color: var(--d-texto); border: 2px solid var(--d-borde); border-radius: var(--d-radio); box-shadow: 8px 8px 0 var(--d-borde); max-width: 560px; }
.d-otro[hidden], .d-ficha[hidden] { display: none; }
.d-perfil { margin-top: 1.6rem; box-shadow: 8px 8px 0 var(--d-borde); }
.d-der.dp-en-escenario { position: relative; top: auto; }
.d-otro::before, .d-ficha::before { content: ""; position: absolute; top: -13px; left: 28px; width: 92px; height: 26px; background: var(--d-marca); transform: rotate(-3deg); opacity: .95; }
.d-otro-t { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.12; margin: 0 0 .8rem; }
.d-lab { display: block; margin: 1rem 0 .3rem; font-weight: 700; font-size: 1.0625rem; padding: 0; }
.d-campo { display: block; width: 100%; min-height: 50px; padding: .5rem .7rem; border: 2px solid var(--d-borde); border-radius: var(--d-radio); background: #fff; color: #16181a; font: 400 1.0625rem/1.4 var(--d-fuente); }
.d-campo::placeholder { color: #5b6166; opacity: 1; }
textarea.d-campo { resize: vertical; min-height: 96px; }
.d-serv { border: 0; margin: 0; padding: 0; display: grid; gap: .5rem; }
.d-serv legend { margin: 1rem 0 .3rem; padding: 0; }
.d-archivo { padding: .6rem; }
.d-nota { margin: .7rem 0 0; font-size: 1rem; line-height: 1.45; color: var(--d-suave); }
.d-nota-fuerte { color: var(--d-texto); font-weight: 700; border-left: 4px solid var(--d-enlace); padding-left: .7rem; }
.d-error { margin: 1rem 0 0; padding: .7rem .9rem; background: #ffe3dc; color: #7a1608; border: 2px solid #7a1608; font-weight: 700; }
.d-error[hidden] { display: none; }
.d-acciones { margin-top: 1.2rem; }
.d-boton { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: .6rem 1.5rem; border: 2px solid var(--d-acento); background: var(--d-acento); color: var(--d-sobre);
  border-radius: var(--d-radio); font: 800 1.0625rem/1.2 var(--d-fuente); cursor: pointer; text-decoration: none; box-shadow: 5px 5px 0 var(--d-borde); transition: transform .12s ease, box-shadow .12s ease; }
.d-main a.d-boton { color: var(--d-sobre); }
.d-boton:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--d-borde); }
.d-boton:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--d-borde); }
.d-boton[disabled] { opacity: .6; cursor: progress; }
.d-boton.d-hueco { background: transparent; color: var(--d-texto); border-color: var(--d-borde); box-shadow: none; }
.d-boton.d-chico { min-height: 44px; padding: .3rem 1rem; box-shadow: none; background: #3d3200; border-color: #3d3200; color: #fff3c4; }
.d-ficha-n { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.05; margin: 0 0 .6rem; }
.d-ficha-r { margin: 0 0 1rem; max-width: 36ch !important; }
.d-ficha-s { margin: 0 0 1rem; padding: .7rem .9rem; background: var(--d-fondo); border: 2px dashed var(--d-borde); }
.d-ficha-s span { display: block; font: 500 .8125rem/1.4 var(--m-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--d-suave); }
.d-ficha-s q { quotes: none; display: block; }

/* cierre */
.d-cierre { margin-top: clamp(56px, 8vw, 110px); }
.d-cierre-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; padding-top: 1.8rem; border-top: 3px solid var(--d-texto); }
.d-cierre-t { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; margin: 0 0 .8rem; }
.d-cierre-p { max-width: 46ch !important; margin: 0; }
.d-cierre-fila > p:last-child { margin: 0; }

/* ───────── móvil primero: el escenario se apila ───────── */
@media (max-width: 899px) {
  .d-escenario { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .d-escenario { padding-top: 24px; }
  .d-izq { display: flex; flex-direction: column; }
  .d-zona { width: 190px; }
  .d-main[data-fase="formulario"] .d-zona, .d-main[data-fase="ficha"] .d-zona { width: 150px; }
  .d-etiqueta { position: static; transform: rotate(-1.5deg); margin: -.8rem 0 0 1.5rem; max-width: none; }
  .d-izq .d-zona { align-self: center; }
  .d-der { padding-top: 0; }
  .d-movil { transform: none; box-shadow: 6px 6px 0 var(--d-borde); height: min(620px, 82svh); min-height: 520px; padding: 8px; border-radius: 30px; }
  .d-pantalla { border-radius: 24px; }
  .d-postit { display: none; }
  .d-cierre-fila { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .d-chips { padding-inline: 4px; }
  .d-otro, .d-ficha { box-shadow: 5px 5px 0 var(--d-borde); }
  /* la llamada ocupa la pantalla entera */
  .d-movil.d-llamando { position: fixed; inset: 0; z-index: 80; width: auto; max-width: none; height: 100svh; min-height: 0; margin: 0; padding: 0; border-radius: 0; border: 0; box-shadow: none; transform: none; background: #1c1b19; }
  .d-movil.d-llamando .d-pantalla { border-radius: 0; }
  .d-movil.d-llamando .d-ll-slot { display: block; width: min(40vw, 170px); margin: .4rem 0 0; }
  .d-movil.d-llamando .d-ll-foto { display: none; }
}
@media (min-width: 900px) {
  .d-izq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); column-gap: clamp(20px, 3vw, 40px); align-items: start; }
  .d-cab { grid-column: 1; grid-row: 1; }
  .d-selector { grid-column: 1; grid-row: 2; }
  .d-zona { grid-column: 2; grid-row: 1 / 3; width: 100%; margin-top: 2.2rem; }
  .d-main[data-fase="formulario"] .d-zona, .d-main[data-fase="ficha"] .d-zona { width: min(100%, 230px); }
  .d-postit { position: relative; grid-column: 2; grid-row: 3; right: auto; bottom: auto; margin: 2.2rem 0 0 auto; }
  .d-otro, .d-ficha { grid-column: 1 / -1; grid-row: 4; width: 100%; }
  .d-perfil { grid-column: 1 / -1; grid-row: 4; width: 100%; }
  .d-chip-av { width: 40px; height: 40px; }
  .d-chip { min-height: 54px; }
  .d-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; padding-bottom: 8px; }
  .d-chip { min-width: 0; }
  .d-der { position: sticky; top: 12px; }
}
@media (min-width: 900px) and (max-height: 760px) { .d-movil { height: 640px; min-height: 0; } }
html.d-bloqueo { overflow: hidden; }
html.d-bloqueo .d-main { z-index: 100; }

@media (prefers-reduced-motion: reduce) {
  .d-main, .d-main * { transition: none !important; animation: none !important; }
  .d-movil { transform: none; }
}
.d-main [hidden] { display: none !important; }

/* ───────── Equipo AA (23-oct-2026): capa nueva de /demo — cabecera de cristal, pasos, ejemplos, confianza ───────── */
.d-v { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.d-hero { background: radial-gradient(46rem 22rem at 85% 30%, rgba(79, 123, 255, .32), transparent 70%), linear-gradient(180deg, #121a2e, #0a0d16) #0a0d16; color: #eef1fa; border-bottom: 1px solid rgba(143, 176, 255, .25); }
.d-hero-fila { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(20px, 4vw, 56px); align-items: center; padding-block: clamp(32px, 5vw, 64px); }
.d-main .d-hero .m-et { color: #c3cadf; }
.d-main .d-hero .m-et b { color: #9ebaff; }
.d-main .d-hero .d-h1 { color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.8rem); line-height: 1.04; margin: .3em 0 .35em; }
.d-main .d-hero .d-h1-2 { display: inline; margin-left: 0; color: #9ebaff; background: none; padding: 0; white-space: normal; }
.d-main .d-hero .d-lead { color: #dfe4f3; max-width: 38rem !important; font-size: 1.25rem; }
.d-conf { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.d-conf li { padding: 12px 14px; border: 1px solid rgba(143, 176, 255, .28); border-radius: 14px; background: rgba(255, 255, 255, .05); display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.d-conf b { color: #fff; font-size: 1.125rem; }
.d-conf span { color: #c3cadf; font-size: 1rem; }
.d-hero-img img { width: 100%; height: auto; border-radius: 22px; border: 1px solid rgba(143, 176, 255, .25); box-shadow: 0 30px 60px -30px rgba(79, 123, 255, .6); background: #0a0d16; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .d-hero-img img { animation: d-flota 7s ease-in-out infinite alternate; }
  .d-hero-texto > * { animation: d-sube .6s ease both; }
  .d-hero-texto > *:nth-child(2) { animation-delay: .07s; } .d-hero-texto > *:nth-child(3) { animation-delay: .14s; } .d-hero-texto > *:nth-child(4) { animation-delay: .21s; }
}
@keyframes d-flota { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes d-sube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.d-pasos-sec { padding-top: clamp(24px, 4vw, 44px); }
.d-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: paso; }
.d-pasos li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: var(--d-sup); border: 2px solid var(--d-borde); border-radius: var(--d-radio); }
.d-pn { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--d-acento); color: var(--d-sobre); font: 800 1.25rem/1 var(--d-titulo); }
.d-pasos b { display: block; font-size: 1.1875rem; line-height: 1.25; margin-bottom: 2px; }
.d-pasos span:not(.d-pn) { color: var(--d-suave); font-size: 1.0625rem; line-height: 1.45; }

/* escenario: la izquierda es solo el formulario; 4B-halo vive dentro de la ventana del móvil */
.d-escenario { padding-top: clamp(22px, 3vw, 40px); }
@media (min-width: 900px) { .d-izq { display: block; } }
.d-ej { margin: 0 0 1.4rem; padding: 18px 20px 20px; border: 2px dashed var(--d-borde); border-radius: var(--d-radio); background: var(--d-sup); }
.d-main .d-ej-t { font-size: 1.375rem; line-height: 1.2; margin: 0 0 .25rem; }
.d-ej-p { margin: 0 0 .9rem; color: var(--d-suave); font-size: 1.0625rem; }
.d-ej-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.d-ej-b { min-height: 48px; padding: .4rem 1rem; font: 700 1.0625rem/1.1 var(--d-fuente); color: var(--d-texto); background: var(--d-fondo); border: 2px solid var(--d-borde); border-radius: 999px; cursor: pointer; transition: transform .12s ease, background-color .2s ease; }
.d-ej-b:hover { transform: translateY(-1px); border-color: var(--d-enlace); }
.d-ej-b[aria-pressed="true"] { background: var(--d-acento); color: var(--d-sobre); border-color: var(--d-acento); }
.d-ej-estado { margin: .9rem 0 0; padding: 10px 14px; border-left: 6px solid var(--d-enlace); background: var(--d-fondo); font-weight: 600; font-size: 1.0625rem; }
.d-confia { margin: 1rem 0 0; color: var(--d-suave); font-size: 1.0625rem; max-width: 40rem; }
.d-vacio { align-items: center; text-align: center; }
.d-vacio .d-zona { width: 150px !important; margin: 0 auto .6rem; }
.d-vacio .d-etiqueta { position: static; transform: none; box-shadow: none; border: 0; background: none; padding: 0; margin: .2rem 0 0; align-items: center; display: flex !important; }
.d-vacio p { max-width: 24rem; }
.d-movil.d-llamando .d-ll-slot { display: block; width: min(40vw, 150px); margin: .4rem auto 0; }
.d-movil.d-llamando .d-ll-slot .d-muneco { width: 100%; }

/* carga y errores cuidados */
.d-perfil:empty { min-height: 220px; border: 2px solid var(--d-borde); border-radius: var(--d-radio); background: linear-gradient(90deg, var(--d-sup) 0 30%, var(--d-fondo) 50%, var(--d-sup) 70% 100%) 0 0 / 300% 100%; position: relative; }
.d-perfil:empty::after { content: "Preparando el formulario…"; position: absolute; left: 20px; top: 18px; font-weight: 700; color: var(--d-suave); }
@media (prefers-reduced-motion: no-preference) { .d-perfil:empty { animation: d-brilla 1.6s linear infinite; } }
@keyframes d-brilla { from { background-position: 100% 0; } to { background-position: 0 0; } }
.d-estado { font-size: 1.0625rem; font-weight: 600; border-left: 6px solid #3d3200; }
.d-estado p { margin: 0; }

/* cierre con más servicios */
.d-mas { margin-top: clamp(28px, 4vw, 44px); }
.d-main .d-mas-t { font-size: 1.5rem; margin: 0 0 .8rem; }
.d-mas-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.d-mas-lista a { display: block; height: 100%; padding: 16px 18px; border: 2px solid var(--d-borde); border-radius: var(--d-radio); background: var(--d-sup); color: var(--d-texto); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.d-mas-lista a:hover { transform: translateY(-2px); border-color: var(--d-enlace); }
.d-mas-lista b { display: block; font-size: 1.1875rem; margin-bottom: 4px; color: var(--d-enlace); text-decoration: underline; text-underline-offset: .2em; }
.d-mas-lista span { color: var(--d-suave); font-size: 1.0625rem; line-height: 1.45; }
@media (max-width: 899px) {
  .d-hero-fila { grid-template-columns: minmax(0, 1fr); }
  .d-hero-img { order: -1; max-width: 360px; }
  .d-conf, .d-pasos, .d-mas-lista { grid-template-columns: minmax(0, 1fr); }
  .d-ej-lista { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .d-hero-img img, .d-hero-texto > * { animation: none !important; } .d-ej-b:hover, .d-mas-lista a:hover { transform: none; } }
