/* SOFTWARE ESM - ARRANQUE PREMIUM / DIAGNÓSTICO INTELIGENTE */
#esmBootPremium {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 26px;
  color: #eaf8ff;
  background:
    radial-gradient(circle at 18% 16%, rgba(0, 226, 255, .24), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(144, 82, 255, .22), transparent 31%),
    radial-gradient(circle at 50% 90%, rgba(0, 255, 170, .12), transparent 33%),
    linear-gradient(145deg, #020615 0%, #06162b 48%, #020611 100%);
  overflow: hidden;
  transition: opacity .65s ease, visibility .65s ease, transform .65s ease;
}
#esmBootPremium.esm-boot-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.015);
}
.esm-boot-grid,
.esm-boot-scan,
.esm-boot-orb,
.esm-boot-stars { position:absolute; inset:0; pointer-events:none; }
.esm-boot-grid {
  background:
    linear-gradient(rgba(77,220,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,220,255,.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
  animation: esmGridMove 8s linear infinite;
}
.esm-boot-scan {
  background: linear-gradient(180deg, transparent, rgba(74,229,255,.12), transparent);
  height: 26%;
  top: -30%;
  animation: esmScan 4.5s ease-in-out infinite;
}
.esm-boot-orb {
  width: 540px; height: 540px; border-radius: 50%; inset: auto;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  border: 1px solid rgba(93,233,255,.18);
  box-shadow: 0 0 90px rgba(0,213,255,.18), inset 0 0 80px rgba(122,92,255,.08);
  animation: esmOrbPulse 3.3s ease-in-out infinite;
}
.esm-boot-orb::before, .esm-boot-orb::after {
  content:""; position:absolute; inset:42px; border-radius:50%; border:1px dashed rgba(105,245,255,.28);
  animation: esmRotate 12s linear infinite;
}
.esm-boot-orb::after { inset:86px; border-style: solid; border-color: rgba(167,117,255,.22); animation-duration: 8s; animation-direction: reverse; }
.esm-boot-stars {
  background-image:
    radial-gradient(circle, rgba(255,255,255,.55) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(99,233,255,.45) 0 1px, transparent 1px);
  background-size: 95px 95px, 135px 135px;
  opacity: .28;
  animation: esmStars 14s linear infinite;
}
.esm-boot-card {
  width: min(1120px, 96vw);
  min-height: min(720px, 92vh);
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .92fr) minmax(330px, 1.08fr);
  gap: 18px;
  padding: 22px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.105), rgba(255,255,255,.035));
  border: 1px solid rgba(170,238,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 90px rgba(0,0,0,.56), 0 0 48px rgba(74,220,255,.15);
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  overflow: hidden;
}
.esm-boot-card::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(118deg, rgba(255,255,255,.15), transparent 24%, transparent 72%, rgba(85,238,255,.08));
}
.esm-boot-left, .esm-boot-right { position:relative; z-index:1; }
.esm-boot-left {
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  padding: 22px;
  border-radius: 28px;
  background: radial-gradient(circle at top, rgba(54,225,255,.12), transparent 44%), rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.12);
}
.esm-boot-logo-ring {
  width: 205px; height: 205px; border-radius:50%; display:grid; place-items:center; position:relative;
  background: radial-gradient(circle, rgba(87,232,255,.22), rgba(8,18,39,.28) 58%, rgba(0,0,0,.25));
  border: 1px solid rgba(137,237,255,.32);
  box-shadow: 0 0 44px rgba(0,220,255,.28), inset 0 0 36px rgba(120,84,255,.16);
  animation: esmLogoFloat 3.8s ease-in-out infinite;
}
.esm-boot-logo-ring::before, .esm-boot-logo-ring::after {
  content:""; position:absolute; border-radius:50%; border: 1px solid rgba(119,235,255,.28); inset:-14px;
  border-top-color: rgba(255,255,255,.8); animation: esmRotate 8s linear infinite;
}
.esm-boot-logo-ring::after { inset:-28px; border-color: rgba(159,105,255,.22); border-bottom-color: rgba(98,255,203,.76); animation-duration: 13s; animation-direction: reverse; }
#esmBootLogoImg { max-width: 124px; max-height: 124px; border-radius: 24px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(95,235,255,.55)); }
.esm-boot-logo-text { font-size: 46px; font-weight: 1000; letter-spacing: 4px; background: linear-gradient(90deg,#6cf2ff,#ffffff,#a875ff,#67ffd0); -webkit-background-clip:text; color:transparent; }
.esm-boot-title { margin: 34px 0 8px; font-size: clamp(30px, 4vw, 56px); line-height: .95; font-weight: 1000; letter-spacing: 2px; text-transform: uppercase; text-shadow: 0 0 32px rgba(65,229,255,.32); }
.esm-boot-subtitle { margin:0; color:#a9c9df; letter-spacing: 3px; font-size: 12px; text-transform: uppercase; }
.esm-boot-status-big { margin-top: 28px; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(98,235,255,.28); background: rgba(0,0,0,.22); color: #6df0ff; font-weight: 900; box-shadow: 0 0 24px rgba(70,225,255,.12); }
.esm-boot-right { display:flex; flex-direction:column; gap:14px; padding: 4px; }
.esm-boot-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; padding: 12px 6px 2px; }
.esm-boot-head h2 { margin:0; font-size: 24px; letter-spacing:.4px; }
.esm-boot-head p { margin:7px 0 0; color:#a7bdd1; }
.esm-boot-badge { padding: 9px 13px; border-radius:999px; background: rgba(99,255,202,.12); border: 1px solid rgba(99,255,202,.25); color:#7effd8; font-weight:900; white-space:nowrap; }
.esm-boot-progress-wrap { padding: 14px; border-radius: 22px; background: rgba(0,0,0,.18); border:1px solid rgba(255,255,255,.1); }
.esm-boot-progress-info { display:flex; justify-content:space-between; color:#bdd4e8; font-size: 13px; margin-bottom: 10px; }
.esm-boot-progress { height: 14px; border-radius:999px; overflow:hidden; background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.1); }
#esmBootProgressBar { width:0%; height:100%; border-radius:999px; background: linear-gradient(90deg,#35dbff,#8f6fff,#65ffc7); box-shadow: 0 0 25px rgba(65,229,255,.55); transition: width .45s ease; }
.esm-boot-checks { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.esm-boot-check { display:flex; align-items:center; gap:10px; min-height:54px; padding: 12px; border-radius:18px; background: rgba(255,255,255,.055); border:1px solid rgba(255,255,255,.09); color:#dbefff; }
.esm-boot-check .dot { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto; background: rgba(255,255,255,.08); color:#a9c9df; box-shadow: inset 0 0 15px rgba(0,0,0,.35); }
.esm-boot-check small { display:block; color:#8ea7bc; margin-top:2px; }
.esm-boot-check.ok { border-color: rgba(101,255,199,.23); background: rgba(101,255,199,.07); }
.esm-boot-check.ok .dot { background: rgba(101,255,199,.18); color:#71ffd2; }
.esm-boot-check.warn { border-color: rgba(255,204,92,.28); background: rgba(255,204,92,.08); }
.esm-boot-check.warn .dot { background: rgba(255,204,92,.16); color:#ffd36a; }
.esm-boot-check.error { border-color: rgba(255,98,128,.32); background: rgba(255,98,128,.09); }
.esm-boot-check.error .dot { background: rgba(255,98,128,.18); color:#ff7891; }
.esm-boot-console { min-height: 118px; max-height: 150px; overflow:auto; padding: 13px 14px; border-radius:18px; background: rgba(0,0,0,.32); border:1px solid rgba(98,235,255,.13); font-family: Consolas, monospace; font-size: 12px; color:#aeeeff; }
.esm-boot-console div { margin: 4px 0; opacity:.94; }
.esm-boot-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }
.esm-boot-actions button { border: 1px solid rgba(255,255,255,.16); background: linear-gradient(135deg, rgba(82,230,255,.92), rgba(143,111,255,.82)); color:#031322; font-weight: 1000; padding: 11px 14px; border-radius: 14px; cursor:pointer; box-shadow: 0 0 18px rgba(82,230,255,.22); }
.esm-boot-actions button.secondary { color:#d9efff; background: rgba(255,255,255,.08); }
.esm-boot-foot { color:#7895ac; font-size: 12px; text-align:right; }
@keyframes esmRotate { to { transform: rotate(360deg); } }
@keyframes esmGridMove { to { background-position: 52px 52px; } }
@keyframes esmScan { 0% { top:-30%; opacity:0; } 18%,75%{opacity:1;} 100%{ top: 105%; opacity:0;} }
@keyframes esmStars { to { background-position: 95px 95px, -135px 135px; } }
@keyframes esmOrbPulse { 0%,100%{opacity:.55; transform:translate(-50%,-50%) scale(.98);} 50%{opacity:.92; transform:translate(-50%,-50%) scale(1.04);} }
@keyframes esmLogoFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
@media (max-width: 850px) {
  #esmBootPremium { padding: 12px; }
  .esm-boot-card { grid-template-columns: 1fr; min-height: auto; max-height: 94vh; overflow:auto; border-radius: 24px; padding: 14px; }
  .esm-boot-left { padding:18px; }
  .esm-boot-logo-ring { width:150px; height:150px; }
  .esm-boot-checks { grid-template-columns: 1fr; }
  .esm-boot-head { flex-direction:column; }
}








/* =========================================================
   SOFTWARE ESM - BIENVENIDA FINAL CUADRO PRO
   Solo pantalla final después de la carga. No toca login/F5/Firebase.
   ========================================================= */
#esmBootFinalBlack{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  z-index:10000000 !important;
  display:block !important;
  padding:0 !important;
  margin:0 !important;
  background:#010714 !important;
  color:#fff !important;
  font-family:"Segoe UI",Arial,sans-serif !important;
  overflow:hidden !important;
  opacity:1;
  transition:opacity .65s ease;
}
#esmBootFinalBlack.hide{opacity:0 !important;}
#esmBootFinalBlack::before,#esmBootFinalBlack::after{display:none !important;content:none !important;}

.esm-final-pro-bg{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:28px;
  background:
    radial-gradient(circle at 50% 8%, rgba(0,170,255,.22), transparent 34%),
    radial-gradient(circle at 15% 65%, rgba(0,220,255,.13), transparent 35%),
    linear-gradient(135deg,#01040b 0%,#061225 52%,#01030a 100%);
}
.esm-final-pro-bg::before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.62;
  background:
    linear-gradient(rgba(0,195,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,195,255,.055) 1px, transparent 1px);
  background-size:54px 54px;
}

.esm-final-pro-card{
  position:relative;
  z-index:2;
  width:min(1420px,94vw);
  min-height:min(800px,86vh);
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:22px;
  padding:26px;
  border-radius:30px;
  border:1px solid rgba(0,210,255,.68);
  background:linear-gradient(145deg, rgba(4,16,34,.94), rgba(1,7,18,.91));
  box-shadow:0 0 0 1px rgba(0,210,255,.22), 0 0 46px rgba(0,170,255,.46), inset 0 0 70px rgba(0,140,255,.12);
  overflow:hidden;
}
.esm-final-pro-card::before{
  content:"";
  position:absolute;
  inset:12px;
  border-radius:23px;
  border:1px solid rgba(0,210,255,.26);
  pointer-events:none;
}

.esm-final-pro-header{
  position:relative;
  z-index:3;
  min-height:126px;
  display:grid;
  grid-template-columns:1.12fr .88fr;
  gap:22px;
  align-items:center;
}
.esm-final-pro-brand,.esm-final-pro-empresa{
  height:100%;
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 22px;
  border:1px solid rgba(0,210,255,.36);
  border-radius:24px;
  background:rgba(2,13,28,.58);
  box-shadow:inset 0 0 26px rgba(0,153,255,.09);
}
.esm-final-pro-brand-logo{
  width:86px;height:86px;flex:0 0 auto;border-radius:20px;display:grid;place-items:center;
  border:1px solid rgba(0,210,255,.42);background:rgba(0,120,255,.10);overflow:hidden;
  box-shadow:0 0 22px rgba(0,170,255,.24);
}
.esm-final-pro-brand-logo img{width:100%;height:100%;object-fit:contain;padding:6px;}
.esm-final-pro-brand-logo span{font-weight:1000;color:#eaffff;}
.esm-final-pro-brand strong{
  display:block;color:#fff;font-size:clamp(28px,3vw,54px);font-weight:1000;letter-spacing:.06em;text-transform:uppercase;
  text-shadow:0 0 16px rgba(0,217,255,.55);
}
.esm-final-pro-brand small{
  display:block;margin-top:4px;color:#82eaff;font-size:clamp(11px,1vw,15px);font-weight:900;letter-spacing:.12em;text-transform:uppercase;
}
.esm-final-pro-empresa{
  flex-direction:column;justify-content:center;text-align:center;gap:5px;
}
.esm-final-pro-empresa span{
  color:#1da2ff;font-size:clamp(12px,1vw,16px);font-weight:1000;letter-spacing:.14em;
}
.esm-final-pro-empresa strong{
  max-width:100%;color:#fff;font-size:clamp(22px,2vw,36px);font-weight:1000;text-shadow:0 0 14px rgba(0,217,255,.50);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.esm-final-pro-main{
  position:relative;
  z-index:3;
  display:grid;
  grid-template-columns:43% 57%;
  gap:30px;
  min-height:0;
}
.esm-final-pro-user{
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-width:0;
}
.esm-final-pro-photo{
  width:min(330px,23vw);height:min(330px,23vw);min-width:210px;min-height:210px;
  border-radius:50%;overflow:hidden;display:grid;place-items:center;background:linear-gradient(135deg,#061527,#0b2742);
  border:5px solid rgba(235,252,255,.92);
  box-shadow:0 0 0 10px rgba(0,145,255,.15),0 0 34px rgba(0,220,255,.76),0 0 82px rgba(0,80,255,.45);
}
.esm-final-pro-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.esm-final-pro-photo span{display:none;font-size:clamp(54px,7vw,116px);font-weight:1000;color:#eafcff;text-shadow:0 0 20px rgba(0,220,255,.85);}
.esm-final-pro-photo.sin-foto span{display:block;}
.esm-final-pro-welcome{
  margin-top:28px;color:#1da2ff;font-size:clamp(18px,1.6vw,28px);font-weight:1000;letter-spacing:.24em;
}
.esm-final-pro-user h1{
  margin:10px 0 0;color:#fff;font-size:clamp(28px,3vw,54px);line-height:1.05;font-weight:1000;text-transform:uppercase;letter-spacing:.035em;
  text-shadow:0 3px 10px rgba(0,0,0,.95),0 0 18px rgba(0,220,255,.85);
}

.esm-final-pro-info{
  display:flex;flex-direction:column;justify-content:center;gap:18px;min-width:0;
}
.esm-final-pro-row{
  min-height:104px;display:grid;grid-template-columns:82px 1fr auto;align-items:center;gap:20px;
  padding:18px 24px;border:1px solid rgba(0,210,255,.38);border-radius:22px;
  background:linear-gradient(90deg, rgba(0,130,255,.12), rgba(2,12,27,.55));
  box-shadow:inset 0 0 24px rgba(0,153,255,.08),0 0 18px rgba(0,120,255,.12);
}
.esm-final-pro-icon{
  width:66px;height:66px;display:grid;place-items:center;border-radius:18px;background:rgba(0,150,255,.16);
  border:1px solid rgba(0,220,255,.45);box-shadow:0 0 22px rgba(0,170,255,.32);font-size:31px;
}
.esm-final-pro-icon.ok{
  color:#34ff86;font-size:42px;border-color:rgba(52,255,134,.55);box-shadow:0 0 26px rgba(52,255,134,.34);
}
.esm-final-pro-row small{
  display:block;color:#1da2ff;font-weight:1000;letter-spacing:.12em;font-size:clamp(12px,1vw,16px);margin-bottom:8px;
}
.esm-final-pro-row strong{
  display:block;color:#fff;font-size:clamp(21px,2vw,36px);line-height:1.08;text-shadow:0 2px 8px rgba(0,0,0,.92),0 0 15px rgba(0,210,255,.42);
  overflow:hidden;text-overflow:ellipsis;
}
.esm-final-pro-row.estado strong{color:#50ff92;}
.esm-final-pro-check{
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#50ff92;border:2px solid rgba(80,255,146,.85);
  box-shadow:0 0 24px rgba(80,255,146,.40);font-size:32px;font-weight:1000;
}

.esm-final-pro-footer{
  position:relative;z-index:3;display:grid;grid-template-columns:1fr 1fr;gap:20px;
}
.esm-final-pro-footer div{
  min-height:72px;display:flex;align-items:center;justify-content:center;text-align:center;padding:14px 20px;
  border:1px solid rgba(0,210,255,.32);border-radius:20px;background:rgba(2,13,28,.58);
  color:#fff;font-size:clamp(15px,1.15vw,21px);font-weight:850;box-shadow:inset 0 0 22px rgba(0,153,255,.08);
}

@media(max-width:980px){
  .esm-final-pro-card{width:95vw;min-height:90vh;overflow:auto;}
  .esm-final-pro-header,.esm-final-pro-main,.esm-final-pro-footer{grid-template-columns:1fr;}
  .esm-final-pro-photo{width:220px;height:220px;}
  .esm-final-pro-row{min-height:82px;grid-template-columns:62px 1fr auto;padding:13px 16px;}
  .esm-final-pro-icon{width:52px;height:52px;font-size:25px;}
}




/* =========================================================
   AJUSTE SOLO PANTALLA FINAL: MAS ALEJADA + VOZ CONSERVADA
   No toca login, F5, Firebase/Auth ni módulos.
   ========================================================= */
#esmBootFinalBlack .esm-final-pro-card{
  width:min(1120px,84vw) !important;
  min-height:min(590px,74vh) !important;
  padding:18px !important;
  gap:14px !important;
  border-radius:24px !important;
  transform:scale(.92) !important;
  transform-origin:center center !important;
}
#esmBootFinalBlack .esm-final-pro-header{
  min-height:82px !important;
  gap:14px !important;
}
#esmBootFinalBlack .esm-final-pro-brand,
#esmBootFinalBlack .esm-final-pro-empresa{
  padding:10px 14px !important;
  min-height:78px !important;
  border-radius:18px !important;
}
#esmBootFinalBlack .esm-final-pro-brand-logo{
  width:58px !important;
  height:58px !important;
  border-radius:14px !important;
}
#esmBootFinalBlack .esm-final-pro-brand strong{
  font-size:clamp(20px,2.1vw,34px) !important;
}
#esmBootFinalBlack .esm-final-pro-brand small,
#esmBootFinalBlack .esm-final-pro-empresa span{
  font-size:clamp(9px,.75vw,12px) !important;
}
#esmBootFinalBlack .esm-final-pro-empresa strong{
  font-size:clamp(16px,1.45vw,26px) !important;
}
#esmBootFinalBlack .esm-final-pro-main{
  gap:18px !important;
  grid-template-columns:40% 60% !important;
}
#esmBootFinalBlack .esm-final-pro-photo{
  width:min(230px,16vw) !important;
  height:min(230px,16vw) !important;
  min-width:150px !important;
  min-height:150px !important;
  border-width:4px !important;
}
#esmBootFinalBlack .esm-final-pro-welcome{
  margin-top:16px !important;
  font-size:clamp(13px,1.05vw,18px) !important;
  letter-spacing:.18em !important;
}
#esmBootFinalBlack .esm-final-pro-user h1{
  font-size:clamp(20px,2.05vw,34px) !important;
  margin-top:6px !important;
}
#esmBootFinalBlack .esm-final-pro-info{
  gap:10px !important;
}
#esmBootFinalBlack .esm-final-pro-row{
  min-height:70px !important;
  grid-template-columns:56px 1fr auto !important;
  gap:12px !important;
  padding:10px 14px !important;
  border-radius:16px !important;
}
#esmBootFinalBlack .esm-final-pro-icon{
  width:46px !important;
  height:46px !important;
  border-radius:13px !important;
  font-size:22px !important;
}
#esmBootFinalBlack .esm-final-pro-icon.ok{
  font-size:30px !important;
}
#esmBootFinalBlack .esm-final-pro-row small{
  font-size:clamp(9px,.72vw,12px) !important;
  margin-bottom:4px !important;
}
#esmBootFinalBlack .esm-final-pro-row strong{
  font-size:clamp(15px,1.45vw,24px) !important;
}
#esmBootFinalBlack .esm-final-pro-check{
  width:38px !important;
  height:38px !important;
  font-size:22px !important;
}
#esmBootFinalBlack .esm-final-pro-footer{
  gap:12px !important;
}
#esmBootFinalBlack .esm-final-pro-footer div{
  min-height:48px !important;
  padding:8px 12px !important;
  border-radius:14px !important;
  font-size:clamp(11px,.9vw,15px) !important;
}
@media(max-height:820px){
  #esmBootFinalBlack .esm-final-pro-card{
    transform:scale(.84) !important;
    min-height:min(560px,72vh) !important;
  }
}
@media(max-width:980px){
  #esmBootFinalBlack .esm-final-pro-card{
    transform:scale(.90) !important;
    width:92vw !important;
    min-height:78vh !important;
    overflow:auto !important;
  }
}




