:root{
  --bg: #0b1220;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.70);
  --muted2: rgba(255,255,255,.56);
  --line: rgba(255,255,255,.12);
  --brand: #7c5cff;
  --brand2:#35d7ff;
  --ok:#2ce6a6;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}


*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 15% 5%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(53,215,255,.22), transparent 55%),
    radial-gradient(900px 500px at 60% 100%, rgba(44,230,166,.12), transparent 60%),
    var(--bg);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button, input, select{font:inherit}

.wrap{
  max-width: var(--max);
  margin:0 auto;
  padding:0 20px;
}

.topbar{
  position: sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(11,18,32,.55);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand-logo{
  height: 52px;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 14px 40px rgba(124,92,255,.18);
}

.brand-logo img{
  max-width: 150px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.brand-name{
  font-size:14px;
  color:rgba(255,255,255,.86);
  font-weight:800;
  letter-spacing:.2px;
}

.brand-sub{
  font-size:12px;
  color:rgba(255,255,255,.55);
  font-weight:600;
}

.nav{
  display:flex;
  gap:18px;
  align-items:center;
}

.nav a{
  color: var(--muted);
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: .2s ease;
}

.nav a:hover,
.nav a.active{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.cta{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  font-size:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: var(--text);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor:pointer;
  white-space:nowrap;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.22);
}

.btn-primary{
  border: 1px solid rgba(124,92,255,.55);
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(53,215,255,.55));
  box-shadow: 0 20px 50px rgba(124,92,255,.22);
}

.hero{
  padding: 76px 0 34px;
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap:24px;
  align-items:center;
}

.kicker{
  display:inline-flex;
  gap:10px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size:13px;
  margin-bottom:16px;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 4px rgba(124,92,255,.15);
}

h1{
  margin:0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.6px;
}

.lead{
  margin-top:14px;
  color: var(--muted);
  font-size:16px;
  line-height:1.75;
  max-width: 62ch;
}

.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:20px;
}

section{
  padding: 24px 0;
}

.section-head{
  margin-bottom:18px;
}

.section-title{
  margin:0;
  font-size: 24px;
  font-weight: 950;
  letter-spacing:-.3px;
}

.section-sub{
  margin-top:8px;
  color: var(--muted);
  line-height:1.75;
  max-width: 72ch;
}

.card,
.glass-card{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  overflow:hidden;
}

footer{
  padding: 18px 0 40px;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  align-items:center;
  color: var(--muted2);
  font-size:13px;
}

/* PRECIOS */
.pricing-hero{
  padding: 76px 0 20px;
  text-align:center;
}

.pricing-hero .lead{
  margin-left:auto;
  margin-right:auto;
}

.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top: 28px;
}

.price-card{
  position:relative;
  padding:22px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}

.price-card.featured{
  border-color: rgba(124,92,255,.40);
  box-shadow: 0 24px 70px rgba(124,92,255,.20);
}

.badge{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background: rgba(124,92,255,.16);
  border:1px solid rgba(124,92,255,.34);
  color: rgba(255,255,255,.92);
  font-size:12px;
  font-weight:800;
  margin-bottom:14px;
}

.plan-name{
  font-size:24px;
  font-weight:950;
  letter-spacing:-.4px;
}

.plan-limit{
  margin-top:8px;
  color: var(--muted);
  font-size:14px;
  line-height:1.6;
  min-height: 44px;
}

.price-block{
  margin-top:18px;
  padding:16px;
  border-radius:18px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

.price-row{
  display:flex;
  align-items:flex-end;
  gap:8px;
}

.price-value{
  font-size:42px;
  line-height:1;
  font-weight:950;
  letter-spacing:-1px;
}

.price-suffix{
  color: var(--muted);
  font-size:14px;
  padding-bottom:6px;
}

.annual-line{
  margin-top:12px;
  color: var(--muted);
  font-size:14px;
  line-height:1.6;
}

.saving-line{
  margin-top:10px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(44,230,166,.12);
  border:1px solid rgba(44,230,166,.28);
  color: var(--ok);
  font-size:13px;
  font-weight:800;
}

.extra-line{
  margin-top:12px;
  color: var(--muted2);
  font-size:13px;
  line-height:1.5;
}

.price-note{
  margin-top:8px;
  color: var(--muted2);
  font-size:13px;
}

.feature-list{
  list-style:none;
  padding:0;
  margin:20px 0 0;
  display:flex;
  flex-direction:column;
  gap:11px;
}

.feature-list li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color: var(--muted);
  line-height:1.6;
  font-size:14px;
}

.feature-check{
  width:18px;
  height:18px;
  border-radius:6px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(44,230,166,.14);
  border:1px solid rgba(44,230,166,.34);
  color: var(--ok);
  font-size:12px;
  margin-top:2px;
}

