:root {
  color-scheme: dark;
  --neura-bg: #05070d;
  --neura-panel: rgba(12, 18, 34, 0.82);
  --neura-panel-solid: #0b1020;
  --neura-border: rgba(255, 255, 255, 0.1);
  --neura-text: #f7f9ff;
  --neura-soft: #d9e3ff;
  --neura-muted: #aab6cf;
  --neura-cyan: #37d7ff;
  --neura-violet: #8a7cff;
  --neura-link: #72e4ff;
  --neura-shadow: 0 22px 64px rgba(0, 0, 0, 0.28);
  --page-max: 1120px;
  --page-pad: 40px;
}

html[data-theme="light"] {
  color-scheme: light;
  --neura-bg: #f4f7fb;
  --neura-panel: rgba(255, 255, 255, 0.86);
  --neura-panel-solid: #ffffff;
  --neura-border: rgba(15, 23, 42, 0.1);
  --neura-text: #0f172a;
  --neura-soft: #334155;
  --neura-muted: #64748b;
  --neura-cyan: #0891b2;
  --neura-violet: #4f46e5;
  --neura-link: #2563eb;
  --neura-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--neura-bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(55, 215, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 86% 16%, rgba(138, 124, 255, 0.1), transparent 28rem),
    var(--neura-page-bg, linear-gradient(180deg, #070a12 0%, #05070d 58%, #070a12 100%)) !important;
  color: var(--neura-text);
}

html[data-theme="light"] body {
  --neura-page-bg: linear-gradient(180deg, #ffffff 0%, #f4f7fb 58%, #eef3f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--neura-grid-line, rgba(255, 255, 255, 0.018)) 1px, transparent 1px),
    linear-gradient(90deg, var(--neura-grid-line, rgba(255, 255, 255, 0.018)) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

html[data-theme="light"] body::before {
  --neura-grid-line: rgba(15, 23, 42, 0.035);
}

a {
  color: var(--neura-link);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--neura-border);
  background: var(--neura-header-bg, rgba(5, 7, 13, 0.82));
  backdrop-filter: blur(18px);
}

html[data-theme="light"] .site-header {
  --neura-header-bg: rgba(255, 255, 255, 0.86);
}

.site-header__inner,
.site-footer__inner,
.landing-container {
  width: min(var(--page-max), calc(100% - var(--page-pad)));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--neura-text);
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand img,
.hero-logo,
.legal-logo {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(55, 215, 255, 0.18);
}

.brand span {
  font-size: 18px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--neura-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--neura-text);
  background: var(--neura-nav-hover-bg, rgba(255, 255, 255, 0.07));
  text-decoration: none;
}

html[data-theme="light"] .site-nav a:hover {
  --neura-nav-hover-bg: rgba(15, 23, 42, 0.06);
}

.site-footer {
  border-top: 1px solid var(--neura-border);
  background: var(--neura-footer-bg, rgba(5, 7, 13, 0.68));
}

html[data-theme="light"] .site-footer {
  --neura-footer-bg: rgba(255, 255, 255, 0.76);
}

.site-footer__inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--neura-muted);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--neura-soft);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--neura-link);
  text-decoration: underline;
}

.footer-brand span {
  color: var(--neura-text);
}

/* Mejoras compartidas para las paginas legales existentes */
.container,
.shell {
  padding-top: 34px !important;
}

.card,
.hero,
.content {
  border-color: var(--neura-border) !important;
  background: var(--neura-legal-card-bg, linear-gradient(180deg, rgba(15, 22, 40, 0.9), rgba(10, 15, 29, 0.92))) !important;
  box-shadow: var(--neura-shadow) !important;
}

html[data-theme="light"] .card,
html[data-theme="light"] .hero,
html[data-theme="light"] .content {
  --neura-legal-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.badge,
.eyebrow,
.lang-btn {
  letter-spacing: 0 !important;
}

.lang-btn,
.doc-link {
  border-color: var(--neura-control-border, rgba(255, 255, 255, 0.11)) !important;
}

html[data-theme="light"] .lang-btn,
html[data-theme="light"] .doc-link {
  --neura-control-border: rgba(15, 23, 42, 0.1);
}

/* Landing principal */
.landing-main {
  overflow: clip;
}

.landing-hero {
  width: 100%;
  min-height: auto;
  padding: 72px 0 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.88fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 640px;
  animation: neura-rise 620ms ease both;
}

.hero-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 8px 13px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--neura-soft);
  font-size: 14px;
  font-weight: 750;
}

.hero-mark .hero-logo {
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 10px;
}

.hero-kicker,
.section-kicker,
.section-heading p {
  margin: 0 0 12px;
  color: var(--neura-link);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 660px;
  margin: 0;
  color: var(--neura-text);
  font-family: Inter, Arial, sans-serif;
  font-size: clamp(44px, 5.3vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--neura-soft);
  font-size: 17px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--neura-text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #63e6ff, #8f83ff);
  color: #031018;
  box-shadow: 0 14px 38px rgba(55, 215, 255, 0.16);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.055);
}

