/* Delegia · landing (www). Vidrio esmerilado como las apps (packages/app/design/tokens.ts):
   primario #0C86DD, índigo #4F5BD5, fondos #E9EFF6 / #DEE7F1, texto #182230.
   Sin recursos de terceros: la CSP del perfil "site" solo permite 'self' y data:. */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #e9eff6;
  --bg-2: #dee7f1;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --border: rgba(26, 44, 82, 0.1);
  --border-hi: rgba(26, 44, 82, 0.18);
  --input: rgba(26, 44, 82, 0.05);
  --text: #182230;
  --text-2: rgba(24, 34, 48, 0.78);
  --muted: rgba(24, 34, 48, 0.68);
  --primary: #0c86dd;
  --indigo: #4f5bd5;
  --link: #0868ae;
  --accent-ink: #0868ae;
  --focus: #0c86dd;
  --btn: linear-gradient(135deg, #0a74c2 0%, #4f5bd5 100%);
  --glow: rgba(12, 134, 221, 0.28);
  --shadow: 0 1px 2px rgba(16, 32, 64, 0.06), 0 12px 32px -12px rgba(16, 32, 64, 0.22);
  --shadow-lg: 0 2px 6px rgba(16, 32, 64, 0.06), 0 30px 60px -24px rgba(16, 32, 64, 0.35);
  --blob-1: #5cc1ff;
  --blob-2: #7f88f0;
  --blob-3: #9be7ff;
  --blob-opacity: 0.55;
  --ring: rgba(24, 34, 48, 0.07);
  --danger: #be123c;
  --success: #15803d;
  --warning-bg: #fff4d6;
  --warning-ink: #7a4a00;
  --radius: 20px;
  --radius-lg: 28px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1120;
    --bg-2: #0e1830;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(18, 28, 50, 0.9);
    --surface-solid: #111b31;
    --border: rgba(255, 255, 255, 0.1);
    --border-hi: rgba(255, 255, 255, 0.2);
    --input: rgba(255, 255, 255, 0.06);
    --text: #e8eef7;
    --text-2: rgba(232, 238, 247, 0.8);
    --muted: rgba(232, 238, 247, 0.66);
    --link: #74c4ff;
    --accent-ink: #74c4ff;
    --focus: #74c4ff;
    --glow: rgba(12, 134, 221, 0.4);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 70px -24px rgba(0, 0, 0, 0.75);
    --blob-1: #0c86dd;
    --blob-2: #4f5bd5;
    --blob-3: #0f5f9e;
    --blob-opacity: 0.45;
    --ring: rgba(255, 255, 255, 0.05);
    --danger: #fb7185;
    --success: #4ade80;
    --warning-bg: #3a2a07;
    --warning-ink: #fde68a;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1120;
  --bg-2: #0e1830;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(18, 28, 50, 0.9);
  --surface-solid: #111b31;
  --border: rgba(255, 255, 255, 0.1);
  --border-hi: rgba(255, 255, 255, 0.2);
  --input: rgba(255, 255, 255, 0.06);
  --text: #e8eef7;
  --text-2: rgba(232, 238, 247, 0.8);
  --muted: rgba(232, 238, 247, 0.66);
  --link: #74c4ff;
  --accent-ink: #74c4ff;
  --focus: #74c4ff;
  --glow: rgba(12, 134, 221, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 70px -24px rgba(0, 0, 0, 0.75);
  --blob-1: #0c86dd;
  --blob-2: #4f5bd5;
  --blob-3: #0f5f9e;
  --blob-opacity: 0.45;
  --ring: rgba(255, 255, 255, 0.05);
  --danger: #fb7185;
  --success: #4ade80;
  --warning-bg: #3a2a07;
  --warning-ink: #fde68a;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 100% 0%, var(--bg-2), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
main:focus {
  outline: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-i {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}
.muted {
  color: var(--muted);
}
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .wrap {
    padding-inline: 28px;
  }
}
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--text);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 10px;
}