/* =========================================================
   AJUSTE FINAL: CUADRO MAS PEQUEÑO Y CENTRADO
   Solo reduce la pantalla final de bienvenida.
   No toca login, F5, Firebase/Auth ni módulos.
   ========================================================= */
#esmBootFinalBlack .esm-final-pro-card{
  width:min(980px,76vw) !important;
  min-height:min(500px,64vh) !important;
  max-height:72vh !important;
  padding:14px !important;
  gap:10px !important;
  transform:scale(.78) !important;
  transform-origin:center center !important;
}

#esmBootFinalBlack .esm-final-pro-header{
  min-height:64px !important;
}

#esmBootFinalBlack .esm-final-pro-brand,
#esmBootFinalBlack .esm-final-pro-empresa{
  min-height:62px !important;
  padding:8px 12px !important;
}

#esmBootFinalBlack .esm-final-pro-brand-logo{
  width:46px !important;
  height:46px !important;
}

#esmBootFinalBlack .esm-final-pro-brand strong{
  font-size:clamp(17px,1.7vw,28px) !important;
}

#esmBootFinalBlack .esm-final-pro-empresa strong{
  font-size:clamp(14px,1.25vw,22px) !important;
}

#esmBootFinalBlack .esm-final-pro-photo{
  width:min(185px,13vw) !important;
  height:min(185px,13vw) !important;
  min-width:130px !important;
  min-height:130px !important;
}

