/* M.A.K.I. glass + rainbow theme (shared) */
:root{
  --bg0:#05070b;
  --bg1:#071018;
  --panel: rgba(8,16,24,.72);
  --panel2: rgba(6,12,18,.55);
  --stroke: rgba(110,200,255,.22);
  --stroke2: rgba(255,255,255,.08);
  --txt: rgba(235,245,255,.92);
  --muted: rgba(210,230,245,.66);
  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --glow: 0 0 0 1px rgba(100,200,255,.18), 0 0 40px rgba(0,180,255,.10);
  --rainbow: linear-gradient(90deg,#ff3b3b,#ffb400,#e7ff3b,#3bff9a,#3bd9ff,#4f67ff,#d23bff);
  --radius: 18px;
  --radius2: 26px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--txt);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(60,180,255,.14), transparent 60%),
    radial-gradient(900px 500px at 85% 18%, rgba(215,60,255,.12), transparent 62%),
    radial-gradient(900px 650px at 40% 95%, rgba(255,190,60,.10), transparent 60%),
    linear-gradient(180deg, var(--bg1), var(--bg0));
  overflow-x:hidden;
}
a{color:#7de1ff; text-decoration:none}
a:hover{opacity:.92; text-decoration:underline}

.topline{
  height:4px;
  background:var(--rainbow);
  box-shadow:0 0 16px rgba(80,200,255,.18);
  position:sticky;
  top:0;
  z-index:20;
}
.shell{
  width:min(1180px, 92vw);
  margin:26px auto 60px;
}
.header{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 18px;
  background:linear-gradient(180deg, rgba(12,24,36,.86), rgba(8,16,24,.70));
  border:1px solid var(--stroke2);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  backdrop-filter: blur(10px);
}
.brand{
  display:flex; flex-direction:column; gap:4px;
}
.brand h1{
  font-size:22px; margin:0; letter-spacing:.5px;
  display:flex; gap:10px; align-items:baseline;
}
.badge{
  font-size:11px; color:rgba(225,245,255,.75);
  padding:2px 8px;
  border:1px solid rgba(140,220,255,.22);
  border-radius:999px;
  background:rgba(8,18,26,.55);
}
.brand .sub{font-size:12px; color:var(--muted)}
.nav{
  display:flex; gap:10px; align-items:center;
}
.btn{
  appearance:none; border:1px solid rgba(140,220,255,.22);
  background:linear-gradient(180deg, rgba(10,22,32,.70), rgba(8,16,24,.50));
  color:var(--txt);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
  box-shadow:var(--glow);
}
.btn:hover{filter:brightness(1.08)}
.btn.primary{
  border-color: rgba(180,255,255,.28);
  background:
    linear-gradient(180deg, rgba(20,32,42,.78), rgba(8,16,24,.55));
  position:relative;
}
.btn.primary::before{
  content:"";
  position:absolute; inset:-1px;
  border-radius:14px;
  padding:1px;
  background:var(--rainbow);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events:none;
  opacity:.9;
}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
  margin-top:14px;
}
.card{
  grid-column: span 12;
  background:linear-gradient(180deg, rgba(8,16,24,.72), rgba(6,12,18,.58));
  border:1px solid rgba(140,220,255,.16);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  padding:18px;
  backdrop-filter: blur(10px);
}
.card h2{margin:0 0 8px; font-size:18px}
.card p{margin:0; color:var(--muted); line-height:1.45}
.cards3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:14px;
}
@media (max-width: 980px){ .cards3{grid-template-columns:1fr} }
.plan{
  background:linear-gradient(180deg, rgba(8,16,24,.76), rgba(5,10,16,.55));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--radius2);
  padding:16px;
  box-shadow:var(--shadow);
}
.plan .price{font-size:28px; margin:10px 0 8px}
.plan ul{margin:10px 0 0 18px; color:var(--muted); line-height:1.55}
.footerNote{margin-top:14px; font-size:12px; color:rgba(210,230,245,.6)}
.sep{height:1px;background:rgba(255,255,255,.06); margin:14px 0}
.center{
  min-height: 70vh;
  display:grid;
  place-items:center;
}
.authBox{
  width:min(520px, 92vw);
}
.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(140,220,255,.14);
  background:rgba(5,10,16,.40);
  color:var(--txt);
  outline:none;
}
.input:disabled{opacity:.55}
.small{font-size:12px;color:var(--muted)}

/* -------------------------------------------------
   MÓVIL (Maki): Bottom Sheet para controles
   - El visor 3D queda como protagonista.
   - Reutilizamos el panel de la izquierda (#leftCol)
     dentro de un contenedor fijo inferior (#mobileSheet).
-------------------------------------------------- */
@media (max-width: 768px){
  body.is-mobile{ overflow-x:hidden; }

  /* Panel inferior */
  body.is-mobile .mobile-sheet{
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 70vh;
    z-index: 9999;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(180deg, rgba(7,14,22,0.86), rgba(4,8,13,0.72));
    box-shadow: 0 18px 60px rgba(0,0,0,0.55);
    transform: translateY(calc(100% - 78px));
    transition: transform 220ms ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
  }
  body.is-mobile .mobile-sheet.expanded{ transform: translateY(0); }

  body.is-mobile .mobile-sheet-handle{
    display:flex;
    align-items:center;
    gap:10px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  body.is-mobile .mobile-sheet-handle .grab{
    width: 44px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,0.24);
    box-shadow: 0 0 14px rgba(0,229,255,0.10);
    opacity: 0.85;
  }
  body.is-mobile .mobile-generate{
    flex:1;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0,229,255,0.24);
    background: linear-gradient(90deg, rgba(0,255,190,0.16), rgba(0,140,255,0.14), rgba(255,70,255,0.10));
    color: rgba(255,255,255,0.92);
    font-weight: 700;
    letter-spacing: 0.2px;
  }
  body.is-mobile .mobile-generate:active{ transform: translateY(1px); opacity: 0.92; }

  body.is-mobile .mobile-sheet-toggle{
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.18);
    color: rgba(255,255,255,0.92);
    font-weight: 800;
  }

  /* El panel original pasa a scrollear dentro del sheet */
  body.is-mobile #leftCol{
    height: calc(70vh - 66px);
    overflow: auto;
    padding-right: 6px;
  }

  /* Menos padding para ganar espacio */
  body.is-mobile #leftCol .card{ padding: 12px; }
  body.is-mobile #leftCol .btn, body.is-mobile #leftCol button{ min-height: 42px; }
}
