:root{
  --bg:#070A12;
  --bg2:#0B1020;
  --text:#EAF0FF;
  --muted:rgba(234,240,255,.72);
  --muted-2:rgba(234,240,255,.56);
  --line:rgba(255,255,255,.10);
  --line-strong:rgba(255,255,255,.16);
  --card:rgba(255,255,255,.055);
  --card2:rgba(255,255,255,.08);
  --glow:rgba(120,170,255,.22);
  --glow-2:rgba(185,167,255,.18);
  --accent:#8AB4FF;
  --accent2:#B9A7FF;
  --ok:rgba(120,255,190,.14);
  --bad:rgba(255,120,140,.16);
  --radius:20px;
  --radius-sm:14px;
  --shadow:0 20px 70px rgba(0,0,0,.50);
  --shadow-soft:0 10px 30px rgba(0,0,0,.22);
  --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(1200px 600px at 10% 10%, rgba(138,180,255,.14), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgba(185,167,255,.12), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

a{
  color:inherit;
  text-decoration:none;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.bg-stars{
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,.55), transparent 55%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,.35), transparent 55%),
    radial-gradient(1px 1px at 70% 30%, rgba(255,255,255,.45), transparent 55%),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,.28), transparent 55%),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,.22), transparent 55%);
  opacity:.45;
  filter: blur(.2px);
}

/* Evita que el header sticky tape los anchors */
:target{
  scroll-margin-top: 96px;
}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(7,10,18,.72);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
}

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

.brand-name{
  font-weight:800;
  font-size:26px;
  letter-spacing:.4px;
  background: linear-gradient(90deg, #FFFFFF, #B9C7FF);
  background-clip:text;
  -webkit-background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}

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

.nav a{
  color:var(--muted);
  font-size:14px;
  transition: color .2s ease, opacity .2s ease, transform .2s ease;
}

.nav a:hover{
  color:var(--text);
}

.nav a:not(.btn){
  position:relative;
}

.nav a:not(.btn)::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:1px;
  background:linear-gradient(90deg, rgba(138,180,255,.0), rgba(138,180,255,.8), rgba(138,180,255,.0));
  transform:scaleX(0);
  transform-origin:center;
  transition:transform .22s ease;
}

.nav a:not(.btn):hover::after{
  transform:scaleX(1);
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(138,180,255,.96), rgba(185,167,255,.88));
  color:#08101f;
  font-weight:700;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:
    0 14px 40px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.24);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.btn:hover{
  transform:translateY(-1px);
  box-shadow:
    0 18px 48px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.24);
  filter:brightness(1.02);
}

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

.btn-sm{
  padding:10px 14px;
  border-radius:13px;
}

.btn-ghost{
  background: rgba(255,255,255,.04);
  color:var(--text);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover{
  background: rgba(255,255,255,.07);
  box-shadow:none;
}

/* Hero */
.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:34px;
  padding:72px 0 40px;
  align-items:center;
}

.hero-left{
  max-width: 680px;
}

h1{
  font-size: clamp(36px, 4.4vw, 54px);
  line-height:1.02;
  margin:0 0 16px;
  letter-spacing:-1.1px;
  font-weight:800;
}

.lead{
  color:var(--muted);
  font-size:17px;
  line-height:1.7;
  margin:0 0 22px;
  max-width: 62ch;
}

.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 10px;
}

.hero-right{
  position:relative;
  min-height:320px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-right::before{
  content:"";
  position:absolute;
  inset: 16% 10% 10% 10%;
  border-radius:32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-soft);
}

.orb{
  position:relative;
  width:290px;
  height:290px;
  border-radius:50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255,255,255,.94), rgba(138,180,255,.26) 28%, rgba(185,167,255,.18) 52%, transparent 72%);
  filter: blur(.1px);
  opacity:.92;
  box-shadow:
    0 0 80px rgba(138,180,255,.10),
    0 0 120px rgba(185,167,255,.08);
}

/* Generic sections */
.section{
  padding:54px 0;
}

.section-head{
  margin-bottom:22px;
  max-width: 760px;
}

.section h2{
  font-size:30px;
  margin:0 0 10px;
  letter-spacing:-.6px;
  line-height:1.1;
}

.section p{
  margin:0;
  color:var(--muted);
  line-height:1.75;
}

/* Cards */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
  margin-top:20px;
}

.card{
  position:relative;
  padding:22px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.028));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease,
    box-shadow .22s ease;
}

.card::before{
  content:"";
  position:absolute;
  inset:0 auto auto 0;
  width:100%;
  height:1px;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.24), rgba(255,255,255,0));
  opacity:.7;
}

.card:hover{
  transform: translateY(-4px);
  border-color: rgba(138,180,255,.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}

.card h3{
  margin:0 0 8px;
  font-size:17px;
  line-height:1.3;
  letter-spacing:-.2px;
}

.card p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
  font-size:14.5px;
}

/* Split section */
.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  margin-top:20px;
}

.split-left,
.split-right{
  min-width:0;
}

.split-left h3{
  margin:0 0 14px;
  font-size:20px;
  letter-spacing:-.3px;
}

.list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}

.list li{
  display:flex;
  align-items:flex-start;
  color:var(--muted);
  line-height:1.65;
  padding:14px 16px;
  border-radius:16px;
  background: rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.08);
}