#esmBootFinalBlack .esm-final-pro-welcome{
  margin-top:12px !important;
  font-size:clamp(11px,.9vw,15px) !important;
}

#esmBootFinalBlack .esm-final-pro-user h1{
  font-size:clamp(17px,1.65vw,28px) !important;
}

#esmBootFinalBlack .esm-final-pro-row{
  min-height:56px !important;
  grid-template-columns:44px 1fr auto !important;
  gap:9px !important;
  padding:8px 11px !important;
}

#esmBootFinalBlack .esm-final-pro-icon{
  width:36px !important;
  height:36px !important;
  font-size:18px !important;
}

#esmBootFinalBlack .esm-final-pro-icon.ok{
  font-size:24px !important;
}

#esmBootFinalBlack .esm-final-pro-row small{
  font-size:clamp(8px,.62vw,10px) !important;
  margin-bottom:2px !important;
}

#esmBootFinalBlack .esm-final-pro-row strong{
  font-size:clamp(12px,1.12vw,19px) !important;
}

#esmBootFinalBlack .esm-final-pro-check{
  width:30px !important;
  height:30px !important;
  font-size:18px !important;
}

#esmBootFinalBlack .esm-final-pro-footer div{
  min-height:38px !important;
  padding:6px 10px !important;
  font-size:clamp(9px,.72vw,13px) !important;
}