/* ─── Botones y enlaces ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-align: center;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn .icon {
  width: 18px;
  height: 18px;
  margin-inline-start: 8px;
  transition: transform 0.2s ease;
}
.btn:hover .icon {
  transform: translateX(2px);
}
.btn-primary {
  color: #fff;
  background: var(--btn);
  box-shadow: 0 10px 24px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.btn-ghost:hover {
  border-color: var(--border-hi);
  transform: translateY(-1px);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}
.btn-block {
  width: 100%;
}
.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
}
.icon-btn:hover {
  border-color: var(--border-hi);
}
.link-arrow,
.link-back {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
}
.link-arrow:hover,
.link-back:hover {
  text-decoration: underline;
}
.link-arrow .icon,
.link-back .icon {
  width: 18px;
  height: 18px;
  margin-inline: 6px;
}
.link-arrow .icon:first-child,
.link-back .icon:first-child {
  margin-inline: 0 8px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ─── Encabezado ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--surface-strong);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(16, 32, 64, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}
.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  border-radius: 12px;
}
/* El SVG de la marca es un elemento flexible: sin esto, un menú largo lo aplasta a unos píxeles. */
.logo-mark {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 16px -6px var(--glow);
}
.brand-name {
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav a:hover {
  color: var(--text);
  background: var(--input);
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-switch ul {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--input);
  border: 1px solid var(--border);
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-2);
  text-decoration: none;
}
.lang-switch a[aria-current="true"] {
  background: var(--surface-solid);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}
.icon-sun {
  display: none;
}
:root[data-theme="dark"] .icon-sun {
  display: block;
}
:root[data-theme="dark"] .icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none;
  }
}
.menu-toggle {
  display: none;
}
@media (max-width: 1239px) {
  .menu-toggle {
    display: inline-grid;
  }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 16px 20px;
    background: var(--surface-strong);
    border-bottom: 1px solid var(--border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    display: none;
  }
  .site-header.is-open .main-nav {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    max-width: 1180px;
    margin: 0 auto;
  }
  .main-nav a {
    padding: 12px 14px;
    font-size: 1.02rem;
    border-radius: 12px;
  }
  .header-tools {
    margin-left: auto;
  }
}
/* Con el menú en una línea, "Cotizar" ya lleva a #contact: el enlace Contacto solo va en el menú colapsado. */
@media (min-width: 1240px) {
  .nav-contact {
    display: none;
  }
}
@media (max-width: 639px) {
  .header-cta {
    display: none;
  }
}
@media (max-width: 359px) {
  .brand-name {
    display: none;
  }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + 48px) 0 72px;
}
@media (min-width: 960px) {
  .hero {
    min-height: min(100vh, 900px);
    display: flex;
    align-items: center;
    padding-bottom: 96px;
  }
}
.aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--blob-opacity);
  will-change: transform;
}
.blob-1 {
  width: 56vmax;
  height: 56vmax;
  left: -18vmax;
  top: -24vmax;
  background: radial-gradient(circle at 30% 30%, var(--blob-1), transparent 65%);
  animation: drift-1 22s ease-in-out infinite alternate;
}
.blob-2 {
  width: 50vmax;
  height: 50vmax;
  right: -16vmax;
  top: -6vmax;
  background: radial-gradient(circle at 60% 40%, var(--blob-2), transparent 65%);
  animation: drift-2 26s ease-in-out infinite alternate;
}
.blob-3 {
  width: 40vmax;
  height: 40vmax;
  left: 22%;
  bottom: -26vmax;
  background: radial-gradient(circle, var(--blob-3), transparent 65%);
  animation: drift-3 30s ease-in-out infinite alternate;
}
.rings {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 50% 50%,
    transparent 59px,
    var(--ring) 60px,
    transparent 61px
  );
  background-size: 120px 120px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 75%);
  animation: rings 40s linear infinite;
}
@keyframes drift-1 {
  to {
    transform: translate(12vmax, 8vmax) scale(1.12);
  }
}
@keyframes drift-2 {
  to {
    transform: translate(-10vmax, 10vmax) scale(0.9);
  }
}
@keyframes drift-3 {
  to {
    transform: translate(8vmax, -10vmax) scale(1.15);
  }
}
@keyframes rings {
  to {
    background-position: 120px 60px;
  }
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-2);
  box-shadow: var(--shadow);
}
.pulse,
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
}
.pulse::after,
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #22c55e;
  opacity: 0;
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}
.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.5rem, 5.6vw + 0.6rem, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.accent {
  display: block;
  background: linear-gradient(100deg, #0c86dd 0%, #4f5bd5 35%, #22a6f2 65%, #0c86dd 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate;
  padding-bottom: 0.06em;
}
@keyframes shimmer {
  to {
    background-position: 100% 0;
  }
}
.lead {
  margin-top: 18px;
  font-size: clamp(1.04rem, 0.6vw + 0.95rem, 1.2rem);
  color: var(--text-2);
  max-width: 60ch;
}

/* Selector Atrio / AIssistant */
.switch-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  border-radius: 18px;
  background: var(--input);
  border: 1px solid var(--border);
}
.switch-tab {
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-2);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.switch-tab[aria-selected="true"] {
  background: var(--surface-solid);
  color: var(--accent-ink);
  box-shadow: var(--shadow);
}
.switch-panel {
  margin-top: 18px;
}
.switch-panel:not([hidden]) {
  animation: fade-up 0.5s ease both;
}
.app-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
}
.app-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(12, 134, 221, 0.6),
    transparent 40%,
    rgba(79, 91, 213, 0.6)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
