/* Dilo demo shell. Las pantallas usan el marcado y estilos de la entrega v9 (v7/entrega/estilos/dilo.css) tal cual;
   aquí solo: teléfono centrado de 390 px, alto real con scroll, barra fija, mínimos de 16 px y herramientas demo. */
html,body{margin:0;background:#efecf8}
body{font-family:"Inter",system-ui,sans-serif;color:#242038}
/* La app React incluye el "preflight" de Tailwind (listas sin viñetas, márgenes en 0, imágenes en bloque…).
   Las pantallas de la entrega no lo tienen: dentro de #scr se vuelve a los estilos del navegador; dilo.css y los estilos en línea mandan. */
:where(#scr) :where(:not(svg,svg *)),:where(#scr) :where(:not(svg,svg *))::before,:where(#scr) :where(:not(svg,svg *))::after{all:revert}
.dilo-shell{max-width:390px;margin:0 auto;min-height:100dvh;background:var(--paper,#faf8ff);position:relative}
@media (min-width:430px){.dilo-shell{box-shadow:0 0 0 1px #e9e5f5}}
#scr .dl-screen{width:100% !important;height:auto !important;min-height:100dvh;box-sizing:border-box}
#scr .dl-screen.dl-scrim{min-height:100dvh;display:flex;flex-direction:column;justify-content:flex-end}
#scr .dl-screen a{cursor:pointer}
/* Barra flotante del diseño: fija al pie, ancho del teléfono menos 16 px por lado. */
#scr .dl-tabbar{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:calc(16px + env(safe-area-inset-bottom,0px));width:calc(min(100vw,390px) - 32px);box-sizing:border-box;margin:0 !important}
#scr .dl-screen:has(> .dl-tabbar){padding-bottom:calc(96px + env(safe-area-inset-bottom,0px)) !important}
#scr .dl-tabbar a{min-width:48px;min-height:48px}
/* Pie de preguntas visible aunque haya muchas opciones. */
#scr .dilo-foot{position:sticky;bottom:0;background:var(--paper,#faf8ff);z-index:4;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px)) !important}
/* Campos y opciones a 16 px mínimo. */
#scr .dl-opt,#scr .dl-input,#scr input,#scr select,#scr textarea{font-size:16px !important}
#scr .dilo-otp .dl-input{font-size:22px !important}
.dilo-otp{position:relative}
.dilo-otp input{position:absolute;inset:0;opacity:0;width:100%;height:100%;border:0;cursor:text}
.dilo-check-real{position:absolute;opacity:0;width:22px;height:22px;margin:0}
.dl-check{min-height:48px}
.dl-btn[aria-disabled="true"],button[aria-disabled="true"]{cursor:not-allowed}
.dl-btn[aria-disabled="true"]{background:var(--disabled);color:var(--disabled-ink)}
.dilo-overlay{position:fixed;inset:0;z-index:50;display:flex;align-items:flex-end;justify-content:center;background:var(--scrim)}
.dilo-overlay .dl-sheet{max-width:390px;width:100%;box-sizing:border-box;max-height:90dvh;overflow:auto;font:400 14px/1.5 var(--font-sans);color:var(--ink)}
.dilo-overlay .dl-sheet .dl-btn{margin-top:8px}
.dilo-toast{pointer-events:none;position:fixed;left:50%;bottom:104px;transform:translateX(-50%);z-index:60;max-width:342px;width:calc(100% - 48px);box-sizing:border-box;text-align:center}
/* Herramientas de la demo: fuera del contenido del diseño. */
.dilo-demo-tab{position:fixed;z-index:40;top:0;left:50%;transform:translateX(-50%);width:80px;height:24px;padding:0;border:0;border-radius:0 0 12px 12px;background:var(--purpura);color:#fff;font:700 11px/24px var(--font-sans);letter-spacing:.08em;cursor:pointer;opacity:.9}
.dilo-demo-tab:focus-visible{outline:3px solid var(--violet);outline-offset:2px;opacity:1}
.dilo-demo-panel{display:none}
@media (min-width:1024px){
  .dilo-demo-tab{display:none}
  .dilo-demo-panel{display:flex;flex-direction:column;gap:8px;position:fixed;top:24px;left:calc(50% + 219px);width:240px;padding:16px;border-radius:16px;background:#fff;box-shadow:0 0 0 1px #e9e5f5;font:400 13px/1.45 var(--font-sans);color:var(--ink)}
  .dilo-demo-panel p{margin:0;color:var(--muted)}
  .dilo-demo-panel .dilo-demo-otp{color:var(--ink)}
  .dilo-demo-panel button{min-height:40px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--violet);font:700 13px/1.2 var(--font-sans);cursor:pointer;padding:8px 12px}
  .dilo-demo-panel button.dilo-demo-main{background:var(--violet);border-color:var(--violet);color:#fff}
}
@media (prefers-reduced-motion:reduce){*{transition:none !important;animation:none !important}}
/* CodigoError.html trae el aviso con white-space: nowrap y se sale del teléfono: se deja envolver. */
#scr [role="alert"] > .dl-small{white-space:normal !important;flex:1 1 auto !important;min-width:0}
