/* STOCK A · V8.5.6 RC3 · PREMASTER · FLUJO UNIFICADO · MOBILE UX + VOICE SEARCH */
:root{--wf855:#176b87;--wf855-dark:#123a52;--wf855-soft:#eaf6fb;--wf855-green:#1f8a63;--wf855-amber:#ba7b13;--wf855-red:#b44141;--wf855-violet:#6a48b8}
.wf855-orchestrator,.wf855-card,.wf855-dayblock,.wf855-searchbox,.wf855-task{background:#fff;border:1px solid #dbe8ef;border-radius:18px;box-shadow:0 5px 18px rgba(35,66,106,.07)}
.wf855-orchestrator{padding:14px;margin:0 0 12px}.wf855-orchestrator-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.wf855-orchestrator h2,.wf855-dayblock h3{margin:0;color:#17384f}.wf855-orchestrator p{margin:3px 0 0;color:#69808f;font-size:11px}
.wf855-quick{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.wf855-quick button{border:1px solid #d8e7ee;background:#fff;border-radius:14px;padding:10px 8px;min-height:74px;text-align:left;cursor:pointer}.wf855-quick button:hover{border-color:#73bad0;box-shadow:0 5px 14px #1b759520}.wf855-quick span{display:block;font-size:21px}.wf855-quick b{display:block;font-size:11px;color:#17384f;margin-top:4px}.wf855-quick small{display:block;font-size:8.5px;color:#718794;margin-top:2px;line-height:1.25}
.wf855-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;font-size:8.5px;font-weight:800;background:#eef5f8;color:#3b596b}.wf855-badge.red{background:#fdecec;color:#9e3636}.wf855-badge.amber{background:#fff4db;color:#91620f}.wf855-badge.green{background:#eaf8f1;color:#177251}.wf855-badge.violet{background:#f1ecff;color:#5d43a0}
.wf855-daygrid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px}.wf855-span8{grid-column:span 8}.wf855-span4{grid-column:span 4}.wf855-span6{grid-column:span 6}.wf855-span12{grid-column:1/-1}.wf855-dayblock{padding:13px}.wf855-dayblock h3{font-size:15px;margin-bottom:9px}.wf855-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}.wf855-kpi{border:1px solid #e1e9ee;border-radius:13px;padding:9px;background:#fbfdfe}.wf855-kpi small{display:block;font-size:8px;color:#718693;font-weight:800}.wf855-kpi b{font-size:22px;color:#17384f}.wf855-kpi button{border:0;background:transparent;color:#1680a6;padding:0;font-size:8px;cursor:pointer}
.wf855-list{display:flex;flex-direction:column;gap:6px}.wf855-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;border:1px solid #e4edf2;border-radius:12px;padding:9px}.wf855-row b{font-size:10px;color:#17384f}.wf855-row small{display:block;font-size:8.5px;color:#718694;margin-top:2px}.wf855-row .actions{display:flex;gap:5px;align-items:center}.wf855-row button,.wf855-smallbtn{border:1px solid #c9dce6;background:#fff;border-radius:9px;padding:6px 8px;font-size:8.5px;cursor:pointer;color:#254e62}.wf855-row button.primary,.wf855-smallbtn.primary{background:#176b87;color:#fff;border-color:#176b87}
.wf855-empty{border:1px dashed #ccdbe3;border-radius:12px;padding:14px;text-align:center;color:#77909e;font-size:9px;background:#fbfdfe}
.wf855-continue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.wf855-continue button{border:1px solid #dce8ee;background:#fff;border-radius:12px;text-align:left;padding:9px;cursor:pointer}.wf855-continue b{font-size:9.5px;color:#193d50}.wf855-continue small{display:block;font-size:8px;color:#7a8e99;margin-top:2px}
.wf855-flowstrip{display:flex;align-items:center;gap:4px;overflow-x:auto;margin:8px 0 12px;padding:7px 9px;border:1px solid #d9e6ed;border-radius:13px;background:#f8fbfd}.wf855-step{white-space:nowrap;border-radius:999px;padding:5px 8px;font-size:8px;font-weight:800;background:white;border:1px solid #d8e5ec;color:#476473}.wf855-step.current{background:#176b87;color:white;border-color:#176b87}.wf855-arrow{font-size:9px;color:#92a5af}
.wf855-searchbox{padding:12px}.wf855-searchbox input{width:100%;box-sizing:border-box;border:1px solid #bcd4df;border-radius:12px;padding:12px;font-size:13px}.wf855-searchresults{display:flex;flex-direction:column;gap:6px;margin-top:10px;max-height:55vh;overflow:auto}.wf855-searchitem{border:1px solid #dfe9ee;background:#fff;border-radius:12px;padding:9px;text-align:left;cursor:pointer}.wf855-searchitem:hover{border-color:#6bb5cd}.wf855-searchitem b{font-size:10px;color:#183b4f}.wf855-searchitem small{display:block;font-size:8.5px;color:#748b98;margin-top:2px}
.wf855-taskform{display:grid;grid-template-columns:1fr 1fr;gap:9px}.wf855-taskform .full{grid-column:1/-1}.wf855-taskform label{display:block;font-size:9px;font-weight:800;color:#476473;margin-bottom:4px}.wf855-taskform input,.wf855-taskform select,.wf855-taskform textarea{width:100%;box-sizing:border-box;border:1px solid #cbdde6;border-radius:10px;padding:9px;font:inherit}.wf855-taskform textarea{min-height:80px;resize:vertical}
#wfMobileBar855{display:none}.wf855-sidegroup{border-top:1px solid #ffffff22;margin-top:5px;padding-top:5px}.wf855-sidegroup .wf855-side-title{padding:7px 9px 3px;color:#a9c0ce;font-size:7px;font-weight:900;letter-spacing:.8px}.wf855-sidegroup button{display:block;width:100%;border:0;background:transparent;color:#edf4f7;text-align:left;padding:9px;border-radius:10px;font-size:11px;cursor:pointer}.wf855-sidegroup button:hover,.wf855-sidegroup button.on{background:#168fc9}
.wf855-mobile-safe{display:none}
@media(min-width:1100px){body[data-wf-view="receptionAssist851"] .v851-assist-layout{grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr)!important;align-items:start}body[data-wf-view="receptionAssist851"] .expert-analysis{position:sticky;top:74px}}
@media(max-width:1050px){.wf855-quick{grid-template-columns:repeat(3,1fr)}.wf855-span8,.wf855-span4,.wf855-span6{grid-column:1/-1}.wf855-kpis{grid-template-columns:repeat(2,1fr)}}
@media(max-width:800px){
 body.home .rotate{display:none!important} body.home .app{display:block!important}.rotate{display:none!important}
 main{padding:7px 7px 78px!important}.side{display:none!important}.side.mobileOpen{display:flex!important}.mobileMenuBtn{display:block!important}
 .premiumTop{padding-left:46px!important;overflow-x:auto!important;flex-wrap:nowrap!important;scrollbar-width:none}.premiumTop::-webkit-scrollbar{display:none}.premiumTop .topAction{min-width:56px}.expert-header-actions{flex-wrap:nowrap!important;overflow-x:auto!important;max-width:none!important}
 .wf855-orchestrator{padding:10px}.wf855-orchestrator-head{display:block}.wf855-quick{grid-template-columns:repeat(2,minmax(0,1fr))}.wf855-quick button{min-height:66px}.wf855-daygrid{display:block}.wf855-dayblock{margin-bottom:9px}.wf855-kpis{grid-template-columns:repeat(2,1fr)}.wf855-continue{grid-template-columns:1fr}.wf855-taskform{grid-template-columns:1fr}.wf855-taskform .full{grid-column:auto}
 #wfMobileBar855{display:grid;position:fixed;z-index:116;left:7px;right:7px;bottom:7px;grid-template-columns:repeat(5,1fr);background:#102f45f4;border:1px solid #ffffff20;border-radius:17px;padding:6px;box-shadow:0 10px 35px #0c263d55;backdrop-filter:blur(10px)}#wfMobileBar855 button{border:0;background:transparent;color:#dfeaf0;border-radius:11px;padding:6px 2px;font-size:7px;font-weight:800}#wfMobileBar855 button span{display:block;font-size:17px;margin-bottom:2px}#wfMobileBar855 button.on{background:#168fc9;color:white}
 .wf855-flowstrip{margin:6px 0 9px}.wf855-step{font-size:7.5px}
 .sheet{max-width:none!important;margin:0!important;border-radius:16px!important}.modal{padding:8px!important}
}

/* V8.5.5 RC2 · hotfix mobile: no floating IT over content/bottom bar */
@media(max-width:800px){
  .v851-it-fab{display:none!important}
  #wfMobileBar855{z-index:180!important}
  main{padding-bottom:88px!important}
}


/* V8.5.6 RC3 · PREMASTER · MOBILE PORTRAIT
   En vertical, las tarjetas densas no compiten en columnas estrechas:
   foto y tiempo/calendario se apilan como tarjetas horizontales de ancho completo.
   Agenda y resumen hacen lo mismo. */
@media(max-width:800px) and (orientation:portrait){
  body.home .premiumHeroGrid,
  body.home .heroGrid{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    width:100%!important;
  }
  body.home .premiumHero,
  body.home .hero{
    width:100%!important;
    min-width:0!important;
    height:210px!important;
    min-height:210px!important;
    border-radius:18px!important;
  }
  body.home .premiumWeather,
  body.home .weather{
    width:100%!important;
    min-width:0!important;
    min-height:250px!important;
    box-sizing:border-box!important;
  }
  body.home .premiumHero .heroText{left:22px!important;top:24px!important;max-width:72%!important}
  body.home .premiumHero .heroText h1{font-size:38px!important}
  body.home .premiumHero .heroText h3{font-size:16px!important}
  body.home .premiumHero .heroText p{font-size:13px!important;max-width:88%!important}
  body.home .premiumWeather .clock{font-size:42px!important}
  body.home .weatherNowLine{align-items:center!important}
  body.home .premiumWeather .forecast{min-height:72px!important}

  body.home .agendaMaster{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:10px!important;
    width:100%!important;
  }
  body.home .agendaMaster>.card,
  body.home .agendaMaster>*{
    grid-column:1/-1!important;
    width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body.home .agendaBoard,
  body.home .agendaTimeline{min-width:0!important}
  body.home .agendaTimeline{overflow-x:auto!important}
  body.home .premiumDash{grid-template-columns:1fr!important}

  .wf855-searchline{grid-template-columns:minmax(0,1fr) 52px!important;gap:8px!important}
  .wf855-searchmic{width:52px!important;min-width:52px!important;height:52px!important;border-radius:14px!important;font-size:22px!important}
}

.wf855-searchline{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:8px;align-items:stretch}
.wf855-searchline input{min-width:0}
.wf855-searchmic{border:1px solid #bcd4df;background:#eef8fc;color:#164e68;border-radius:12px;cursor:pointer;font-size:20px;font-weight:900;display:grid;place-items:center;min-height:48px}
.wf855-searchmic:hover{background:#dff3fb;border-color:#6db6cf}
.wf855-searchmic.listening{background:#ffe8e8;border-color:#d55b5b;color:#a72d2d;animation:wfMicPulse855 1s infinite alternate}
@keyframes wfMicPulse855{from{box-shadow:0 0 0 0 rgba(213,91,91,.15)}to{box-shadow:0 0 0 8px rgba(213,91,91,.06)}}
.wf855-searchhint{font-size:8.5px;color:#708895;margin:5px 2px 0}


/* V8.5.6 RC3 · PREMASTER · NAVEGACIÓN MÓVIL SIN SOLAPES
   El antiguo botón flotante "☰ Menú" desaparece.
   "Más" de la barra inferior abre el menú lateral completo. */
@media(max-width:800px){
  .mobileMenuBtn{display:none!important}
  .top,.premiumTop{padding-left:0!important}
  .wf855-drawer-close{
    display:flex!important;align-items:center;justify-content:center;gap:7px;
    position:sticky;top:0;z-index:9;width:100%;min-height:42px;
    border:0;border-radius:10px;margin:0 0 7px;background:#173f58;color:#fff;
    font-weight:900;font-size:12px;cursor:pointer;box-shadow:0 5px 15px rgba(0,0,0,.16)
  }
  .side.mobileOpen{padding-top:8px!important}
}
@media(min-width:801px){.wf855-drawer-close{display:none!important}}

/* RC6.3 · HOTFIX robusto: nunca mostrar el antiguo botón flotante en móvil */
@media (max-width:800px){
  #mobileMenuBtn.mobileMenuBtn{display:none!important;visibility:hidden!important;pointer-events:none!important}
  .top,.premiumTop{padding-left:0!important}
}

/* RC6.4 · navegación móvil final */
@media(max-width:800px){
 #mobileMenuBtn,.mobileMenuBtn{display:none!important;visibility:hidden!important;pointer-events:none!important}
 .side.mobileOpen{display:none!important}
 main{padding-bottom:132px!important}.view{padding-bottom:118px!important;box-sizing:border-box}
 #wfMobileSafe855{display:block;height:112px;width:100%;pointer-events:none}
 #wfMobileBar855{display:grid!important;position:fixed!important;z-index:410!important;left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;grid-template-columns:repeat(5,1fr)!important}
 body.wf855-modal-open #wfMobileBar855{display:none!important} body.wf855-modal-open #wfMobileSafe855{height:18px!important}
 #wfMobileDrawer855{display:flex;flex-direction:column;position:fixed;z-index:430;left:0;top:0;bottom:0;width:min(86vw,330px);background:linear-gradient(165deg,#102f45,#163f58 70%,#14546f);color:#fff;box-shadow:18px 0 45px #071c2c66;transform:translateX(-105%);transition:transform .2s ease;padding:calc(12px + env(safe-area-inset-top)) 10px calc(12px + env(safe-area-inset-bottom));box-sizing:border-box;overflow:hidden}
 #wfMobileDrawer855.on{transform:translateX(0)}
 .wf855-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:5px 5px 10px;border-bottom:1px solid #ffffff22}.wf855-drawer-head small{display:block;font-size:7px;letter-spacing:.9px;color:#a9c9d9;font-weight:900}.wf855-drawer-head b{display:block;font-size:15px;margin-top:2px}.wf855-drawer-head>button{border:0;background:#ffffff18;color:#fff;border-radius:10px;width:38px;height:38px;font-size:18px}
 .wf855-drawer-search{padding:9px 3px}.wf855-drawer-search button{width:100%;border:1px solid #ffffff26;background:#ffffff10;color:#fff;border-radius:11px;padding:10px;text-align:left;font-weight:800}
 .wf855-drawer-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:5px;padding:2px 2px 10px}.wf855-drawer-list>button{display:grid;grid-template-columns:30px minmax(0,1fr) 18px;align-items:center;gap:8px;border:0;background:#ffffff0b;color:#fff;border-radius:11px;padding:9px;text-align:left}.wf855-drawer-list>button:active{background:#168fc9}.wf855-drawer-list>button>span{font-size:18px;text-align:center}.wf855-drawer-list b{display:block;font-size:10px}.wf855-drawer-list small{display:block;font-size:7.5px;color:#c1d3dd;margin-top:2px}.wf855-drawer-list i{font-style:normal;font-size:17px;color:#b7d0dc}
 .wf855-drawer-foot{border-top:1px solid #ffffff22;padding:9px 2px 0}.wf855-drawer-foot button{width:100%;border:1px solid #ffffff2b;background:#ffffff0f;color:#fff;border-radius:11px;padding:10px;font-weight:800;text-align:left}
 #navScrim{z-index:420!important}
}
@media(min-width:801px){#wfMobileDrawer855,#wfMobileSafe855{display:none!important}}

/* V8.5.6 RC3 · POST-MASTER · viewport móvil sin solapes */
@media(max-width:800px){
  html,body{height:100%;min-height:100%;overflow:hidden!important}
  body .app{
    height:100vh!important;height:100dvh!important;
    min-height:0!important;max-height:100dvh!important;
    overflow:hidden!important
  }
  body main{
    height:calc(100vh - 92px)!important;
    height:calc(100dvh - 92px - env(safe-area-inset-bottom))!important;
    max-height:calc(100dvh - 92px - env(safe-area-inset-bottom))!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    overscroll-behavior-y:contain;
    -webkit-overflow-scrolling:touch;
    padding-bottom:24px!important;
    scroll-padding-bottom:28px!important
  }
  body main>.view{padding-bottom:34px!important}
  #wfMobileSafe855{display:none!important;height:0!important}
  #wfMobileBar855{
    min-height:72px!important;
    bottom:calc(6px + env(safe-area-inset-bottom))!important
  }
  body.wf855-modal-open main{overflow:hidden!important}
}

/* V8.5.6 RC3 · barra móvil como fila del layout, nunca superpuesta */
@media(max-width:800px){
 html,body{height:100%;min-height:100%;overflow:hidden!important}
 body .app{height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important;gap:0!important;overflow:hidden!important}
 body .app>.side{display:none!important}
 body .app>main{grid-column:1!important;grid-row:1!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overflow-x:hidden!important;padding-bottom:20px!important;scroll-padding-bottom:20px!important;-webkit-overflow-scrolling:touch}
 body .app>#wfMobileBar855{grid-column:1!important;grid-row:2!important;position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important;margin:7px 12px calc(7px + env(safe-area-inset-bottom))!important;min-height:72px!important;z-index:20!important}
 #wfMobileSafe855{display:none!important;height:0!important}
 body.wf855-modal-open .app>#wfMobileBar855{display:none!important}
}

/* V8.5.6 RC3 · SCROLL FIX · usar scroll nativo de página en móvil */
@media(max-width:800px){
  html,body{
    height:auto!important;min-height:100%!important;
    overflow-x:hidden!important;overflow-y:auto!important;
    touch-action:pan-y!important;
    overscroll-behavior-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body .app,body:not(.home) .app{
    display:block!important;
    height:auto!important;min-height:100vh!important;min-height:100dvh!important;
    max-height:none!important;overflow:visible!important;
  }
  body .app>.side{display:none!important}
  body .app>main,body:not(.home) .app>main{
    display:block!important;
    height:auto!important;min-height:0!important;max-height:none!important;
    overflow:visible!important;
    touch-action:pan-y!important;
    overscroll-behavior-y:auto!important;
    padding-bottom:0!important;
    scroll-padding-bottom:0!important;
  }
  body .app>main::after{
    content:'';display:block;width:100%;
    height:calc(118px + env(safe-area-inset-bottom))!important;
    pointer-events:none!important;
  }
  body .app>#wfMobileBar855{
    position:fixed!important;
    left:12px!important;right:12px!important;
    bottom:calc(7px + env(safe-area-inset-bottom))!important;
    width:auto!important;margin:0!important;
    min-height:72px!important;z-index:410!important;
  }
  body.wf855-modal-open .app>#wfMobileBar855{display:none!important}
  #wfMobileSafe855{display:none!important;height:0!important}
  #wfMobileDrawer855{touch-action:pan-y!important}
  .wf855-drawer-list{overscroll-behavior-y:contain!important;-webkit-overflow-scrolling:touch!important}
}
