:root{
  --blue:#062b57;
  --blue2:#031936;
  --green:#19a83a;
  --green2:#16c94b;
  --text:#092650;
  --muted:#40546b;
  --soft:#f4f8fb;
  --line:rgba(6,43,87,.10);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Montserrat',system-ui,sans-serif;
  color:var(--text);
  background:#fff;
  overflow-x:hidden;
}

/* HEADER MAQUETA MAESTRA */
.main-header{
  height:150px;
  padding:0 5.2vw;
  display:flex;
  align-items:center;
  gap:30px;
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 8px 26px rgba(6,43,87,.08);
  position:fixed;
  left:0;right:0;top:0;
  z-index:100;
}

.brand-img{
  display:flex;
  align-items:center;
  width:405px;
  flex:0 0 405px;
  text-decoration:none;
}

.brand-img img{
  width:100%;
  height:auto;
  display:block;
}

.main-nav{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:30px;
}

.main-nav a{
  color:var(--blue);
  text-decoration:none;
  text-transform:uppercase;
  font-size:13px;
  font-weight:900;
  position:relative;
  white-space:nowrap;
}

.main-nav a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-19px;
  width:0;
  height:3px;
  border-radius:5px;
  background:var(--green);
  transition:.25s ease;
}

.main-nav a.active::after,
.main-nav a:hover::after{width:100%}

.header-call{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:16px 23px;
  color:#fff;
  background:var(--blue);
  border-radius:8px;
  text-decoration:none;
  font-weight:800;
  box-shadow:0 12px 26px rgba(6,43,87,.23);
  white-space:nowrap;
}

.menu-toggle{display:none}

/* HERO */
.hero-master{
  margin-top:150px;
  min-height:470px;
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(90deg,rgba(3,25,59,1) 0%,rgba(3,25,59,.92) 45%,rgba(3,25,59,.20) 100%),
    var(--blue2);
  padding:80px 7vw 92px;
}

.hero-master::after{
  content:"";
  position:absolute;
  left:-5%;
  right:-5%;
  bottom:-74px;
  height:145px;
  background:#fff;
  border-radius:50% 50% 0 0 / 100% 100% 0 0;
  z-index:4;
}

.hero-net{
  position:absolute;
  inset:0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(0,200,255,.45), transparent 1px),
    linear-gradient(115deg, transparent 0%, rgba(0,200,255,.10) 55%, transparent 100%);
  opacity:.8;
  z-index:1;
}

.hero-building{
  position:absolute;
  right:0;
  top:0;
  bottom:0;
  width:62%;
  background:
    linear-gradient(90deg,rgba(3,25,59,0),rgba(3,25,59,.08)),
    url("../img/hero/hero-edificio-futurista.png") center right/cover no-repeat;
  filter:saturate(1.12) contrast(1.05);
  z-index:2;
}

.hero-copy{
  position:relative;
  z-index:5;
  max-width:620px;
}

.hero-copy span{
  display:block;
  color:#1eff55;
  text-transform:uppercase;
  font-weight:900;
  font-size:14px;
  margin-bottom:18px;
}

.hero-copy h1{
  color:#fff;
  font-size:clamp(40px,4.1vw,61px);
  line-height:1.17;
  letter-spacing:-1.5px;
  margin-bottom:16px;
}

.hero-copy p{
  color:#fff;
  font-size:20px;
  line-height:1.6;
  max-width:620px;
  margin-bottom:36px;
}

.hero-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
}

.btn-green,.btn-outline-white{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:17px 28px;
  border-radius:8px;
  text-decoration:none;
  font-weight:800;
  font-size:15px;
  transition:.25s ease;
}

.btn-green{
  color:#fff;
  background:var(--green);
  box-shadow:0 16px 28px rgba(25,168,58,.25);
}

.btn-outline-white{
  color:#fff;
  border:1px solid rgba(255,255,255,.75);
  background:rgba(255,255,255,.06);
}

.btn-green:hover,.btn-outline-white:hover{transform:translateY(-4px)}

.floating-icon{
  position:absolute;
  z-index:5;
  width:62px;height:62px;
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#fff;
  border:2px solid rgba(255,255,255,.52);
  background:rgba(0,150,220,.20);
  box-shadow:0 0 30px rgba(0,200,255,.32);
  animation:float 4s ease-in-out infinite;
}

.icon-users{right:34%;top:82px}
.icon-chart{right:43%;bottom:128px;animation-delay:.8s}
.icon-shield{right:8%;top:72px;animation-delay:1.3s}
.icon-clock{right:12%;bottom:135px;animation-delay:.4s}
@keyframes float{50%{transform:translateY(-10px)}}

/* CLIENTES */
.clients-master{
  background:#fff;
  padding:54px 5vw 72px;
}