.card-actions{
  margin-top:22px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.pricing-foot{
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size:14px;
  line-height:1.7;
}

.loading-state,
.empty-state,
.error-state{
  text-align:center;
  padding:26px 18px;
  color: var(--muted);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
}

@media (max-width: 980px){
  .hero-grid,
  .pricing-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px){
  .topbar-inner{
    flex-wrap:wrap;
  }

  .nav{
    order:3;
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
  }

  .cta{
    margin-left:auto;
  }
}

@media (max-width: 520px){
  .cta{
    width:100%;
    justify-content:flex-end;
    flex-wrap:wrap;
  }

  .hero-actions .btn,
  .card-actions .btn{
    width:100%;
  }

  .brand-logo{
    width:46px;
    height:46px;
  }

  .price-value{
    font-size:36px;
  }

  .saving-line{
    display:flex;
    width:100%;
    justify-content:center;
    text-align:center;
  }
}

.sim{
  position:relative;
}

.sim:before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(520px 220px at 20% 0%, rgba(124,92,255,.18), transparent 55%),
    radial-gradient(520px 220px at 90% 30%, rgba(53,215,255,.14), transparent 50%);
  pointer-events:none;
}

.sim > *{
  position:relative;
}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  margin-top:14px;
}

.pill{
  padding:12px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.11);
}

.pill .small{
  color: var(--muted2);
  font-size:12px;
}

.pill .big{
  font-weight:900;
  font-size:18px;
  margin-top:4px;
}

.range-wrap{
  margin-top:16px;
  padding:14px;
  border-radius:18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
}

.range-top{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
}

.range-top .label{
  font-weight:900;
  font-size:14px;
}

.range-top .value{
  font-weight:900;
  font-size:18px;
  color: rgba(255,255,255,.95);
}

input[type="range"]{
  width:100%;
  margin:14px 0 10px;
  -webkit-appearance:none;
  appearance:none;
  height:10px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(124,92,255,.95), rgba(53,215,255,.7));
  outline:none;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
}

input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none;
  width:26px;
  height:26px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(124,92,255,.25);
  cursor:pointer;
}

input[type="range"]::-moz-range-thumb{
  width:26px;
  height:26px;
  border-radius:999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  cursor:pointer;
}

.range-foot{
  display:flex;
  justify-content:space-between;
  color: var(--muted2);
  font-size:12px;
  margin-top:4px;
}

.summary{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
  border-radius:18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.line{
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
  color: var(--muted);
}

.line b{
  color: var(--text);
}

.total{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:6px;
  border-top: 1px dashed rgba(255,255,255,.16);
  font-size:16px;
  font-weight:900;
}

.hint{
  color: var(--muted2);
  font-size:12px;
  line-height:1.5;
}

.sim-plans-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:14px;
}

.sim-plan-card{
  padding:14px;
  border-radius:16px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  transition: .2s ease;
}

.sim-plan-card.best{
  background: rgba(124,92,255,.12);
  border-color: rgba(124,92,255,.38);
  box-shadow: 0 18px 40px rgba(124,92,255,.16);
}

.sim-plan-card.invalid{
  opacity:.72;
}

.sim-plan-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.sim-plan-name{
  font-size:15px;
  font-weight:900;
  color: var(--text);
}

.sim-plan-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  color: var(--text);
  background: rgba(44,230,166,.14);
  border:1px solid rgba(44,230,166,.32);
  white-space:nowrap;
}

.sim-plan-price{
  margin-top:12px;
  font-size:24px;
  font-weight:950;
  letter-spacing:-.5px;
  color: var(--text);
}

.sim-plan-sub{
  margin-top:6px;
  color: var(--muted);
  font-size:13px;
  line-height:1.55;
}

.sim-plan-extra{
  margin-top:10px;
  color: var(--muted2);
  font-size:12px;
  line-height:1.5;
}

.sim-plan-invalid{
  margin-top:12px;
  font-size:15px;
  font-weight:800;
  color: var(--muted);
}

@media (max-width: 980px){
  .sim-plans-grid{
    grid-template-columns: 1fr;
  }
}

.sim-toolbar{
  display:grid;
  grid-template-columns: 200px 1fr;
  gap:14px;
  align-items:stretch;
  margin-top:16px;
}

.compact-pill{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:88px;
}

.compact-range{
  margin-top:0;
  min-height:88px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 16px;
}

.compact-range-top{
  align-items:center;
}

.employees-stepper{
  display:flex;
  align-items:center;
  gap:10px;
}

.step-btn{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  font-size:22px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:.15s ease;
}

.step-btn:hover{
  background: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.step-btn:active{
  transform: translateY(0);
}

.employees-count{
  min-width:58px;
  height:38px;
  padding:0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  font-weight:900;
  color: var(--text);
}

@media (max-width: 980px){
  .sim-toolbar{
    grid-template-columns: 1fr;
    padding:16px;
  }
}

.employees-input{
  width:90px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--text);
  text-align:center;
  font-size:18px;
  font-weight:900;
  outline:none;
  transition:.15s ease;
  width:100%;
}

