:root{
  --bg-1:#020617;
  --bg-2:#071226;
  --card:rgba(7,18,38,.58);
  --line:rgba(97,218,251,.16);
  --line-2:rgba(99,102,241,.18);
  --text:#e8f3ff;
  --muted:#9fb7d1;
  --cyan:#39c7ff;
  --blue:#4f8cff;
  --violet:#8b5cf6;
  --green:#1ec98f;
  --shadow:0 18px 60px rgba(0,0,0,.42);
  --radius:22px;
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  margin:0;
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:
    radial-gradient(1200px 600px at 15% 0%, rgba(57,199,255,.16), transparent 55%),
    radial-gradient(900px 500px at 85% 10%, rgba(139,92,246,.18), transparent 50%),
    linear-gradient(180deg,#06182d 0%,#020617 45%,#04101f 100%);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}

.bg-grid,
.bg-glow,
.particles{
  position:fixed;
  inset:0;
  pointer-events:none;
}

.bg-grid{
  background-image:
    linear-gradient(rgba(80,120,180,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80,120,180,.07) 1px, transparent 1px);
  background-size:36px 36px;
  mask-image:radial-gradient(circle at center, black 45%, transparent 95%);
  opacity:.38;
}

.bg-glow:before,
.bg-glow:after{
  content:"";
  position:absolute;
  border-radius:999px;
  filter:blur(80px);
  opacity:.18;
}

.bg-glow:before{
  width:340px;
  height:340px;
  left:6%;
  top:12%;
  background:#00d2ff;
  animation:floatA 12s ease-in-out infinite;
}

.bg-glow:after{
  width:320px;
  height:320px;
  right:8%;
  top:18%;
  background:#8b5cf6;
  animation:floatB 14s ease-in-out infinite;
}

@keyframes floatA{
  0%,100%{transform:translate(0,0)}
  50%{transform:translate(20px,24px)}
}

@keyframes floatB{
  0%,100%{transform:translate(0,0)}
  50%{transform:translate(-18px,20px)}
}

.particles span{
  position:absolute;
  border-radius:50%;
  animation:rise linear infinite;
  background:radial-gradient(circle at 35% 35%, rgba(255,255,255,.92), rgba(155,240,255,.42) 35%, rgba(0,180,255,.18) 62%, rgba(0,180,255,0) 78%);
  box-shadow:
    0 0 14px rgba(80,220,255,.50),
    0 0 32px rgba(80,220,255,.26),
    inset 0 0 10px rgba(255,255,255,.22);
}

.particles span::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius:50%;
  border:1px solid rgba(160,235,255,.28);
  opacity:.85;
}

.particles span:nth-child(1){left:8%;top:90%;width:18px;height:18px;animation-duration:16s;animation-delay:-2s}
.particles span:nth-child(2){left:18%;top:95%;width:34px;height:34px;animation-duration:18s;animation-delay:-7s}
.particles span:nth-child(3){left:28%;top:88%;width:14px;height:14px;animation-duration:15s;animation-delay:-5s}
.particles span:nth-child(4){left:42%;top:92%;width:42px;height:42px;animation-duration:20s;animation-delay:-10s}
.particles span:nth-child(5){left:58%;top:96%;width:20px;height:20px;animation-duration:17s;animation-delay:-4s}
.particles span:nth-child(6){left:69%;top:91%;width:28px;height:28px;animation-duration:14s;animation-delay:-9s}
.particles span:nth-child(7){left:81%;top:94%;width:12px;height:12px;animation-duration:19s;animation-delay:-3s}
.particles span:nth-child(8){left:91%;top:89%;width:48px;height:48px;animation-duration:16s;animation-delay:-12s}

@keyframes rise{
  0%{transform:translateY(0) scale(.92);opacity:0}
  10%{opacity:.96}
  100%{transform:translateY(-115vh) scale(1.24);opacity:0}
}

.container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.topbar{
  padding:24px 0 0;
  position:relative;
  z-index:2;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.brand-wrap{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.brand-logo{
  width:54px;
  height:54px;
  border-radius:16px;
  object-fit:contain;
  background:rgba(6,24,40,.55);
  border:1px solid rgba(93,218,255,.16);
  padding:8px;
  box-shadow:
    0 0 0 1px rgba(93,218,255,.08) inset,
    0 0 28px rgba(57,199,255,.22),
    0 10px 40px rgba(0,0,0,.35);
}

.brand-copy strong{
  display:block;
  font-size:clamp(20px,2.4vw,30px);
  line-height:1.05;
  font-weight:800;
  letter-spacing:-.03em;
  color:#dff5ff;
}

.brand-copy small{
  display:block;
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
}

.nav-pill{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.nav-pill a{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(7,18,38,.55);
  border:1px solid rgba(148,163,184,.16);
}

.main-content{
  position:relative;
  z-index:2;
  padding-bottom:30px;
}

.page-head,
.section-head,
.row-between,
.actions-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.page-head{
  margin:26px 0;
}

.page-head h1,
.section-head h2,
.card h1{
  margin:0 0 8px;
}

.muted{color:var(--muted)}

.card,
.login-panel,
.section-card{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(10,26,48,.56), rgba(4,15,30,.40));
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-radius:28px;
  padding:24px;
  box-shadow:var(--shadow);
}

.card.narrow{max-width:520px}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:16px;
  margin-bottom:18px;
}

.stat-card{
  border:1px solid var(--line);
  background:rgba(4,15,30,.45);
  border-radius:20px;
  padding:18px;
}

.stat-card strong{
  display:block;
  font-size:32px;
  margin-bottom:4px;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,
.table td{
  padding:12px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  font-size:14px;
}

.stack{
  display:grid;
  gap:14px;
}

label{
  display:grid;
  gap:8px;
  font-weight:700;
  font-size:14px;
}

input,
select,
textarea{
  width:100%;
  height:52px;
  border-radius:16px;
  border:1px solid rgba(104,131,173,.22);
  background:rgba(2,11,26,.78);
  color:#eef8ff;
  padding:0 14px;
  outline:none;
}

textarea{
  height:auto;
  padding:14px;
  min-height:120px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:52px;
  padding:0 18px;
  border:0;
  border-radius:16px;
  background:rgba(7,18,38,.62);
  color:#fff;
  font-weight:800;
  cursor:pointer;
}

.btn-primary{
  background:linear-gradient(90deg,#28c8ff 0%,#5898ff 50%,#8b5cf6 100%);
  color:#06111f;
}

.alert{
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(57,199,255,.10);
  border:1px solid rgba(57,199,255,.24);
}

.alert-error{
  background:rgba(239,68,68,.10)!important;
  border-color:rgba(239,68,68,.25)!important;
  color:#ffd2d2;
}

.alert-success{
  background:rgba(30,201,143,.10)!important;
  border-color:rgba(30,201,143,.24)!important;
  color:#d7ffef;
}

.login-page-grid,
.builder-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:26px;
  align-items:stretch;
  margin:28px 0 24px;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(7,18,38,.72);
  border:1px solid rgba(57,199,255,.14);
  color:#b6edff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.eyebrow-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:linear-gradient(180deg,#22d3ee,#8b5cf6);
  box-shadow:0 0 18px rgba(34,211,238,.8);
}

.login-title-hero{
  margin:18px 0 12px;
  font-size:clamp(46px,6vw,82px);
  line-height:.95;
  letter-spacing:-.05em;
}

.feature-grid-boxed{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:28px;
}

.feature-box{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border-radius:18px;
  background:rgba(4,15,30,.38);
  border:1px solid rgba(57,199,255,.09);
}

.feature-icon-box{
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(180deg, rgba(57,199,255,.20), rgba(139,92,246,.20));
  display:grid;
  place-items:center;
  font-size:18px;
  line-height:1;
  font-weight:900;
  color:#eef8ff;
  box-shadow:inset 0 0 0 1px rgba(57,199,255,.12);
}

.feature-box strong{
  display:block;
  margin-bottom:6px;
}

.feature-box small{
  display:block;
  color:#a9bfd7;
  line-height:1.45;
  font-size:13px;
}

.login-card-side{
  display:flex;
  align-items:center;
  justify-content:center;
}

.old-login-card{
  width:100%;
  max-width:460px;
}

.compact-head{
  margin-bottom:12px;
}

.pill-info{
  padding:8px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  color:#d7fbff;
  background:rgba(30,201,143,.10);
  border:1px solid rgba(30,201,143,.22);
}

#qr-preview{
  display:flex;
  justify-content:center;
  min-height:300px;
  align-items:center;
  margin:20px 0;
}

.preview-target{
  font-size:13px;
  color:var(--muted);
  margin-bottom:14px;
}

.download-grid,
.quick-links,
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.sticky-preview{
  position:sticky;
  top:20px;
}

/* whatsapp sin contorno, mas grande */
.floating-wa{
  position:fixed;
  right:20px;
  bottom:90px;
  width:auto;
  height:auto;
  border-radius:0;
  background:transparent;
  border:0;
  display:block;
  box-shadow:none;
  z-index:30;
}

.floating-wa img{
  width:56px;
  height:56px;
  object-fit:contain;
  filter:drop-shadow(0 0 10px rgba(37,211,102,.35));
}

/* footer logo mas grande */
#dm-premium-footer{
  width:100%;
  background:rgba(10,15,30,.75);
  backdrop-filter:blur(14px);
  border-top:1px solid rgba(0,195,255,.35);
  padding:32px 20px;
  margin-top:40px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.dm-footer-content{
  max-width:900px;
  width:100%;
  text-align:center;
  color:#dceaff;
  font-family:Inter,sans-serif;
}

.dm-footer-logo img{
  width:150px;
  height:auto;
  margin:0 auto 14px;
  filter:drop-shadow(0 0 10px rgba(0,200,255,.55));
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  padding:0!important;
}

.dm-footer-text{
  font-size:15px;
  opacity:.85;
  margin:6px 0;
}

.dm-footer-links a{
  color:#7dd8ff;
  text-decoration:none;
  margin:0 6px;
  font-size:14px;
  transition:.25s;
}

.dm-footer-links a:hover{
  color:#fff;
  text-shadow:0 0 6px #4dd0ff;
}

/* checkbox pequeno y limpio */
.remember-check{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0;
  font-weight:600;
  font-size:13px;
  color:#dceaff;
}

.remember-check input[type="checkbox"]{
  appearance:auto;
  -webkit-appearance:checkbox;
  width:16px;
  height:16px;
  min-width:16px;
  min-height:16px;
  margin:0;
  padding:0;
  accent-color:#6bbcff;
  border-radius:4px;
  background:transparent;
  box-shadow:none;
  border:0;
}

.login-row-tools{
  align-items:center;
}

.link-inline{
  color:#7dd8ff;
  font-size:13px;
  text-decoration:none;
}

.link-inline:hover{
  color:#ffffff;
  text-shadow:0 0 6px #4dd0ff;
}

@media(max-width:980px){
  .login-page-grid,
  .builder-grid{
    grid-template-columns:1fr;
  }
  .sticky-preview{position:static}
}

@media(max-width:640px){
  .container{width:min(100% - 16px,1180px)}
  .brand-copy small{display:none}
  .feature-grid-boxed,
  .download-grid,
  .quick-links,
  .grid-2{
    grid-template-columns:1fr;
  }
  .floating-wa{
    right:12px;
    bottom:18px;
  }
  .floating-wa img{
    width:48px;
    height:48px;
  }
  .dm-footer-logo img{width:122px}
  .dm-footer-text{font-size:14px}
  .dm-footer-links a{font-size:13px}
  .row-between{
    flex-direction:column;
    align-items:flex-start;
  }
}