.title-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:34px;
  margin-bottom:32px;
}

.title-line span{
  width:58px;
  height:2px;
  background:var(--green);
}

.title-line h2{
  color:var(--text);
  text-transform:uppercase;
  font-size:18px;
  letter-spacing:.7px;
  text-align:center;
}

.clients-carousel{
  display:grid;
  grid-template-columns:54px 1fr 54px;
  align-items:center;
  gap:20px;
}

.clients-window{overflow:hidden}
.clients-track{
  display:flex;
  gap:18px;
  transition:transform .45s ease;
}

.institution-card{
  min-width:calc((100% - 108px)/7);
  min-height:210px;
  padding:22px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(6,43,87,.08);
  box-shadow:0 14px 38px rgba(6,43,87,.10);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  transition:.25s ease;
}

.institution-card:hover{
  transform:translateY(-8px);
  box-shadow:0 20px 48px rgba(6,43,87,.16);
}

.institution-logo{
  width:92px;
  height:92px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  overflow:hidden;
  color:#06366a;
  font-weight:900;
  border-radius:50%;
  background:#fff;
}

.institution-logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.institution-logo b{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
}

.institution-logo.green{border:3px solid #2da55b;color:#2da55b;font-size:18px}
.institution-logo.purple{color:#71318d;font-size:42px}
.institution-logo.colorful{color:#168fcd;font-size:42px}
.institution-logo.blue{color:#0b80c8;font-size:28px}
.institution-logo.logo-round{border:3px solid var(--blue)}
.institution-logo.logo-line{border-radius:10px;font-size:44px}

.institution-card h3{
  color:var(--text);
  font-size:14px;
  line-height:1.45;
  font-weight:800;
}

.client-arrow{
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  background:var(--blue);
  color:#fff;
  font-size:36px;
  cursor:pointer;
  box-shadow:0 12px 28px rgba(6,43,87,.20);
}

/* NOSOTROS */
.about-clean{
  padding:78px 6vw;
  background:var(--soft);
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:38px;
  align-items:center;
}

.section-kicker{
  color:var(--green);
  text-transform:uppercase;
  font-size:13px;
  font-weight:900;
  letter-spacing:1.4px;
}

.about-clean h2,
.section-head h2,
.panel-intro h2,
.vision-band h2{
  color:var(--text);
  font-size:clamp(30px,3vw,46px);
  line-height:1.18;
  margin:12px 0 16px;
}

.about-clean p,
.section-head p,
.panel-intro p{
  color:var(--muted);
  line-height:1.75;
  font-size:17px;
}

.about-numbers{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.about-numbers article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  padding:28px 18px;
  text-align:center;
  box-shadow:0 16px 38px rgba(6,43,87,.08);
}

.about-numbers strong{
  display:block;
  color:var(--blue);
  font-size:34px;
  font-weight:900;
}

.about-numbers small{
  color:var(--muted);
  font-weight:700;
}

/* PANEL GERENCIAL */
.management-panel{
  padding:64px 6vw 78px;
  background:linear-gradient(180deg,#f1f7fb,#fff);
  display:grid;
  grid-template-columns:370px 1fr;
  gap:40px;
  align-items:center;
}

.panel-intro h2{font-size:34px}
.kpi-layout{
  display:grid;
  grid-template-columns:1.05fr repeat(3,.9fr) 1.45fr;
  gap:16px;
}

.summary-card,.kpi-mini,.chart-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:22px;
  box-shadow:0 12px 32px rgba(6,43,87,.08);
}

.summary-card{
  background:var(--blue);
  color:#fff;
}

.summary-card h3{font-size:15px;margin-bottom:4px}
.summary-card small{color:#dceaf6}
.summary-card select{
  width:100%;
  margin-top:20px;
  padding:12px;
  border-radius:7px;
  background:#0b3a72;
  color:#fff;
  border:1px solid rgba(255,255,255,.25);
}

.kpi-mini small,.chart-card small{
  display:block;
  color:var(--blue);
  font-weight:800;
  margin-bottom:16px;
}

.kpi-mini strong{
  display:block;
  color:var(--blue);
  font-size:25px;
  font-weight:900;
}

.kpi-mini em{
  display:inline-block;
  color:var(--green);
  margin-top:8px;
  font-style:normal;
  font-weight:800;
}

.kpi-mini span{
  display:block;
  color:#667;
  font-size:10px;
  margin-top:4px;
}

.bars{
  height:120px;
  display:flex;
  gap:16px;
  align-items:end;
}

.bars i{
  flex:1;
  height:var(--h);
  border-radius:5px 5px 0 0;
  background:#22aeea;
  animation:barPulse 2.2s ease-in-out infinite alternate;
}

.bars i:nth-child(4){background:var(--green)}
@keyframes barPulse{to{filter:brightness(1.15);transform:scaleY(.90)}}

/* SOLUCIONES */
.solutions-clean{
  padding:86px 5vw;
  background:#fff;
}

.section-head{
  text-align:center;
  max-width:840px;
  margin:0 auto 48px;
}

.solution-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}

.solution-card{
  min-height:320px;
  position:relative;
  overflow:hidden;
  border-radius:24px;
  padding:30px;
  color:#fff;
  background-size:cover;
  background-position:center;
  box-shadow:0 22px 52px rgba(5,30,60,.16);
  transition:.25s ease;
}

.solution-card:hover{transform:translateY(-9px)}
.solution-card .overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(145deg,rgba(3,25,59,.90),rgba(3,25,59,.48));
}

.solution-card span,
.solution-card h3,
.solution-card p{
  position:relative;
  z-index:2;
}

.solution-card span{
  width:66px;height:66px;
  display:grid;place-items:center;
  border-radius:18px;
  background:rgba(0,200,255,.14);
  border:1px solid rgba(0,200,255,.38);
  margin-bottom:24px;
  font-weight:900;
  font-size:25px;
}

.solution-card h3{
  font-size:25px;
  text-transform:uppercase;
  margin-bottom:12px;
}

.solution-card p{
  line-height:1.65;
  color:#e8f4ff;
}

.finance{background-image:url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1100&q=80")}
.economy{background-image:url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1100&q=80")}
.accounting{background-image:url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1100&q=80")}
.technology{background-image:url("https://images.unsplash.com/photo-1518779578993-ec3579fee39f?auto=format&fit=crop&w=1100&q=80")}
.ai{background-image:url("https://images.unsplash.com/photo-1677442136019-21780ecad995?auto=format&fit=crop&w=1100&q=80")}
.hr{background-image:url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1100&q=80")}

/* VISIÓN */
.vision-band{
  margin:20px 5vw 86px;
  padding:56px;
  border-radius:28px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
  background:
    radial-gradient(circle at 75% 20%,rgba(0,200,255,.22),transparent 35%),
    linear-gradient(135deg,#062b57,#031936);
  color:#fff;
}

.vision-band h2{color:#fff}
.vision-band p{color:#dceaf6;line-height:1.75}
.vision-tags{display:flex;gap:16px;flex-wrap:wrap}
.vision-tags span{
  padding:15px 19px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  font-weight:800;
}

/* CONTACTO */
.contact-section{
  padding:90px 5vw;
  background:var(--soft);
}

.contact-layout{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:30px;
  align-items:start;
}

.contact-form,.direct-card{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 18px 48px rgba(6,43,87,.10);
}

.contact-form{
  padding:34px;
  border-radius:28px;
}

.form-header{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding-bottom:22px;
  margin-bottom:24px;
  border-bottom:1px solid var(--line);
}

.form-kicker{
  color:var(--green);
  text-transform:uppercase;
  font-size:12px;
  font-weight:900;
  letter-spacing:1.5px;
}

.form-header h3{
  color:var(--text);
  font-size:30px;
  margin-top:8px;
}

.secure-badge{
  height:max-content;
  padding:9px 13px;
  border-radius:999px;
  color:#0b7a31;
  background:rgba(25,168,58,.10);
  border:1px solid rgba(25,168,58,.25);
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.form-group{display:flex;flex-direction:column;gap:8px}
.form-group.full{grid-column:1/-1}
.form-group label{
  color:var(--blue);
  font-size:13px;
  font-weight:800;
}

.form-group input,.form-group select,.form-group textarea{
  width:100%;
  border:1px solid #d9e4ee;
  border-radius:12px;
  padding:14px 15px;
  font-family:inherit;
  outline:none;
  transition:.2s ease;
}

.form-group textarea{resize:vertical;min-height:145px}
.form-group select:disabled{opacity:.62;cursor:not-allowed}

.form-group input:focus,.form-group select:focus,.form-group textarea:focus{
  border-color:#23a9e8;
  box-shadow:0 0 0 4px rgba(35,169,232,.10);
}

.privacy-check{
  margin:22px 0;
  display:flex;
  gap:12px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.btn-submit{
  border:0;
  border-radius:8px;
  padding:16px 28px;
  color:#fff;
  background:var(--green);
  font-weight:900;
  cursor:pointer;
}

.direct-contact{display:grid;gap:18px}
.direct-card{
  padding:24px;
  border-radius:22px;
}

.direct-icon{
  width:52px;height:52px;
  display:grid;place-items:center;
  border-radius:16px;
  background:var(--blue);
  color:#fff;
  margin-bottom:18px;
}

.direct-card h3,.direct-card h4{color:var(--text);margin-bottom:10px}
.direct-card p{color:var(--muted);line-height:1.65}
.direct-card strong{display:block;color:var(--blue);font-size:24px;margin:16px 0}
.direct-card a{color:var(--green);font-weight:900;text-decoration:none}

/* FOOTER */
.footer-master{
  padding:55px 5vw 28px;
  background:#031936;
  color:#dceaf6;
  display:grid;
  grid-template-columns:1.2fr 1fr .5fr;
  gap:34px;
}

.footer-master img{
  width:300px;
  background:#fff;
  border-radius:12px;
  padding:8px;
  margin-bottom:18px;
}

.footer-master h3{color:#fff;margin-bottom:14px}
.footer-master p{line-height:1.7}
.footer-master small{
  grid-column:1/-1;
  border-top:1px solid rgba(255,255,255,.12);
  padding-top:18px;
  color:#91a6b6;
}

.socials{display:flex;gap:12px}
.socials a{
  width:42px;height:42px;
  border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.08);
  color:#fff;
  text-decoration:none;
  font-weight:900;
}

/* WHATSAPP / TOAST */
.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:200;
  display:flex;
  gap:10px;
  align-items:center;
  color:#fff;
  text-decoration:none;
  background:#19a83a;
  border-radius:999px;
  padding:14px 18px;
  box-shadow:0 16px 36px rgba(25,168,58,.35);
}

.toast-container{
  position:fixed;
  top:170px;
  right:28px;
  z-index:999;
  width:min(420px,calc(100vw - 36px));
}

.toast{
  position:relative;
  display:grid;
  grid-template-columns:52px 1fr 34px;
  gap:14px;
  padding:18px;
  border-radius:18px;
  color:#fff;
  background:#062b57;
  box-shadow:0 24px 70px rgba(0,0,0,.30);
  animation:toastIn .35s ease forwards;
  overflow:hidden;
}

.toast.hide{animation:toastOut .35s ease forwards}
.toast-icon{
  width:52px;height:52px;
  display:grid;place-items:center;
  border-radius:16px;
  background:#19a83a;
  font-weight:900;
  font-size:24px;
}

.toast-content strong{display:block;margin-bottom:6px}
.toast-content p{font-size:13px;line-height:1.5;color:#dceaf6}
.toast-close{
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
}

.toast-progress{
  position:absolute;
  left:0;bottom:0;height:4px;width:100%;
  background:#19a83a;
  animation:toastProgress 5s linear forwards;
}
.toast.error .toast-icon,.toast.error .toast-progress{background:#d93636}
@keyframes toastIn{from{transform:translateX(110%);opacity:0}to{transform:translateX(0);opacity:1}}
@keyframes toastOut{to{transform:translateX(110%);opacity:0}}
@keyframes toastProgress{to{width:0}}

/* LOGIN */
.login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:30px;
  background:linear-gradient(135deg,#031936,#062b57);
}
.login-card{
  width:min(430px,100%);
  padding:34px;
  background:#fff;
  border-radius:24px;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}
.login-card img{width:310px;margin-bottom:20px}
.login-card h1{color:var(--text);margin-bottom:10px}
.login-card p{color:var(--muted);margin-bottom:22px;line-height:1.6}
.login-back{display:inline-block;margin-top:18px;color:var(--blue);font-weight:800;text-decoration:none}

/* RESPONSIVE */
@media(max-width:1300px){
  .brand-img{width:330px;flex-basis:330px}
  .main-nav{gap:20px}
  .main-nav a{font-size:12px}
}

@media(max-width:1100px){
  .main-header{
    height:auto;
    min-height:100px;
    padding:16px 5vw;
  }
  .brand-img{width:280px;flex-basis:280px}
  .main-nav{display:none}
  .menu-toggle{
    display:grid;
    gap:5px;
    margin-left:auto;
    background:transparent;
    border:0;
  }
  .menu-toggle span{
    width:28px;height:3px;background:var(--blue);border-radius:3px;
  }
  .hero-master{margin-top:100px}
  .management-panel,.about-clean,.contact-layout,.vision-band{grid-template-columns:1fr}
  .kpi-layout{grid-template-columns:repeat(2,1fr)}
  .solution-grid{grid-template-columns:repeat(2,1fr)}
  .institution-card{min-width:calc((100% - 36px)/3)}
}

@media(max-width:760px){
  .header-call{display:none}
  .brand-img{width:230px;flex-basis:230px}
  .hero-building{opacity:.38;width:100%}
  .floating-icon{display:none}
  .clients-carousel{grid-template-columns:1fr}
  .client-arrow{display:none}
  .institution-card{min-width:100%}
  .kpi-layout,.solution-grid,.about-numbers,.form-grid,.footer-master{grid-template-columns:1fr}
  .footer-master img{width:240px}
}


/* ==========================================================
   LOGIN VISUAL PROFESIONAL - Estilo Canvas / Institucional
   ========================================================== */

.login-canvas-page{
  min-height:100vh;
  background:#f4f7fb;
  font-family:'Montserrat',system-ui,sans-serif;
  color:#092650;
  display:flex;
}

.login-canvas-wrapper{
  width:100%;
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(420px, 48%) minmax(390px, 52%);
}

.login-brand-panel{
  position:relative;
  overflow:hidden;
  padding:56px clamp(34px,5vw,76px);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:
    linear-gradient(135deg, rgba(3,25,59,.94), rgba(6,43,87,.80)),
    url("../img/hero/hero-edificio-futurista.png") center/cover no-repeat;
  color:#ffffff;
}

.login-brand-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 28% 22%, rgba(25,168,58,.20), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(0,190,255,.22), transparent 30%),
    linear-gradient(90deg, rgba(3,25,59,.88), rgba(3,25,59,.54));
  z-index:0;
}

.login-brand-panel::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size:54px 54px;
  opacity:.35;
  z-index:0;
}

.login-brand-panel > *{
  position:relative;
  z-index:1;
}

.login-logo-link{
  display:inline-flex;
  width:min(360px,100%);
  background:#ffffff;
  padding:12px 16px;
  border-radius:16px;
  box-shadow:0 24px 60px rgba(0,0,0,.26);
}

.login-logo-link img{
  width:100%;
  height:auto;
  display:block;
}

.login-brand-copy{
  max-width:560px;
  margin-top:auto;
  margin-bottom:44px;
}

.login-brand-copy span{
  display:inline-block;
  color:#24f05c;
  text-transform:uppercase;
  font-size:13px;
  font-weight:900;
  letter-spacing:1.4px;
  margin-bottom:16px;
}

.login-brand-copy h1{
  color:#ffffff;
  font-size:clamp(38px,4vw,62px);
  line-height:1.08;
  letter-spacing:-1.6px;
  margin-bottom:20px;
}

.login-brand-copy p{
  color:#e6f2ff;
  font-size:18px;
  line-height:1.7;
}

.login-benefits{
  display:grid;
  gap:14px;
  max-width:480px;
}

.login-benefits article{
  display:flex;
  align-items:center;
  gap:12px;
  padding:15px 18px;
  border-radius:14px;
  background:rgba(255,255,255,.09);
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(8px);
}

.login-benefits strong{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#19a83a;
  color:#ffffff;
}

.login-benefits span{
  font-weight:800;
}

.login-access-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:48px 34px;
  background:
    radial-gradient(circle at 80% 12%, rgba(25,168,58,.08), transparent 28%),
    linear-gradient(180deg,#ffffff,#f4f7fb);
}

.login-form-card{
  width:min(430px,100%);
  padding:42px;
  border-radius:8px;
  background:#ffffff;
  border:1px solid rgba(6,43,87,.10);
  box-shadow:0 24px 70px rgba(6,43,87,.12);
}

.login-form-head{
  margin-bottom:28px;
}

.login-form-head h2{
  color:#092650;
  font-size:32px;
  font-weight:900;
  margin-bottom:10px;
}

.login-form-head p{
  color:#55697e;
  font-size:15px;
  line-height:1.6;
}

.login-field{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-bottom:18px;
}

.login-field label{
  color:#092650;
  font-size:13px;
  font-weight:800;
}

.login-field input{
  width:100%;
  height:48px;
  border:1px solid #cad7e5;
  border-radius:4px;
  padding:0 14px;
  font-family:inherit;
  font-size:14px;
  color:#092650;
  background:#ffffff;
  outline:none;
  transition:.2s ease;
}

.login-field input:focus{
  border-color:#1f7ed0;
  box-shadow:0 0 0 3px rgba(31,126,208,.12);
}

.login-options{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin:8px 0 22px;
  font-size:13px;
}

.login-options label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#55697e;
  cursor:pointer;
}

.login-options input{
  accent-color:#19a83a;
}

.login-options a,
.login-help a,
.login-footer-mini a{
  color:#0b5cab;
  font-weight:800;
  text-decoration:none;
}

.login-options a:hover,
.login-help a:hover,
.login-footer-mini a:hover{
  text-decoration:underline;
}

.login-main-button,
.login-secondary-button{
  width:100%;
  height:50px;
  border-radius:4px;
  font-family:inherit;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  transition:.22s ease;
}

.login-main-button{
  border:0;
  color:#ffffff;
  background:#0b5cab;
  box-shadow:0 14px 26px rgba(11,92,171,.22);
}

.login-main-button:hover{
  background:#084986;
  transform:translateY(-2px);
}

.login-divider{
  position:relative;
  text-align:center;
  margin:24px 0;
  color:#8392a3;
  font-size:13px;
}

.login-divider::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:#d9e2ec;
}

.login-divider span{
  position:relative;
  display:inline-block;
  padding:0 14px;
  background:#ffffff;
}

.login-secondary-button{
  color:#092650;
  background:#ffffff;
  border:1px solid #cad7e5;
}

.login-secondary-button:hover{
  border-color:#0b5cab;
  background:#f5f9fd;
}

.login-help{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid #e1e8f0;
  text-align:center;
}

.login-help p{
  color:#55697e;
  font-size:13px;
  margin-bottom:6px;
}

.login-footer-mini{
  width:min(430px,100%);
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-top:22px;
  color:#6a7d91;
  font-size:13px;
}

@media(max-width:980px){
  .login-canvas-wrapper{
    grid-template-columns:1fr;
  }

  .login-brand-panel{
    min-height:420px;
  }

  .login-brand-copy{
    margin-top:52px;
  }
}

@media(max-width:560px){
  .login-brand-panel,
  .login-access-panel{
    padding:32px 20px;
  }

  .login-form-card{
    padding:28px 22px;
  }

  .login-logo-link{
    width:260px;
  }

  .login-options,
  .login-footer-mini{
    flex-direction:column;
    align-items:flex-start;
  }
}


/* Login funcional con clientes */
.login-field select{
  width:100%;
  height:48px;
  border:1px solid #cad7e5;
  border-radius:4px;
  padding:0 14px;
  font-family:inherit;
  font-size:14px;
  color:#092650;
  background:#ffffff;
  outline:none;
  transition:.2s ease;
}

.login-field select:focus{
  border-color:#1f7ed0;
  box-shadow:0 0 0 3px rgba(31,126,208,.12);
}

.login-alert{
  display:none;
  margin-bottom:18px;
  padding:13px 14px;
  border-radius:6px;
  font-size:13px;
  line-height:1.45;
  font-weight:700;
}

.login-alert.error{
  display:block;
  color:#8c1f1f;
  background:#fff0f0;
  border:1px solid #ffc7c7;
}

.login-alert.success{
  display:block;
  color:#0b6f2e;
  background:#edfff2;
  border:1px solid #b8efc8;
}

.login-main-button:disabled{
  opacity:.65;
  cursor:not-allowed;
}


/* Dashboard temporal cliente */
.dashboard-cliente{
  min-height:100vh;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#031936,#062b57);
  font-family:'Montserrat',system-ui,sans-serif;
}

.dashboard-placeholder{
  width:min(620px,90%);
  padding:42px;
  border-radius:24px;
  background:#ffffff;
  text-align:center;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
}

.dashboard-placeholder img{
  width:320px;
  max-width:100%;
  margin-bottom:22px;
}

.dashboard-placeholder h1{
  color:#092650;
  margin-bottom:10px;
}

.dashboard-placeholder p{
  color:#40546b;
  margin-bottom:22px;
}

.dashboard-placeholder a{
  color:#0b5cab;
  font-weight:900;
  text-decoration:none;
}


/* ==========================================================
   DASHBOARD CLIENTE ECOFINTECH
   ========================================================== */

.client-dashboard-page{
  min-height:100vh;
  background:#f4f7fb;
  color:#092650;
  font-family:'Montserrat',system-ui,sans-serif;
  display:flex;
  flex-direction:column;
}

.client-topbar{
  height:96px;
  padding:0 34px;
  background:#ffffff;
  border-bottom:1px solid rgba(6,43,87,.10);
  box-shadow:0 8px 26px rgba(6,43,87,.07);
  display:flex;
  align-items:center;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:50;
}

.client-brand img{
  width:300px;
  max-height:72px;
  object-fit:contain;
}

.client-user-menu{
  position:relative;
}

.client-user-button{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px 12px;
  border:1px solid rgba(6,43,87,.12);
  background:#ffffff;
  border-radius:999px;
  cursor:pointer;
  font-family:inherit;
  color:#092650;
  box-shadow:0 10px 26px rgba(6,43,87,.08);
}

.client-company-logo{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#ffffff;
  background:linear-gradient(135deg,#0b5cab,#19a83a);
  font-weight:900;
}

.client-user-name{
  font-weight:800;
  max-width:260px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.client-user-dropdown{
  display:none;
  position:absolute;
  top:62px;
  right:0;
  width:270px;
  padding:16px;
  border-radius:16px;
  background:#ffffff;
  border:1px solid rgba(6,43,87,.10);
  box-shadow:0 20px 60px rgba(6,43,87,.16);
}

.client-user-dropdown.show{
  display:block;
}

.client-user-dropdown strong,
.client-user-dropdown small,
.client-user-dropdown a{
  display:block;
}

.client-user-dropdown strong{
  color:#092650;
  margin-bottom:4px;
}

.client-user-dropdown small{
  color:#60758b;
  margin-bottom:14px;
  word-break:break-all;
}

.client-user-dropdown a{
  padding:10px 0;
  color:#0b5cab;
  font-weight:800;
  text-decoration:none;
  border-top:1px solid #edf2f7;
}

.client-user-dropdown .logout-link{
  color:#b72a2a;
}

.client-dashboard-shell{
  flex:1;
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:calc(100vh - 146px);
}

.client-sidebar{
  background:#062b57;
  padding:24px 18px;
  display:grid;
  align-content:start;
  gap:14px;
}

.side-link{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
  padding:16px 14px;
  border:0;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  color:#dceaf6;
  font-family:inherit;
  text-align:left;
  cursor:pointer;
  transition:.22s ease;
}

.side-link:hover,
.side-link.active{
  background:#ffffff;
  color:#062b57;
  transform:translateX(4px);
}

.side-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(255,255,255,.14);
  font-size:22px;
}

.side-link.active .side-icon{
  background:rgba(25,168,58,.12);
}

.client-main{
  padding:34px;
}

.dashboard-section{
  display:none;
}

.dashboard-section.active{
  display:block;
}

.client-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px;
}

.client-section-head span{
  color:#19a83a;
  text-transform:uppercase;
  font-size:13px;
  font-weight:900;
  letter-spacing:1.5px;
}

.client-section-head h1{
  color:#092650;
  font-size:38px;
  margin:8px 0;
}

.client-section-head p{
  color:#40546b;
}

.client-section-head button{
  border:0;
  border-radius:10px;
  padding:14px 18px;
  color:#ffffff;
  background:#0b5cab;
  font-family:inherit;
  font-weight:900;
  cursor:pointer;
}

.dashboard-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  margin-bottom:24px;
}

.client-kpi-card{
  background:#ffffff;
  border:1px solid rgba(6,43,87,.10);
  border-radius:18px;
  padding:24px;
  box-shadow:0 14px 38px rgba(6,43,87,.08);
}

.client-kpi-card small{
  display:block;
  color:#40546b;
  font-weight:800;
  margin-bottom:10px;
}

.client-kpi-card strong{
  display:block;
  color:#092650;
  font-size:30px;
  font-weight:900;
}

.client-kpi-card em{
  display:inline-block;
  margin-top:8px;
  color:#19a83a;
  font-style:normal;
  font-weight:900;
}

.dashboard-charts{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:22px;
}

.chart-box{
  background:#ffffff;
  border:1px solid rgba(6,43,87,.10);
  border-radius:20px;
  padding:24px;
  box-shadow:0 14px 38px rgba(6,43,87,.08);
}

.chart-title{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.chart-title h3{
  color:#092650;
}

.chart-title small{
  color:#60758b;
  font-weight:800;
}

.chart-box canvas{
  width:100%;
  max-width:100%;
}

.placeholder-panel{
  min-height:520px;
  display:grid;
  place-items:center;
  text-align:center;
  background:#ffffff;
  border:1px solid rgba(6,43,87,.10);
  border-radius:24px;
  padding:45px;
  box-shadow:0 14px 38px rgba(6,43,87,.08);
}

.placeholder-panel span{
  font-size:70px;
  margin-bottom:20px;
}

.placeholder-panel h2{
  color:#092650;
  font-size:34px;
  margin-bottom:14px;
}

.placeholder-panel p{
  max-width:620px;
  color:#40546b;
  line-height:1.7;
}

.client-footer{
  height:50px;
  padding:0 34px;
  background:#031936;
  color:#dceaf6;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:13px;
}

.client-footer strong{
  color:#ffffff;
}

@media(max-width:1180px){
  .client-dashboard-shell{
    grid-template-columns:1fr;
  }

  .client-sidebar{
    grid-template-columns:repeat(4,1fr);
    display:grid;
  }

  .dashboard-kpis{
    grid-template-columns:repeat(2,1fr);
  }

  .dashboard-charts{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .client-topbar{
    height:auto;
    padding:18px;
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }

  .client-brand img{
    width:240px;
  }

  .client-dashboard-shell{
    min-height:auto;
  }

  .client-sidebar{
    grid-template-columns:1fr;
  }

  .dashboard-kpis{
    grid-template-columns:1fr;
  }

  .client-main{
    padding:22px;
  }

  .client-section-head{
    flex-direction:column;
    align-items:flex-start;
  }

  .client-footer{
    height:auto;
    padding:16px;
    flex-direction:column;
    gap:8px;
    text-align:center;
  }
}

.discount-dashboard-grid{display:grid;grid-template-columns:minmax(430px,.95fr) minmax(560px,1.55fr);gap:22px}
.discount-table-card{background:#fff;border:1px solid rgba(6,43,87,.10);border-radius:20px;padding:24px;box-shadow:0 14px 38px rgba(6,43,87,.08)}
.discount-table-wrap{overflow:auto}.discount-table{width:100%;border-collapse:collapse;font-size:13px}.discount-table th{background:#062b57;color:#fff;text-align:left;padding:13px 12px;white-space:nowrap}.discount-table td{padding:13px 12px;border-bottom:1px solid #e4edf5;color:#092650;font-weight:700;white-space:nowrap}.discount-table tr:hover td{background:#f4f8fb}.difference-alert{color:#c98200!important;font-weight:900!important}.difference-ok{color:#19a83a!important;font-weight:900!important}.empty-row{text-align:center;color:#60758b!important;padding:28px!important}.discount-chart-card canvas{min-height:360px}@media(max-width:1320px){.discount-dashboard-grid{grid-template-columns:1fr}}


/* Mejoras gráfico descuentos: título centrado y tooltip */
.discount-chart-card .chart-title{
  margin-bottom:8px;
}

.discount-chart-card .chart-title h3{
  display:none;
}

.chart-tooltip{
  position:fixed;
  z-index:9999;
  display:none;
  min-width:150px;
  padding:12px 14px;
  border-radius:12px;
  color:#ffffff;
  background:rgba(3,25,59,.96);
  box-shadow:0 18px 42px rgba(0,0,0,.28);
  pointer-events:none;
  font-family:'Montserrat',system-ui,sans-serif;
  border:1px solid rgba(255,255,255,.14);
}

.chart-tooltip.show{
  display:block;
}

.chart-tooltip strong{
  display:block;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.7px;
  color:#19ff4f;
  margin-bottom:4px;
}

.chart-tooltip span{
  display:block;
  color:#dceaf6;
  font-size:12px;
  margin-bottom:6px;
}

.chart-tooltip b{
  display:block;
  font-size:16px;
}


/* Filtro Año a Visualizar */
.year-filter{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

.year-filter label{
  color:#062b57;
  font-size:12px;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
}

.year-filter select{
  min-width:150px;
  height:42px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid #cad7e5;
  background:#ffffff;
  color:#092650;
  font-family:'Montserrat',system-ui,sans-serif;
  font-weight:800;
  outline:none;
  box-shadow:0 8px 22px rgba(6,43,87,.08);
}

.year-filter select:focus{
  border-color:#0b5cab;
  box-shadow:0 0 0 3px rgba(11,92,171,.12);
}

.chart-title-clean{
  display:none !important;
}


/* ==========================================================
   ECOFINTECH V13 - Dashboard profesional
   ========================================================== */

.kpi-v13{
  display:flex;
  align-items:center;
  gap:16px;
}

.kpi-v13 .kpi-icon{
  width:52px;
  height:52px;
  flex:0 0 52px;
  display:grid;
  place-items:center;
  border-radius:16px;
  font-size:24px;
  background:linear-gradient(135deg, rgba(11,92,171,.12), rgba(25,168,58,.10));
  border:1px solid rgba(6,43,87,.08);
}

.tooltip-v13{
  min-width:230px;
}

.tooltip-v13 strong{
  font-size:13px;
  color:#19ff4f;
}

.tooltip-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:6px 0;
  border-top:1px solid rgba(255,255,255,.10);
}

.tooltip-row span{
  margin:0;
  color:#dceaf6;
  font-size:12px;
  font-weight:800;
}

.tooltip-row b{
  color:#ffffff;
  font-size:13px;
  white-space:nowrap;
}

.dashboard-loader{
  position:fixed;
  inset:96px 0 50px 280px;
  z-index:40;
  display:none;
  place-items:center;
  background:rgba(244,247,251,.68);
  backdrop-filter:blur(3px);
}

.dashboard-loader.show{
  display:grid;
}

.dashboard-loader > div{
  width:58px;
  height:58px;
  border-radius:50%;
  border:5px solid rgba(11,92,171,.18);
  border-top-color:#0b5cab;
  animation:spinLoader .8s linear infinite;
}

.dashboard-loader span{
  margin-top:86px;
  position:absolute;
  color:#092650;
  font-weight:900;
}

@keyframes spinLoader{
  to{transform:rotate(360deg);}
}

.discount-table th:last-child{
  color:#ffe9a8;
}

@media(max-width:1180px){
  .dashboard-loader{
    inset:170px 0 50px 0;
  }
}
