/* Reynova Tech · landing. Sin JavaScript y sin estilos en línea: compatible con una política de contenido estricta. */

:root {
  --bg: #070a14;
  --card: #111830;
  --card-2: #0b1020;
  --line: rgba(150, 160, 255, 0.14);
  --ink: #f4f6ff;
  --mute: #a3accb;
  --b: #22d3ee;
  --ok: #34d399;
  --grad: linear-gradient(120deg, #7c5cff, #22d3ee);
  --radius: 22px;
  --focus: #67e8f9;
  --maxw: 1200px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* Íconos en línea (SVG sin scripts) */
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--bg);
  padding: 8px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border-radius: 14px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; min-height: 52px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; min-height: 42px; }
.btn-primary { background: var(--grad); color: #070a14; box-shadow: 0 16px 44px -12px rgba(124, 92, 255, 0.7); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line); color: var(--ink); }
.btn-dark { background: #070a14; color: #fff; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 10, 20, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; min-width: 0; }
.brand-logo { width: 48px; height: 48px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line), 0 8px 24px -8px rgba(34, 211, 238, 0.45); }
.product-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.product-brand img { width: 56px; height: 56px; border-radius: 14px; background: #5b3df5; flex: none; }
.product-brand .eyebrow { margin: 0; }
.mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad); flex: none;
  display: grid; place-items: center; color: #070a14; font-weight: 900;
}
.links { display: flex; gap: 26px; color: var(--mute); font-size: 15px; font-weight: 500; }
.links a { text-decoration: none; }
.links a:hover { color: var(--ink); }
.bar-actions { display: flex; align-items: center; gap: 10px; }

