/* ==========================================================
   Opusvolt Labs — tema claro (por defecto) y oscuro
   El tema oscuro se activa con <html data-theme="dark">
   (lo pone /theme.js según la elección guardada).
   ========================================================== */
:root {
  --bg: #ffffff;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --surface-solid: #ffffff;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #111827;
  --muted: #4b5563;

  --brand: #0f2a4f;
  --green: #0f2a4f;
  --grad-a: #0f2a4f;
  --grad-b: #0f2a4f;

  --primary: #0f2a4f;
  --on-primary: #ffffff;
  --on-accent: #ffffff;

  --acc-violet: #0f2a4f;
  --acc-gold: #0f2a4f;
  --acc-blue: #0f2a4f;

  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow: none;
  --shadow-lg: none;
  --glow-1: transparent;
  --glow-2: transparent;
  --grid-opacity: 0;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b1628;
  --bg-2: #0f1e36;
  --surface: #11223c;
  --surface-2: #172b4a;
  --surface-solid: #11223c;
  --line: #1f3558;
  --line-strong: #2a4470;
  --text: #f3f5f9;
  --muted: #a3b1c6;

  --brand: #9dbbe3;
  --green: #9dbbe3;
  --grad-a: #9dbbe3;
  --grad-b: #9dbbe3;

  --primary: #ffffff;
  --on-primary: #0b1628;
  --on-accent: #0b1628;

  --acc-violet: #ffffff;
  --acc-gold: #ffffff;
  --acc-blue: #ffffff;

  --nav-bg: rgba(11, 22, 40, 0.92);
  --glow-1: transparent;
  --glow-2: transparent;
  --grid-opacity: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}

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