.button-disabled {
  cursor: default;
  user-select: none;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-trust span,
.trust-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--neura-muted);
}

.hero-trust span {
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 700;
}

.chat-showcase {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  animation: neura-float-in 700ms ease 100ms both;
}

.chat-showcase::before {
  content: "";
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(55, 215, 255, 0.11), transparent 68%);
  filter: blur(16px);
  opacity: 0.65;
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 468px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(17, 25, 44, 0.96), rgba(7, 11, 22, 0.96)),
    rgba(8, 12, 22, 0.9);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.38);
}

.phone-topbar,
.composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.phone-topbar {
  padding: 4px 2px 16px;
}

.assistant-id {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-id img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.assistant-id strong,
.experience-list strong {
  display: block;
  color: var(--neura-text);
}

.assistant-id span {
  display: block;
  margin-top: 2px;
  color: var(--neura-muted);
  font-size: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #69f4b7;
  box-shadow: 0 0 0 6px rgba(105, 244, 183, 0.1);
}

.chat-thread {
  min-height: 390px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.message {
  width: fit-content;
  max-width: 86%;
  margin-bottom: 13px;
  padding: 13px 15px;
  border-radius: 18px;
  color: var(--neura-soft);
  font-size: 14px;
  line-height: 1.55;
}

.message-user {
  margin-left: auto;
  border-bottom-right-radius: 7px;
  background: rgba(114, 228, 255, 0.14);
}

.message-ai {
  border-bottom-left-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
}

.message-rich {
  width: 88%;
}

.mini-plan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  margin-top: 12px;
}

.mini-plan b {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 8px;
  background: rgba(114, 228, 255, 0.13);
  color: var(--neura-link);
  font-size: 12px;
}

.composer {
  margin-top: 13px;
  padding: 10px 10px 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.composer span {
  color: var(--neura-muted);
  font-size: 13px;
}

.composer button {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--neura-text);
  color: #07101d;
  font-weight: 800;
}

.landing-section {
  width: 100%;
  padding: 10px 0 76px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 26px;
}

.section-heading h2,
.experience-copy h2 {
  margin: 0;
  color: var(--neura-text);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  min-height: 208px;
  padding: 20px;
  border: 1px solid var(--neura-border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.028)),
    rgba(12, 18, 34, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.feature:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 228, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(114, 228, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(12, 18, 34, 0.76);
}

.feature-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(114, 228, 255, 0.12);
  color: var(--neura-link);
  font-size: 14px;
  font-weight: 900;
}

.feature h3 {
  min-height: 44px;
  margin: 0 0 8px;
  color: var(--neura-text);
  font-size: 17px;
  line-height: 1.28;
}

.feature p {
  margin: 0;
  color: var(--neura-muted);
  font-size: 14px;
  line-height: 1.62;
}

.experience-section {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 54px;
  padding: 36px;
  border: 1px solid var(--neura-border);
  border-radius: 24px;
  background: rgba(12, 18, 34, 0.66);
  box-shadow: var(--neura-shadow);
}

.experience-copy p:not(.section-kicker) {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--neura-soft);
  font-size: 16px;
  line-height: 1.7;
}

.experience-list {
  display: grid;
  gap: 10px;
}

.experience-list div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.experience-list span {
  display: block;
  margin-top: 6px;
  color: var(--neura-muted);
  font-size: 14px;
  line-height: 1.55;
}

.trust-section {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 0 72px;
}

.trust-card {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 750;
}

@keyframes neura-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes neura-float-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1060px) {
  :root {
    --page-pad: 32px;
  }

  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 38px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature h3 {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: auto;
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .site-nav a {
    padding-left: 0;
    padding-right: 12px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    padding: 48px 0 62px;
    gap: 34px;
  }

  .hero-copy,
  .hero-copy h1 {
    max-width: 100%;
  }

  .chat-showcase {
    min-height: auto;
    place-items: start;
  }

  .phone-shell {
    width: 100%;
    max-width: 520px;
  }

  .experience-section {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px;
  }

  .site-footer__inner {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  :root {
    --page-pad: 24px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand span {
    font-size: 17px;
  }

  .site-nav {
    gap: 2px 10px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .landing-hero {
    padding-top: 38px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-copy p,
  .experience-copy p:not(.section-kicker) {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: auto;
    padding: 18px;
  }

  .chat-thread {
    min-height: 340px;
    padding: 14px;
  }

  .message {
    max-width: 94%;
    font-size: 13px;
  }

  .composer {
    border-radius: 18px;
  }

  .composer button {
    flex: 0 0 auto;
  }

  .experience-section {
    padding: 22px;
    border-radius: 20px;
  }

  .trust-section {
    padding-bottom: 56px;
  }
}