.check{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin-right:10px;
  margin-top:2px;
  border-radius:7px;
  background: linear-gradient(180deg, rgba(138,180,255,.24), rgba(185,167,255,.18));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 0 24px rgba(138,180,255,.12);
}

.callout{
  height:100%;
  padding:22px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
}

.callout h4{
  margin:0 0 12px;
  font-size:18px;
  letter-spacing:-.2px;
}

.steps{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.8;
}

.steps li + li{
  margin-top:4px;
}

/* Form */
.form-wrap{
  margin-top:20px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-soft);
  padding:22px;
}

.form{
  display:grid;
  gap:14px;
}

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

label span{
  display:block;
  margin:0 0 7px;
  color:var(--muted-2);
  font-size:13px;
  font-weight:600;
  letter-spacing:.1px;
}

input,
textarea{
  width:100%;
  padding:13px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline:none;
  font: inherit;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    transform .18s ease;
}

input::placeholder,
textarea::placeholder{
  color: rgba(234,240,255,.42);
}

input:focus,
textarea:focus{
  border-color: rgba(138,180,255,.55);
  box-shadow: 0 0 0 4px rgba(138,180,255,.10);
  background: rgba(0,0,0,.28);
}

textarea{
  resize:vertical;
  min-height:150px;
}

.alerts{
  display:grid;
  gap:10px;
  margin-bottom:12px;
}

.alert{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  color:var(--text);
}

.alert.success{
  background: var(--ok);
}

.alert.error{
  background: var(--bad);
}

.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  opacity:0;
}

.muted{
  color:var(--muted);
}

.tiny{
  font-size:12px;
}

/* Footer */
.footer{
  margin-top:70px;
  padding:26px 0 40px;
  background: transparent;
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.footer-copy{
  margin:0;
  color:rgba(234,240,255,.55);
  font-size:13px;
}

.footer-links{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.footer-links a{
  color:rgba(234,240,255,.62);
  font-size:13px;
  border-bottom:1px solid transparent;
  transition: color .18s ease, border-color .18s ease, transform .18s ease;
}

.footer-links a:hover{
  color:var(--text);
  border-color: rgba(138,180,255,.45);
  transform:translateY(-1px);
}

/* Legal pages */
.legal{
  padding:42px 0 10px;
}

.legal-card{
  padding:24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.legal h1{
  margin:0 0 10px;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height:1.08;
  letter-spacing:-.6px;
}

.legal .lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  line-height:1.7;
}

.legal h2{
  margin:20px 0 8px;
  font-size:16px;
  letter-spacing:-.2px;
}

.legal p{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.8;
  font-size:14.5px;
}

.legal ul{
  margin:0 0 12px;
  padding-left:18px;
  color:var(--muted);
  line-height:1.8;
  font-size:14.5px;
}

.legal li{
  margin:6px 0;
}

.legal a{
  color: rgba(138,180,255,.92);
  border-bottom: 1px solid rgba(138,180,255,.25);
  transition: border-color .18s ease, color .18s ease;
}

.legal a:hover{
  color: var(--text);
  border-color: rgba(138,180,255,.55);
}

.legal .box{
  margin:14px 0 8px;
  padding:14px;
  border-radius:14px;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
}

.legal .box p{
  margin:0 0 8px;
}

.legal .box p:last-child{
  margin-bottom:0;
}

.legal .placeholder{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  color: rgba(234,240,255,.72);
  font-size:12px;
  letter-spacing:.2px;
  vertical-align:middle;
}

.legal .meta{
  margin-top:18px;
  padding-top:12px;
  border-top:1px solid var(--line);
  color: rgba(234,240,255,.55);
  font-size:12.5px;
}

/* Responsive */
@media (max-width: 920px){
  .container{
    width:min(var(--max), calc(100% - 28px));
  }

  .header-inner{
    padding:14px 0;
  }

  .brand-name{
    font-size:22px;
    letter-spacing:.5px;
  }

  .hero{
    grid-template-columns:1fr;
    padding:40px 0 24px;
    gap:20px;
  }

  h1{
    font-size: clamp(30px, 7vw, 40px);
  }

  .lead{
    font-size:16px;
  }

  .hero-right{
    min-height:220px;
  }

  .hero-right::before{
    inset: 10% 8% 8% 8%;
  }

  .orb{
    width:230px;
    height:230px;
    opacity:.88;
  }

  .section{
    padding:38px 0;
  }

  .section h2{
    font-size:25px;
  }

  .cards,
  .split,
  .grid{
    grid-template-columns:1fr;
  }

  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
  }

  .footer-links{
    gap:14px;
  }

  .legal{
    padding:30px 0 10px;
  }

  .legal-card{
    padding:18px;
  }

  /* Oculta menú de texto y deja solo CTA */
  .header .nav a{
    display:none !important;
  }

  .header .nav .nav-sandbox,
  .header .nav a.btn{
    display:inline-flex !important;
  }

}

@media (max-width: 520px){
  .container{
    width:calc(100% - 22px);
  }

  .brand-name{
    font-size:21px;
  }

  .cta-row{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
  }

  .cta-row .btn{
    width:100%;
  }

  .btn-sm{
    padding:10px 12px;
  }

  .badge{
    font-size:12px;
  }

  .form-wrap{
    padding:16px;
  }

  input,
  textarea{
    padding:13px 12px;
  }
}