/* ============================================================
   LUBICA LABS — Sistema de marca compartido
   Mismo esqueleto en todas las páginas. El acento cambia por
   producto vía la variable --accent / --accent-2.
   ============================================================ */

:root {
  /* Base oscura compartida (toda la familia) */
  --bg:        #0B0B12;
  --bg-soft:   #12121C;
  --surface:   #16161F;
  --surface-2: #1C1C28;
  --border:    #2A2A3A;
  --text:      #ECECF1;
  --muted:     #9A9AAE;
  --muted-2:   #6E6E82;

  /* Acento corporativo Lubica (por defecto). Cada página
     de producto lo sobreescribe. */
  --accent:   #6C5CE7;   /* violeta-azul corporativo */
  --accent-2: #8E7CF0;
  --accent-soft: rgba(108, 92, 231, 0.15);

  --radius:   16px;
  --radius-lg: 24px;
  --maxw:     1080px;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
}
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 60ch; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #F6D88E, #D9B871, #B8923E);
  display: grid; place-items: center; position: relative;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 6px; background: var(--bg);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 30px var(--accent-soft);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px var(--accent-soft); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Secciones ---------- */
section { padding: 88px 0; }
.section-head { max-width: 60ch; margin-bottom: 48px; }
.section-head h2 { margin: 10px 0 14px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s, border-color .18s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; margin-bottom: 18px; font-size: 1.4rem;
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { margin: 16px 0 20px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* Placeholder visual (capturas / logos del usuario) */
.placeholder {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid; place-items: center;
  color: var(--muted-2);
  font-size: 0.9rem; text-align: center; padding: 24px;
  min-height: 120px;
}
.shot { aspect-ratio: 9/16; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 560px) { .shot-row { grid-template-columns: repeat(2, 1fr); } }

/* Decoración: fichas de letra (firma de marca, usar con restraint) */
.tiles { display: flex; gap: 8px; }
.tile {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  color: var(--text); position: relative;
}
.tile.accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border: none; }
.tile span { position: absolute; bottom: 3px; right: 5px; font-size: 0.6rem; color: var(--muted); font-weight: 600; }
.tile.accent span { color: rgba(255,255,255,0.8); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 40px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer small { color: var(--muted-2); }

/* ---------- Utilidades ---------- */
.center { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 48px; }
.badge {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-2);
  font-size: 0.78rem; font-weight: 600; font-family: var(--font-display);
}
.badge-soon { background: var(--surface-2); color: var(--muted); }

/* Accesibilidad */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Selector de idioma en nav */
.langsw{display:inline-flex;gap:8px;font-size:0.85rem;align-items:center;}
.langsw a{color:var(--muted-2,#6E6F84);text-decoration:none;transition:color .15s;}
.langsw a:hover{color:var(--text,#fff);}