@media(max-height:820px){
  #esmBootFinalBlack .esm-final-pro-card{
    transform:scale(.72) !important;
    min-height:min(470px,60vh) !important;
  }
}




/* =========================================================
   AJUSTE FINAL SOLICITADO:
   Logo empresa derecha + textos alineados + voz bienvenida.
   Solo pantalla final. No toca login, F5, Firebase/Auth ni módulos.
   ========================================================= */

/* Header derecho: espacio para logo de empresa */
#esmBootFinalBlack .esm-final-pro-empresa{
  display:grid !important;
  grid-template-columns:44px 1fr !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:left !important;
  gap:10px !important;
}

/* Logo empresa en la parte derecha */
#esmBootFinalBlack .esm-final-pro-empresa-logo{
  width:38px !important;
  height:38px !important;
  border-radius:12px !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border:1px solid rgba(0,210,255,.45) !important;
  background:rgba(0,120,255,.12) !important;
  box-shadow:0 0 16px rgba(0,170,255,.28) !important;
  color:#eafcff !important;
  font-weight:1000 !important;
  font-size:15px !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-logo img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  padding:4px !important;
}

/* Textos más ordenados en la parte derecha */
#esmBootFinalBlack .esm-final-pro-empresa span,
#esmBootFinalBlack .esm-final-pro-row small{
  text-align:left !important;
  letter-spacing:.10em !important;
}