.container { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; font-optical-sizing: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span b { color: var(--green); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 600;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: var(--on-primary);
  background: var(--primary);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-links .nav-cta:hover { color: var(--on-primary); filter: brightness(1.12); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.theme-toggle:hover { background: var(--surface-2); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow);
}
.btn-primary:hover { filter: brightness(1.15); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding: 80px 0 92px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 0;
  z-index: -1;
  background:
    radial-gradient(520px 380px at 50% 18%, var(--glow-1), transparent 70%),
    radial-gradient(420px 300px at 80% 62%, var(--glow-2), transparent 70%),
    radial-gradient(420px 300px at 18% 70%, var(--glow-2), transparent 70%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: var(--grid-opacity);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 68%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 68%);
}
.hero-logo {
  width: clamp(140px, 20vw, 200px);
  margin: 0 auto 8px;
  animation: pulse 5s ease-in-out infinite;
  
}
.logo-on-dark { display: none; }
:root[data-theme="dark"] .logo-on-light { display: none; }
:root[data-theme="dark"] .logo-on-dark { display: block; }
.eyebrow {
  display: inline-block;
  margin-top: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: color-mix(in srgb, var(--brand) 7%, transparent);
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  margin: 22px auto 0;
  max-width: 17ch;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
h1 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}
.lead {
  margin: 22px auto 0;
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}
.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.kicker {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h2 {
  margin: 10px 0 0;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: 1.05rem; }

/* ---------- App showcases ---------- */
.app {
  --accent: var(--acc-violet);
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
  padding: 32px;
  margin-bottom: 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.app.gold { --accent: var(--acc-gold); }
.app.blue { --accent: var(--acc-blue); }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon {
  flex: none;
  width: 68px; height: 68px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.app-num { color: var(--accent); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.app h3 { margin: 2px 0 0; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1; letter-spacing: -0.015em; }
.app .tagline { margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; max-width: 48ch; }
.points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 14px; font-weight: 500; font-size: 0.98rem; }
.points li::before {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0.6em 0 0 4px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.app .hero-actions { justify-content: flex-start; margin-top: 28px; }
.btn-play { background: var(--accent); color: var(--on-accent);  }
.btn-play:hover { filter: brightness(1.15); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent); font-weight: 700; font-size: 0.95rem;
}

.shots { display: flex; justify-content: center; gap: 14px; }
.shot {
  width: 31%;
  max-width: 172px;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: transform .35s ease;
}
.shot:nth-child(1) { transform: translateY(20px) rotate(-3deg); }
.shot:nth-child(3) { transform: translateY(20px) rotate(3deg); }
.shot:nth-child(2) { transform: translateY(-6px); }
.shots:hover .shot { transform: translateY(0) rotate(0); }
.feature-img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin-bottom: 18px; }
.shots.duo .shot { width: 38%; max-width: 190px; }
.shots.duo .shot:nth-child(1) { transform: rotate(-2.5deg); }
.shots.duo .shot:nth-child(2) { transform: translateY(16px) rotate(2.5deg); }
.shots.duo:hover .shot { transform: none; }

.strip {
  margin-top: 10px;
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; align-items: center; gap: 16px;
  color: var(--muted);
}
.strip strong { color: var(--text); }
.strip-ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-2); font-size: 1.3rem; }

/* ---------- Contact ---------- */
.cta {
  text-align: center;
  padding: 60px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 50% 0%, var(--glow-1), transparent 70%),
    var(--bg-2);
  box-shadow: var(--shadow);
}
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { margin: 14px auto 0; max-width: 46ch; color: var(--muted); }
.cta .hero-actions { margin-top: 28px; }

/* ---------- Footer ---------- */
footer { padding: 34px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.legal-links a { text-decoration: none; }
.legal-links a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  max-width: 620px;
  margin-inline: auto;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  display: none;
}
.cookie-banner.show { display: block; animation: rise .35s ease both; }
.cookie-title { margin: 0 0 4px; font-weight: 700; }
.cookie-text { margin: 0; color: var(--muted); font-size: 0.9rem; }
.cookie-text a { color: var(--brand); }
.cookie-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.cookie-btn.accept { background: var(--primary); border-color: transparent; color: var(--on-primary); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

@media (min-width: 860px) {
  .app { grid-template-columns: 1.05fr 1fr; padding: 48px; }
  .app.flip { --glow-x: 0%; }
  .app.flip .app-text { order: 2; }
}
@media (max-width: 640px) {
  .nav-links { gap: 10px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 52px 0 68px; }
  section { padding: 64px 0; }
  .app { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Guides ---------- */
body { --accent: var(--acc-violet); }
body.gold { --accent: var(--acc-gold); }
body.blue { --accent: var(--acc-blue); }
.g-hero { padding: 60px 0 36px; position: relative; isolation: isolate; }
.g-hero::before {
  content: ""; position: absolute; inset: -80px 0 0; z-index: -1;
  background: none;
}
.crumbs { color: var(--muted); font-size: 0.9rem; margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }
.g-title { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.g-title .app-icon { width: 84px; height: 84px; border-radius: 22px; }
.g-title h1 { margin: 4px 0 0; max-width: none; font-size: clamp(2.1rem, 5.4vw, 3.5rem); text-align: left; }
.g-lead { margin: 22px 0 0; max-width: 62ch; color: var(--muted); font-size: 1.12rem; }
.g-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

.g-sec { padding: 44px 0; }
.g-sec h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.g-sec > .container > p.sub { color: var(--muted); margin: 10px 0 0; max-width: 60ch; }

.steps { list-style: none; counter-reset: st; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: st; position: relative;
  padding: 22px 24px 22px 76px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(st); position: absolute; left: 22px; top: 20px;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-family: var(--serif);
}
.steps b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.g-cards { display: grid; gap: 14px; margin-top: 28px; }
.g-card {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s ease;
}
.g-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.g-card .ico {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 11%, transparent); font-size: 1.35rem;
}
.g-card h3 { margin: 14px 0 0; font-size: 1.18rem; }
.g-card p { margin: 8px 0 0; color: var(--muted); font-size: 0.97rem; }

.tip {
  margin-top: 26px; padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}
.tip b { color: var(--accent); }
.tip p { margin: 6px 0 0; color: var(--text); }

.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 4px 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.other { display: grid; gap: 14px; margin-top: 24px; }
.other a { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: border-color .2s, transform .2s; }
.other a:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.other img { width: 48px; height: 48px; border-radius: 13px; }
.other small { display: block; color: var(--muted); }

@media (min-width: 760px) {
  .g-cards { grid-template-columns: repeat(2, 1fr); }
  .other { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) { .g-cards.three { grid-template-columns: repeat(3, 1fr); } }


/* ---------- Product page ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip { padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 600; transition: border-color .2s, transform .2s; }
.chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.gallery img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: transform .3s; }
.gallery img:hover { transform: translateY(-4px); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.g-hero .hero-actions { justify-content: flex-start; }

/* ---------- Bloque de contacto en azul marino ---------- */
.cta { background: #0f2a4f; border-color: #0f2a4f; color: #ffffff; }
.cta p { color: rgba(255, 255, 255, 0.78); }
.cta .btn-primary { background: #ffffff; color: #0f2a4f; }
:root[data-theme="dark"] .cta { background: #11223c; border-color: var(--line); }