/* Menú móvil: <details> sin JavaScript */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.burger {
  width: 46px; height: 46px; border-radius: 13px; border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu[open] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[open] .burger i:nth-child(2) { opacity: 0; }
.menu[open] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 12px); width: min(88vw, 320px);
  background: var(--card-2); border: 1px solid var(--line); border-radius: 18px; padding: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column;
}
.menu-panel a { padding: 14px 16px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink); }
.menu-panel a:hover { background: rgba(255, 255, 255, 0.05); }
.menu-panel .menu-cta { margin-top: 8px; background: var(--grad); color: #070a14; text-align: center; font-weight: 700; }

/* ---------- Tipografía ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--b);
}
h1 { font-size: clamp(40px, 6.2vw, 84px); line-height: 1.02; font-weight: 850; letter-spacing: -0.04em; margin-top: 20px; }
h2 { font-size: clamp(31px, 4.2vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -0.035em; margin-top: 16px; max-width: 900px; }
h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--mute); margin-top: 22px; max-width: 620px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 65%);
  pointer-events: none; z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -30% -15%; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.pillars li {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--line);
}
.pill-ic {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(34, 211, 238, 0.12); color: var(--b);
}
.pill-ic svg { width: 20px; height: 20px; }
.pillars b { display: block; font-size: 15px; margin-bottom: 2px; }
.pillars span { font-size: 14px; color: var(--mute); line-height: 1.45; }

.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Tarjeta de código ---------- */
.codecard {
  position: relative; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, #121933, #0a0f20);
  box-shadow: 0 50px 110px -30px rgba(124, 92, 255, 0.35);
  padding-bottom: 52px;
}
.tabs { display: flex; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-family: Consolas, "Cascadia Code", "Courier New", monospace; font-size: 13px; color: var(--mute); overflow-x: auto; }
.tab { padding: 7px 10px; white-space: nowrap; }
.tab.on { color: var(--ink); background: #1a2243; border-radius: 8px; }
.dots { display: flex; gap: 7px; margin-right: 8px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3355; display: block; }
.codebody { padding: 22px 22px 14px; font-family: Consolas, "Cascadia Code", "Courier New", monospace; font-size: clamp(13px, 1.3vw, 16px); line-height: 1.8; color: #b9c2e0; overflow-x: auto; }
.codebody .row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; white-space: pre; }
.codebody .ln { color: #3b4669; text-align: right; user-select: none; }
.codebody .k { color: #a78bfa; }
.codebody .s { color: #67e8f9; }
.codebody .n { color: #34d399; }
.codebody .c { color: #56617f; }
.caret { display: inline-block; width: 9px; height: 18px; background: #67e8f9; vertical-align: -3px; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.codestatus {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 18px; font-size: 13px; color: var(--mute); background: #0c1226; border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius); font-family: Consolas, "Cascadia Code", "Courier New", monospace;
}
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); margin-right: 8px; vertical-align: 1px; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.badge { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.badge b { display: block; font-size: 16px; letter-spacing: -0.01em; }
.badge span { display: block; margin-top: 4px; font-size: 13px; color: var(--mute); line-height: 1.45; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0 0; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(124, 92, 255, 0.16); color: #c4b5fd; border: 1px solid rgba(124, 92, 255, 0.3);
}
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
.card {
  padding: 34px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.45); }
.card h3 { margin-top: 22px; }
.card p { margin-top: 12px; color: var(--mute); font-size: 17px; line-height: 1.6; }

/* ---------- Citalumi ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 72px); align-items: center; }
.checks { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: flex; gap: 14px; font-size: 17px; color: var(--mute); }
.checks b { color: var(--ink); font-weight: 650; }
.checks i {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(52, 211, 153, 0.15); color: var(--ok); font-style: normal; font-weight: 800; font-size: 14px;
}
.shots { position: relative; padding-right: 40px; padding-bottom: 60px; }
.shot {
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--card);
  box-shadow: 0 60px 120px -30px rgba(124, 92, 255, 0.45);
}
.phone {
  position: absolute; right: 0; bottom: 0; width: min(34%, 240px); border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 40px 80px -10px rgba(0, 0, 0, 0.7); background: var(--card-2);
}

/* Recorrido del cliente */
.journey { margin-top: clamp(64px, 8vw, 96px); padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.journey-title { font-size: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.journey-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; counter-reset: paso; }
.journey-steps li { position: relative; padding: 24px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); }
.journey-steps li::before {
  counter-increment: paso; content: counter(paso); position: absolute; top: 20px; right: 20px;
  font-size: 13px; font-weight: 800; color: var(--b);
}
.step-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(34, 211, 238, 0.12); color: var(--b); }
.journey-steps h3 { margin-top: 18px; font-size: 19px; }
.journey-steps p { margin-top: 8px; color: var(--mute); font-size: 15px; line-height: 1.55; }

/* Para quién */
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.usecase {
  padding: 28px 24px; border-radius: 20px; background: linear-gradient(180deg, #131a36, #0c1122); border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.usecase:hover { transform: translateY(-3px); border-color: rgba(34, 211, 238, 0.4); }
.usecase .icon { width: 46px; height: 46px; border-radius: 14px; background: rgba(34, 211, 238, 0.1); border-color: rgba(34, 211, 238, 0.3); color: var(--b); }
.usecase h3 { margin-top: 20px; font-size: 19px; }
.usecase p { margin-top: 8px; color: var(--mute); font-size: 15px; line-height: 1.55; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 70px); align-items: start; }
.about .lead { margin-top: 24px; }
.vals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.val { padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.val-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(124, 92, 255, 0.14); color: #c4b5fd; margin-bottom: 14px; }
.val-ic svg { width: 20px; height: 20px; }
.val b { font-size: 19px; }
.val p { margin-top: 8px; font-size: 15px; color: var(--mute); line-height: 1.55; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 52px; border-top: 1px solid var(--line); }
.steps li { padding: 30px 26px 0 0; }
.steps .n { font-size: 14px; font-weight: 800; color: var(--b); letter-spacing: 0.12em; }
.steps h3 { margin-top: 14px; font-size: 21px; }
.steps p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--mute); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.faq details { padding: 24px 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--b); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 12px; color: var(--mute); font-size: 16px; line-height: 1.6; }

/* ---------- Contacto ---------- */
.final {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: clamp(36px, 6vw, 80px); border-radius: 36px; background: var(--grad); color: #070a14;
}
.final h2 { color: #070a14; margin-top: 0; font-size: clamp(34px, 4.6vw, 60px); }
.final p { margin-top: 18px; font-size: 19px; color: rgba(7, 10, 20, 0.8); line-height: 1.55; }
.contact-box { background: #070a14; color: var(--ink); border-radius: 22px; padding: 30px; }
.contact-box .btn-dark { background: var(--grad); color: #070a14; box-shadow: 0 14px 36px -12px rgba(124, 92, 255, 0.6); }
.contact-title { font-weight: 750; font-size: 20px; margin-bottom: 18px; }
.fine { margin-top: 14px; font-size: 13px; color: #6e7aa6; }

/* ---------- Pie ---------- */
.site-footer { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 36px 0 44px; color: var(--mute); font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 32px; height: 32px; border-radius: 9px; }
.foot-product { display: flex; align-items: center; gap: 10px; }
.foot-product img { width: 24px; height: 24px; border-radius: 7px; background: #5b3df5; }
.foot-product a { font-weight: 600; color: var(--ink); }
.social-link {
  margin-top: 22px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px;
  background: #070a14; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.social-link svg { width: 22px; height: 22px; flex: none; stroke: #f58529; }
.social-link:hover { border-color: #dd2a7b; }
.social-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); }
.social-icon svg { width: 20px; height: 20px; stroke: var(--ink); }
.social-icon:hover { border-color: #dd2a7b; }

/* Barra fija inferior: solo móvil */
.dock { display: none; }

/* ---------- Responsive: tablet y móvil grande ---------- */
@media (max-width: 960px) {
  .links { display: none; }
  .menu { display: block; }
  .hero-grid, .product-grid, .about { grid-template-columns: 1fr; }
  .hero-visual { max-width: 680px; }
  .pillars { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .journey-steps { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .final { grid-template-columns: 1fr; }
  .shots { padding-right: 0; padding-bottom: 0; }
  .phone { position: relative; width: 62%; margin: -60px 0 0 auto; }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { padding-bottom: 84px; }
  .container { width: min(100% - 32px, var(--maxw)); }
  .bar-actions .btn-sm { display: none; }
  .brand { font-size: 17px; }
  .brand-logo { width: 40px; height: 40px; }

  h1 { font-size: clamp(36px, 10.5vw, 48px); line-height: 1.06; }
  h2 { font-size: clamp(28px, 8.2vw, 38px); }
  .lead { font-size: 17px; }
  .eyebrow { font-size: 12px; }

  .ctas { flex-direction: column; }
  .ctas .btn { width: 100%; }

  .badges { grid-template-columns: 1fr; }
  .codecard { padding-bottom: 0; }
  .codestatus { position: static; border-radius: 0 0 var(--radius) var(--radius); }
  .codebody { font-size: 13px; }

  .cards { margin-top: 36px; gap: 14px; }
  .card { padding: 24px; }
  .usecases { grid-template-columns: 1fr; gap: 14px; }
  .vals { grid-template-columns: 1fr; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq details { padding: 20px 22px; }

  .journey { padding: 22px; border-radius: 22px; }
  .final { padding: 30px 24px; border-radius: 26px; }
  .contact-box { padding: 22px; }

  .phone { width: 58%; }
  .shot { border-radius: 18px; }

  .foot { flex-direction: column; padding-bottom: 96px; }

  /* Barra fija inferior */
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(7, 10, 20, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
  }
  .dock-btn {
    display: flex; align-items: center; justify-content: center; min-height: 52px;
    border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none;
  }
  .dock-main { background: var(--grad); color: #070a14; box-shadow: 0 12px 30px -10px rgba(124, 92, 255, 0.7); }
  .dock-alt { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--ink); }
  .dock { display: grid; }
}

/* ---------- Detalles nuevos: bloque de contacto, 3D y servicios ---------- */
.foot-brand img { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 10px 24px -8px rgba(34, 211, 238, 0.5); }

/* El texto del bloque oscuro usa su propio color (antes heredaba el color claro de .final p) */
.final .contact-box .contact-title { color: var(--ink); font-size: 22px; line-height: 1.3; margin-bottom: 20px; }
.final .contact-box .fine { color: var(--mute); margin-top: 16px; }
.final .contact-box .social-link { color: var(--ink); margin-top: 18px; }

.final {
  position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 40px 80px -30px rgba(124, 92, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -12px 30px rgba(0, 0, 0, 0.12);
}
.final::before {
  content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; top: -140px; right: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 65%);
}
.final::after {
  content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; bottom: -150px; left: -70px; border-radius: 50%;
  background: radial-gradient(circle, rgba(7, 10, 20, 0.4), transparent 65%);
}
.final .contact-box {
  position: relative; padding: 34px;
  background: linear-gradient(160deg, #101a40 0%, #070a14 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.final .contact-box .btn-dark {
  box-shadow: 0 7px 0 #3a25a8, 0 18px 36px -12px rgba(124, 92, 255, 0.7);
}
.final .contact-box .btn-dark:active { transform: translateY(5px); box-shadow: 0 2px 0 #3a25a8, 0 8px 18px -10px rgba(124, 92, 255, 0.6); }

/* Servicios: lenguaje sencillo */
.services-cta {
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 30px; border-radius: 22px; background: var(--card); border: 1px dashed rgba(34, 211, 238, 0.35);
}
.services-cta p { color: var(--mute); font-size: 17px; max-width: 620px; line-height: 1.55; }
.card .ideal { display: inline-block; color: var(--b); font-weight: 700; margin-right: 4px; }
.card .gain { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); }
.card .gain b { color: var(--ok); }

/* 3D: profundidad permanente y giro al pasar el cursor (solo en pantallas con cursor) */
.card, .usecase, .val, .journey-steps li, .shot, .phone, .badge, .pillars li {
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 18px 40px -22px rgba(124, 92, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-primary { box-shadow: 0 6px 0 #3a25a8, 0 18px 36px -12px rgba(124, 92, 255, 0.7); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 #3a25a8, 0 8px 18px -10px rgba(124, 92, 255, 0.6); }
.btn { transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease; }

@media (hover: hover) and (min-width: 961px) {
  .card:hover, .usecase:hover, .val:hover, .journey-steps li:hover {
    transform: perspective(900px) rotateX(5deg) rotateY(-6deg) translateY(-6px);
    box-shadow: 0 34px 60px -24px rgba(124, 92, 255, 0.55), 0 0 0 1px rgba(124, 92, 255, 0.35);
  }
  .codecard { transform: perspective(1200px) rotateY(-7deg) rotateX(4deg); transition: transform 0.5s ease; }
  .codecard:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
  .shot { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
  .shot:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
}

@media (max-width: 640px) {
  .services-cta { flex-direction: column; align-items: stretch; padding: 22px; }
  .services-cta .btn { width: 100%; }
  .final { padding: 36px 22px; }
  .final .contact-box { padding: 24px; }
}

/* Pie rediseñado: marca a la izquierda, enlaces ordenados a la derecha */
.foot { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 40px 0 44px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand img { width: 52px; height: 52px; border-radius: 50%; box-shadow: 0 12px 28px -10px rgba(34, 211, 238, 0.55), 0 0 0 1px var(--line); }
.foot-name { font-weight: 800; font-size: 17px; color: var(--ink); }
.foot-copy { font-size: 13px; color: var(--mute); margin-top: 2px; }
.foot-links { display: flex; flex-direction: column; gap: 10px; min-width: 300px; }
.foot-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--mute); text-decoration: none; font-size: 15px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.foot-link:hover { color: var(--ink); border-color: rgba(34, 211, 238, 0.45); transform: translateX(3px); }
.foot-link svg { width: 18px; height: 18px; flex: none; stroke: var(--b); }
.foot-link img { width: 22px; height: 22px; border-radius: 6px; background: #5b3df5; flex: none; }
@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; gap: 22px; padding: 30px 0 100px; }
  .foot-brand img { width: 46px; height: 46px; }
  .foot-links { min-width: 0; }
}

/* Móvil: que el bloque de código o los botones no empujen la página hacia la derecha */
.hero-grid > *, .product-grid > *, .about > *, .container > * { min-width: 0; }
.codecard { max-width: 100%; }
@media (max-width: 960px) {
  .hero-grid, .product-grid, .about { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ctas .btn { max-width: 100%; white-space: normal; text-align: center; }
  .dock-btn { gap: 8px; }
}

/* Logos dentro de botones */
.btn-logo { width: 22px; height: 22px; border-radius: 6px; background: #5b3df5; flex: none; }

/* ---------- Idioma y modo claro / oscuro ---------- */
:root {
  --header-bg: rgba(7, 10, 20, 0.78);
  --dock-bg: rgba(7, 10, 20, 0.92);
  --ghost-bg: rgba(255, 255, 255, 0.04);
  --card-grad: linear-gradient(180deg, #131a36, #0c1122);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --card: #ffffff;
  --card-2: #eef1f8;
  --card-grad: linear-gradient(180deg, #ffffff, #f3f5fb);
  --line: rgba(15, 18, 34, 0.12);
  --ink: #0f1222;
  --mute: #4b5472;
  --b: #0e7490;
  --ok: #059669;
  --header-bg: rgba(246, 247, 251, 0.86);
  --dock-bg: rgba(246, 247, 251, 0.94);
  --ghost-bg: rgba(15, 18, 34, 0.04);
  --focus: #0e7490;
}
:root[data-theme="light"] body { background: var(--bg); }
:root[data-theme="light"] .site-header { background: var(--header-bg); }
:root[data-theme="light"] .dock { background: var(--dock-bg); }
:root[data-theme="light"] .usecase { background: var(--card-grad); }
:root[data-theme="light"] .btn-ghost { background: var(--ghost-bg); }
:root[data-theme="light"] .menu-panel { background: #ffffff; }
:root[data-theme="light"] .journey-steps li { background: #ffffff; }
:root[data-theme="light"] .hero::before { opacity: 0.55; }
:root[data-theme="light"] .card,
:root[data-theme="light"] .usecase,
:root[data-theme="light"] .val,
:root[data-theme="light"] .badge,
:root[data-theme="light"] .pillars li,
:root[data-theme="light"] .faq details { box-shadow: 0 18px 40px -26px rgba(60, 40, 140, 0.35); }
:root[data-theme="light"] .final { box-shadow: 0 40px 80px -30px rgba(124, 92, 255, 0.45); }
:root[data-theme="light"] .final .contact-box { background: linear-gradient(160deg, #101a40 0%, #070a14 70%); }

.bar-actions { gap: 8px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 42px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em; text-decoration: none;
}
.lang:hover { border-color: rgba(34, 211, 238, 0.5); }
.theme-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.theme-btn:hover { border-color: rgba(34, 211, 238, 0.5); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn .ic-moon { display: none; }
:root[data-theme="light"] .theme-btn .ic-sun { display: none; }
:root[data-theme="light"] .theme-btn .ic-moon { display: block; }
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- Logos sin marco ---------- */
.brand-logo, .foot-brand img { box-shadow: none; border-radius: 50%; background: transparent; outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .btn, .card, .usecase { transition: none; }
}