#esmBootFinalBlack .esm-final-pro-empresa strong,
#esmBootFinalBlack .esm-final-pro-row strong{
  text-align:left !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

#esmBootFinalBlack .esm-final-pro-row{
  align-items:center !important;
}

#esmBootFinalBlack .esm-final-pro-row > div:nth-child(2){
  min-width:0 !important;
}

/* Mantener estado limpio */
#esmBootFinalBlack .esm-final-pro-row.estado strong{
  color:#50ff92 !important;
}

/* En pantallas pequeñas no montar logo/texto */
@media(max-width:980px){
  #esmBootFinalBlack .esm-final-pro-empresa{
    grid-template-columns:36px 1fr !important;
  }
  #esmBootFinalBlack .esm-final-pro-empresa-logo{
    width:32px !important;
    height:32px !important;
  }
}


/* SOLO LOGO EMPRESA DERECHA */
#esmBootFinalBlack .esm-final-pro-empresa{
 display:flex !important;
 align-items:center !important;
 justify-content:space-between !important;
}
#esmBootFinalBlack .esm-final-pro-empresa-logo{
 order:2 !important;
 margin-left:auto !important;
 display:grid !important;
}



/* =========================================================
   FIX REAL: Logo de empresa integrado en HEADER superior derecho
   ========================================================= */