@keyframes float {
  50% {
    transform: translateY(-6px);
  }
}
.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.product-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.app-feed {
  display: grid;
  gap: 10px;
}
.app-feed li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--input);
  border: 1px solid var(--border);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.35;
  animation: fade-up 0.6s ease both;
}
.app-feed li:nth-child(2) {
  animation-delay: 0.12s;
}
.app-feed li:nth-child(3) {
  animation-delay: 0.24s;
}
.app-feed li:nth-child(4) {
  animation-delay: 0.36s;
}
.feed-icon,
.feature-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  background: var(--btn);
  box-shadow: 0 6px 14px -6px var(--glow);
}
.feed-icon .icon {
  width: 18px;
  height: 18px;
}
.panel-copy {
  margin-top: 18px;
  padding-inline: 4px;
  color: var(--text-2);
}
.checks {
  display: grid;
  gap: 6px;
  margin: 12px 0 14px;
}
.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}
.checks .icon {
  width: 18px;
  height: 18px;
  color: var(--success);
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ─── Números ────────────────────────────────────────────────────────────── */
.stats {
  position: relative;
  margin-top: -24px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}
.stat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.4;
}

/* ─── Secciones ──────────────────────────────────────────────────────────── */
.section {
  position: relative;
  padding: 88px 0;
}
@media (min-width: 960px) {
  .section {
    padding: 120px 0;
  }
}
.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.section h2 {
  font-size: clamp(1.9rem, 2.6vw + 1rem, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-head.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.section-head.center .lead {
  margin-inline: auto;
}

/* Productos */
.product-grid {
  display: grid;
  gap: 36px;
}
@media (min-width: 1000px) {
  .product-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
  }
  .product-grid .section-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}
.product-aissistant {
  --accent-ink: #4b55c8;
  --btn: linear-gradient(135deg, #4f5bd5 0%, #0a74c2 100%);
  background: linear-gradient(
    180deg,
    transparent,
    rgba(79, 91, 213, 0.07) 30%,
    rgba(79, 91, 213, 0.07) 70%,
    transparent
  );
}
:root[data-theme="dark"] .product-aissistant {
  --accent-ink: #a9b0ff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .product-aissistant {
    --accent-ink: #a9b0ff;
  }
}
.feature-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 600px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
.feature {
  padding: 22px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.feature p {
  color: var(--text-2);
  font-size: 0.96rem;
}

/* Cómo funciona */
.steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: relative;
  }
  .steps::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--indigo), transparent);
    opacity: 0.45;
  }
}
.step {
  position: relative;
  padding: 0 8px;
  text-align: center;
}
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--btn);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px var(--bg), 0 12px 24px -10px var(--glow);
}
.step h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.step p {
  color: var(--text-2);
  max-width: 32ch;
  margin-inline: auto;
}

/* Seguridad: banda oscura en los dos modos */
.security {
  color: #e8eef7;
  --text-2: rgba(232, 238, 247, 0.8);
  --accent-ink: #8fd0ff;
  --link: #8fd0ff;
  --focus: #8fd0ff;
  overflow: hidden;
  isolation: isolate;
  background: #0b1530;
}
.security-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(700px 400px at 15% 10%, rgba(12, 134, 221, 0.45), transparent 70%),
    radial-gradient(700px 500px at 90% 90%, rgba(79, 91, 213, 0.5), transparent 70%),
    linear-gradient(160deg, #0b1530, #141a4a);
}
.security-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: grid-pan 24s linear infinite;
}
@keyframes grid-pan {
  to {
    background-position: 48px 48px;
  }
}
.security .lead {
  color: var(--text-2);
}
.security-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 640px) {
  .security-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .security-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
.sec-item {
  display: flex;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.sec-item .feature-icon {
  margin: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
  color: #8fd0ff;
}
.sec-item h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.sec-item p {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* Idiomas y mercados */
.reach-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 960px) {
  .reach-grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.reach .muted {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
}
.reach-cards {
  position: relative;
  display: grid;
  gap: 16px;
}
.reach-card {
  position: relative;
  z-index: 1;
  padding: 24px;
}
.reach-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 14px;
}
.reach-card h3 .icon {
  color: var(--accent-ink);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.95rem;
}
.orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 520px;
  height: 520px;
  max-width: 120%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px dashed var(--border-hi);
  animation: spin 60s linear infinite;
  pointer-events: none;
}
.orbit::before {
  content: "";
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--btn);
  box-shadow: 0 0 16px var(--glow);
}
.orbit span:nth-child(1) {
  top: -6px;
  left: calc(50% - 6px);
}
.orbit span:nth-child(2) {
  bottom: -6px;
  left: calc(50% - 6px);
}
.orbit span:nth-child(3) {
  left: -6px;
  top: calc(50% - 6px);
}
.orbit span:nth-child(4) {
  right: -6px;
  top: calc(50% - 6px);
}
@keyframes spin {
  to {
    rotate: 360deg;
  }
}