.employees-input:focus{
  border-color: rgba(124,92,255,.7);
  box-shadow: 0 0 0 2px rgba(124,92,255,.25);
}

.employees-stepper{
    width:100%;
    justify-content:space-between;
  }

  /* Quitar flechas en Chrome, Safari, Edge */
.employees-input::-webkit-outer-spin-button,
.employees-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Quitar flechas en Firefox */
.employees-input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.sim-plan-actions{
  margin-top:12px;
  display:flex;
}

.btn-details{
  width:100%;
}

/* MODAL */
.modal-backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.62);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:1000;
}

.modal-backdrop.show{
  display:flex;
}

.modal{
  width:min(720px, 100%);
  border-radius: var(--radius2);
  background: rgba(16,24,40,.96);
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  overflow:hidden;
}

.modal-head{
  padding:16px 18px;
  border-bottom:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.modal-head b{
  font-size:16px;
}

.modal-body{
  padding:18px;
}

.modal-close{
  border:none;
  background: rgba(255,255,255,.08);
  color: var(--text);
  width:38px;
  height:38px;
  border-radius:12px;
  cursor:pointer;
  border:1px solid rgba(255,255,255,.12);
  font-size:16px;
}

.modal-close:hover{
  background: rgba(255,255,255,.12);
}

.modal-plan-content{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.modal-plan-text{
  color: var(--muted);
  line-height:1.7;
  font-size:14px;
}

.modal-plan-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.modal-plan-list li{
  display:flex;
  gap:10px;
  align-items:flex-start;
  color: var(--muted);
  line-height:1.65;
  font-size:14px;
}

.modal-plan-check{
  width:18px;
  height:18px;
  border-radius:6px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(44,230,166,.14);
  border:1px solid rgba(44,230,166,.34);
  color: var(--ok);
  font-size:12px;
  margin-top:2px;
}

.modal-plan-note{
  padding:14px;
  border-radius:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color: var(--muted2);
  font-size:13px;
  line-height:1.6;
}

.trial-layout{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap:16px;
}

.trial-info-card,
.trial-form-card{
  padding:24px;
}

.trial-form{
  display:block;
}

.trial-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-group label{
  font-size:14px;
  color: var(--muted);
  font-weight:700;
}

.form-group input{
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
  transition:.15s ease;
}

.form-group input:focus{
  border-color: rgba(124,92,255,.6);
  box-shadow: 0 0 0 2px rgba(124,92,255,.18);
}

.trial-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:18px;
  color: var(--muted);
  line-height:1.6;
  font-size:14px;
}

.trial-check input{
  margin-top:3px;
  width:18px;
  height:18px;
}

.trial-message{
  margin-top:16px;
  min-height:24px;
  font-size:14px;
  font-weight:700;
}

.trial-message.success{
  color: var(--ok);
}

.trial-message.error{
  color: #ff8c8c;
}

@media (max-width: 980px){
  .trial-layout{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .trial-grid{
    grid-template-columns: 1fr;
  }
}

/* LOGIN */
.login-box-hidden{
  display:none;
  margin-top:30px;
}

.login-box-visible{
  display:block;
  margin-top:30px;
}

.login-card{
  background: rgba(255,255,255,.05);
  padding:30px;
  border-radius:12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.18);
  max-width:400px;
  margin:50px auto;
  text-align:center;
  border:1px solid rgba(255,255,255,.10);
}

.login-card h2{
  margin-bottom:20px;
  color: var(--text);
}

.login-card input{
  width:100%;
  padding:12px;
  margin:10px 0;
  border:1px solid rgba(255,255,255,.14);
  border-radius:6px;
  font-size:1rem;
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline:none;
}

.login-card input:focus{
  border-color: rgba(124,92,255,.6);
  box-shadow: 0 0 0 2px rgba(124,92,255,.18);
}

.login-card button,
.btn-login-main{
  cursor:pointer;
  border:none;
  border-radius:6px;
  font-weight:bold;
  transition:opacity 0.2s;
}

.login-card button:active,
.btn-login-main:active{
  opacity:0.7;
}

.btn-login-main{
  background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(53,215,255,.55));
  color:white;
  padding:12px 20px;
  width:100%;
}

.m2k-login-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 2000;
}

.m2k-login-backdrop.show{
  display: flex;
}

.m2k-login-modal{
  width: min(420px, 100%);
  background: rgba(16,24,40,.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  padding: 20px;
}

.m2k-login-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.m2k-login-close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: var(--text);
  cursor: pointer;
}

.m2k-login-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.m2k-login-form input{
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  outline: none;
}

.m2k-login-msg{
  min-height: 20px;
  font-size: 14px;
}