:root {
  --bg: #1f2129;
  --bg2: #2a2d3a;
  --panel: #23262f;
  --border: #3a3f52;
  --text: #e8ecf3;
  --muted: #9aa3b2;
  --green: #3a9f00;
  --cyan: #14c0f2;
  --c-w: #f4f6f8;
  --c-y: #ffcc21;
  --c-g: #469b4a;
  --c-b: #14c0f2;
  --c-r: #ed323d;
  --c-o: #e28e2c;
  --radius: 18px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* Privacidad: la política está en español y en inglés (el resto de idiomas
   ven la inglesa) */
html[lang="es"] .doc[lang="en"],
html:not([lang="es"]) .doc[lang="es"] { display: none; }

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

/* ---------- Cabecera ---------- */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(31, 33, 41, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 63, 82, .6);
}
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: auto; }
nav.links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 15px; }
@media (max-width: 400px) { nav.links { gap: 10px; font-size: 14px; } }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--text); text-decoration: none; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239aa3b2'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--text); border: 1px solid var(--border); border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600; padding: 5px 28px 5px 12px; cursor: pointer;
}
.lang-select:hover { border-color: var(--muted); }
.lang-select option { background: var(--panel); color: var(--text); }
.doc-note { max-width: 720px; width: calc(100% - 40px); margin: 24px auto 0; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(900px 420px at 80% 30%, rgba(20, 192, 242, .10), transparent 60%),
    radial-gradient(700px 380px at 10% 80%, rgba(58, 159, 0, .12), transparent 60%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.03em; }
.hero h1 .accent { background: linear-gradient(90deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1px solid var(--border); color: var(--text); background: var(--panel);
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { filter: brightness(1.1); }
.btn small { display: block; font-size: 11px; font-weight: 600; opacity: .8; line-height: 1.1; }
.btn .two { line-height: 1.15; text-align: left; }
.pill { display: inline-block; font-size: 13px; color: var(--muted); border: 1px solid var(--border); padding: 3px 12px; border-radius: 999px; margin-bottom: 18px; }

/* Cubo 3D en CSS */
.cube-stage { display: grid; place-items: center; height: 340px; perspective: 900px; }
.cube {
  --s: 180px;
  width: var(--s); height: var(--s); position: relative; transform-style: preserve-3d;
  animation: spin 18s linear infinite;
}
@keyframes spin {
  from { transform: rotateX(-28deg) rotateY(0deg); }
  to   { transform: rotateX(-28deg) rotateY(360deg); }
}
.face {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 7px; background: #111318; border-radius: 14px;
}
.face span { border-radius: 9px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18), inset 0 2px 0 rgba(255,255,255,.18); }
.f-front  { transform: translateZ(calc(var(--s) / 2)); }
.f-back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.f-right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.f-left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.f-top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
.w { background: var(--c-w); } .y { background: var(--c-y); } .g { background: var(--c-g); }
.b { background: var(--c-b); } .r { background: var(--c-r); } .o { background: var(--c-o); }
@media (prefers-reduced-motion: reduce) { .cube { animation: none; transform: rotateX(-28deg) rotateY(-35deg); } }

/* ---------- Secciones ---------- */
section { padding: 72px 0; }
section.alt { background: var(--bg2); }
h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -.02em; margin: 0 0 10px; line-height: 1.15; }
.sub { color: var(--muted); margin: 0 0 40px; font-size: 17px; max-width: 40em; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(20, 192, 242, .12); color: var(--cyan);
}
.ico.gr { background: rgba(58, 159, 0, .15); color: #5cc21c; }
.ico svg { width: 24px; height: 24px; }

/* Capturas */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.shot { margin: 0; text-align: center; }
.shot img {
  border-radius: 24px; border: 6px solid #0d0e12; box-shadow: 0 18px 40px rgba(0,0,0,.45);
  aspect-ratio: 600 / 1259; object-fit: cover; object-position: top; width: 100%;
}
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* Cubos compatibles */
.brands { display: flex; flex-wrap: wrap; gap: 12px; }
.brands span { background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 8px 18px; font-weight: 700; }

/* Gratis / completa */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.plan h3 { margin: 0 0 4px; font-size: 22px; }
.plan .price { color: var(--muted); margin-bottom: 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-top: 1px solid rgba(58,63,82,.5); font-size: 15px; }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 900; }
.plan.full { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }

/* Privacidad (resumen) */
.privacy-box { display: flex; gap: 22px; align-items: center; }
.privacy-box .ico { flex: none; width: 56px; height: 56px; }

/* ---------- Pie ---------- */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .brand { font-size: 16px; }
footer .sp { margin-left: auto; }

/* ---------- Documento (privacidad) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.1; }
.doc h2 { font-size: 21px; margin: 38px 0 10px; padding-top: 18px; border-top: 1px solid var(--border); }
.doc p, .doc li { color: #cfd5df; }
.doc em { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .cube-stage { height: 280px; order: -1; }
  .cube { --s: 150px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  nav.links a.hide-m { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .privacy-box { flex-direction: column; align-items: flex-start; }
}