/* Capturas */
.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 20px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 88%;
  scroll-snap-align: center;
}
@media (min-width: 720px) {
  .slide {
    flex-basis: 62%;
  }
}
@media (min-width: 1040px) {
  .slide {
    flex-basis: 46%;
  }
}
.slide figure {
  margin: 0;
}
.shot-frame {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg), var(--bg-2));
  box-shadow: var(--shadow-lg);
}
.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}
.shot-frame.is-tall img {
  object-fit: contain;
  padding: 12px 0 0;
}
.shot-frame.is-fit img {
  object-fit: contain;
  object-position: center;
}
.shot-frame:hover img {
  transform: scale(1.03);
}
.slide figcaption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  background: #0a74c2;
}
.tag-AIssistant {
  background: #4f5bd5;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.dot {
  position: relative;
  width: 18px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.dot::before {
  content: "";
  position: absolute;
  inset: 8px 5px;
  border-radius: 999px;
  background: var(--border-hi);
  transition: inset 0.3s, background-color 0.3s;
}
.dot[aria-current="true"] {
  width: 28px;
}
.dot[aria-current="true"]::before {
  inset: 8px 2px;
  background: var(--primary);
}

/* Preguntas */
.faq-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 960px) {
  .faq-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
  }
}
.faq .section-head .link-arrow {
  margin-top: 20px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .icon {
  color: var(--accent-ink);
  transition: transform 0.3s ease;
}
.faq-item[open] summary .icon {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 22px 20px;
  color: var(--text-2);
}

/* Contacto */
.contact-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 56px;
  }
}
.apps-card {
  margin-top: 28px;
  padding: 22px;
}
.apps-card h3,
.email-card h3,
.lead-form h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.apps-links {
  display: grid;
  gap: 4px;
}
.apps-links a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-weight: 700;
  text-decoration: none;
}
.apps-links a:hover {
  text-decoration: underline;
}
.apps-links .icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}
.email-card {
  padding: 28px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
}
.email-line {
  margin: 4px 0 10px;
  font-size: clamp(1.1rem, 1.2vw + 0.9rem, 1.45rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.email-link {
  text-decoration: none;
}
.email-link:hover {
  text-decoration: underline;
}
.lead-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 560px) {
  .lead-form {
    padding: 32px;
  }
}
.field-row {
  display: grid;
  gap: 16px;
}
@media (min-width: 560px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 700;
}
.optional {
  font-weight: 500;
  color: var(--muted);
}
.field input:not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-hi);
  background: var(--input);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 110px;
}
.field input:not([type="radio"]):focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--focus);
  background: var(--surface-solid);
  box-shadow: 0 0 0 4px var(--glow);
}
.field select option {
  background: var(--surface-solid);
  color: var(--text);
}
.hint {
  font-size: 0.84rem;
  color: var(--muted);
}
.product-choice {
  margin: 0;
  padding: 0;
  border: 0;
}
.product-choice legend {
  margin-bottom: 8px;
  padding: 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-hi);
  background: var(--input);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--surface-solid);
  box-shadow: 0 0 0 3px var(--glow);
}
.choice input,
.consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--primary);
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.consent input {
  margin-top: 3px;
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status:empty {
  display: none;
}
.form-status,
.form-error {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-status.is-error,
.form-error {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.form-status.is-busy {
  color: var(--text-2);
  background: var(--input);
}
.lead-form.is-sent > :not([data-success]) {
  display: none;
}
.form-success {
  text-align: center;
  padding: 24px 8px;
}
.form-success:focus {
  outline: none;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #0a74c2);
  animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
.success-icon .icon {
  width: 30px;
  height: 30px;
  stroke-width: 3;
}
@keyframes pop {
  from {
    transform: scale(0.4);
    opacity: 0;
  }
}

/* ─── Pie ────────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }
}
.footer-brand p {
  margin-top: 12px;
  max-width: 42ch;
  color: var(--text-2);
}
.footer-brand .muted {
  margin-top: 6px;
  color: var(--muted);
}
.footer-title {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer-col ul {
  display: grid;
  gap: 8px;
}
.footer-col a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--link);
  text-decoration: underline;
}
.footer-col .muted {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-langs {
  display: flex;
  gap: 14px;
}
.footer-langs a {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
}
.footer-langs a[aria-current="true"] {
  color: var(--link);
}

/* ─── Aviso de privacidad y 404 ─────────────────────────────────────────── */
.legal {
  max-width: 860px;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}
.draft-banner {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--warning-bg);
  color: var(--warning-ink);
  font-weight: 700;
}
.legal-body {
  margin-top: 20px;
  padding: 24px;
  background: var(--surface-strong);
}
@media (min-width: 640px) {
  .legal-body {
    padding: 40px;
  }
}
.legal-body h1 {
  font-size: clamp(1.7rem, 2vw + 1rem, 2.3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 28px 0 8px;
}
.legal-body p,
.legal-body ul {
  margin-top: 10px;
  color: var(--text-2);
}
.legal-body ul {
  list-style: disc;
  padding-left: 22px;
}
.legal-body li + li {
  margin-top: 4px;
}
.legal-body .note {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning-ink);
}
.legal-body .note p {
  color: inherit;
  margin: 0;
}
mark.marker {
  padding: 0 4px;
  border-radius: 4px;
  background: #fde68a;
  color: #422006;
}
.notfound {
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 96px;
  text-align: center;
}
.notfound-code {
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  background: var(--btn);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound-grid {
  display: grid;
  gap: 28px;
  max-width: 980px;
  margin: 32px auto 0;
}
@media (min-width: 860px) {
  .notfound-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.notfound h1,
.notfound h2 {
  font-size: 1.3rem;
  font-weight: 800;
}
.notfound p {
  margin: 8px 0 18px;
  color: var(--text-2);
}

/* ─── Páginas de contenido (qué es, precios, comparativa, preguntas) ───────── */
.page {
  max-width: 900px;
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 80px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
}
.breadcrumb a {
  color: var(--link);
  font-weight: 600;
}
.page-head {
  margin: 24px 0 28px;
}
.page-head h1 {
  font-size: clamp(2rem, 3.4vw + 1rem, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-section,
.page-cta {
  margin-top: 16px;
  padding: 24px;
  background: var(--surface-strong);
}
@media (min-width: 640px) {
  .page-section,
  .page-cta {
    padding: 32px 36px;
  }
}
.page-section h2,
.page-cta h2,
.page-related h2 {
  font-size: clamp(1.25rem, 0.8vw + 1.05rem, 1.55rem);
  font-weight: 800;
}
.page-section p,
.page-cta p {
  margin-top: 10px;
  color: var(--text-2);
}
.page-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  color: var(--text-2);
}
.page-list li {
  position: relative;
  padding-left: 24px;
}
.page-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}
.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table-wrap th,
.table-wrap td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
}
.table-wrap thead th {
  color: var(--text);
  background: var(--input);
}
.table-wrap tbody th {
  color: var(--text);
}
/* La columna de criterios queda fija al desplazar de lado, para saber a qué fila pertenece cada celda. */
.table-wrap thead th:first-child,
.table-wrap tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface-strong);
}
.table-wrap thead th:first-child {
  background: var(--input);
  z-index: 2;
}
.table-wrap tr:last-child th,
.table-wrap tr:last-child td {
  border-bottom: 0;
}
.page-faq {
  margin-top: 8px;
}
.page-cta .email-line {
  margin: 12px 0 16px;
}
.page-cta .btn {
  margin-top: 4px;
}
.page-related {
  margin-top: 36px;
}
.page-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 10px;
}
.page-related a {
  font-weight: 700;
}
.page-updated {
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}
.faq .section-head .link-arrow + .link-arrow {
  margin-left: 20px;
}

/* ─── Aparición al desplazarse (solo con JS) ─────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