#esmBootFinalBlack .esm-final-pro-empresa{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:12px !important;
  text-align:left !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-logo,
#esmBootFinalBlack .esm-final-pro-empresa-logo-header{
  width:44px !important;
  height:44px !important;
  flex:0 0 44px !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border-radius:12px !important;
  border:1px solid rgba(0,210,255,.45) !important;
  background:rgba(0,120,255,.12) !important;
  box-shadow:0 0 16px rgba(0,170,255,.28) !important;
  color:#eafcff !important;
  font-weight:1000 !important;
  font-size:16px !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-logo img,
#esmBootFinalBlack .esm-final-pro-empresa-logo-header img{
  width:100% !important;
  height:100% !important;
  object-fit:contain !important;
  padding:4px !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-texto{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-texto span,
#esmBootFinalBlack .esm-final-pro-empresa span{
  text-align:left !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-texto strong,
#esmBootFinalBlack .esm-final-pro-empresa strong{
  text-align:left !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}




/* =========================================================
   FIX FINAL: logo empresa izquierda + nombre a la par
   Solo header superior derecho.
   ========================================================= */
#esmBootFinalBlack .esm-final-pro-empresa{
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:flex-start !important;
  justify-items:start !important;
  gap:12px !important;
  text-align:left !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-logo,
#esmBootFinalBlack .esm-final-pro-empresa-logo-header{
  grid-column:1 !important;
  grid-row:1 !important;
  width:44px !important;
  height:44px !important;
  min-width:44px !important;
  max-width:44px !important;
  flex:none !important;
  align-self:center !important;
  justify-self:start !important;
  margin:0 !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-texto,
#esmBootFinalBlack .esm-final-pro-empresa > div:last-child{
  grid-column:2 !important;
  grid-row:1 !important;
  min-width:0 !important;
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  justify-content:center !important;
  text-align:left !important;
  margin:0 !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-texto span,
#esmBootFinalBlack .esm-final-pro-empresa > div:last-child span{
  display:block !important;
  text-align:left !important;
  width:100% !important;
}

#esmBootFinalBlack .esm-final-pro-empresa-texto strong,
#esmBootFinalBlack .esm-final-pro-empresa > div:last-child strong{
  display:block !important;
  text-align:left !important;
  width:100% !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

