:root {
  --blue-950: #071a3a;
  --blue-900: #0a2558;
  --blue-800: #0d3f8f;
  --blue-700: #1262d6;
  --blue-600: #1f7cff;
  --blue-500: #3d94ff;
  --blue-100: #eaf3ff;
  --blue-50: #f5f9ff;
  --white: #ffffff;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --shadow-soft: 0 24px 70px rgba(15, 52, 118, 0.16);
  --shadow-card: 0 16px 45px rgba(15, 52, 118, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 10% 5%, rgba(31, 124, 255, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 45%, #ffffff 100%);
  color: var(--gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.45);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-950);
  font-size: 1.12rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: var(--white);
  box-shadow: 0 12px 30px rgba(31, 124, 255, 0.28);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--gray-700);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-700);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--blue-600);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue-950);
  color: var(--white) !important;
  box-shadow: 0 10px 26px rgba(7, 26, 58, 0.16);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--blue-50);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue-950);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 22px 80px;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.55;
  pointer-events: none;
}

.orb-one {
  width: 220px;
  height: 220px;
  top: 90px;
  right: 120px;
  background: rgba(31, 124, 255, 0.2);
  animation: floatOrb 8s ease-in-out infinite;
}

.orb-two {
  width: 150px;
  height: 150px;
  bottom: 120px;
  left: 20px;
  background: rgba(18, 98, 214, 0.12);
  animation: floatOrb 10s ease-in-out infinite reverse;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--blue-700);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--blue-600);
}

h1,
h2,
h3 {
  color: var(--blue-950);
  letter-spacing: -0.055em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 6.6rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h3 {
  font-size: 1.35rem;
}

.hero-text,
.section-heading p,
.product-hero-content p,
.contact-content p,
.split-layout p {
  margin-top: 24px;
  color: var(--gray-700);
  font-size: 1.12rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
  box-shadow: 0 16px 35px rgba(31, 124, 255, 0.32);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-900);
  border: 1px solid rgba(18, 98, 214, 0.16);
  box-shadow: var(--shadow-card);
}

.btn-light {
  background: var(--white);
  color: var(--blue-900);
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 460px;
}

.ai-core {
  position: relative;
  width: min(440px, 82vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(31, 124, 255, 0.25);
  animation: rotateRing 18s linear infinite;
}

.ring-two {
  inset: 45px;
  animation-duration: 14s;
  animation-direction: reverse;
}

.ring-three {
  inset: 92px;
  border-style: dashed;
  animation-duration: 12s;
}

.core-center {
  position: relative;
  z-index: 2;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(234, 243, 255, 0.9)),
    linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: var(--blue-900);
  font-size: 2.8rem;
  font-weight: 950;
  box-shadow: var(--shadow-soft);
  animation: pulseCore 3.5s ease-in-out infinite;
}

.node {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--blue-600);
  box-shadow: 0 0 0 10px rgba(31, 124, 255, 0.12);
}

.node-a {
  top: 18%;
  left: 25%;
}

.node-b {
  top: 32%;
  right: 10%;
}

.node-c {
  bottom: 14%;
  left: 30%;
}

.node-d {
  bottom: 28%;
  right: 22%;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 86px 22px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.metrics-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.metric-card,
.product-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 30px;
  border: 1px solid rgba(18, 98, 214, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.metric-card:hover,
.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(31, 124, 255, 0.35);
  box-shadow: var(--shadow-soft);
}

.metric-card::after,
.product-card::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(31, 124, 255, 0.09);
}

.metric-card span,
.feature-item span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 900;
}

.metric-card p,
.product-card p,
.feature-item p {
  margin-top: 14px;
  color: var(--gray-700);
}

.product-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: var(--white);
  font-size: 1.55rem;
  box-shadow: 0 16px 30px rgba(31, 124, 255, 0.26);
}

.product-subtitle {
  margin-top: 8px !important;
  color: var(--blue-700) !important;
  font-weight: 850;
}

.card-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--blue-700);
  font-weight: 900;
}

.card-link::after {
  content: "→";
  margin-left: 8px;
  transition: transform 0.25s ease;
}

.card-link:hover::after {
  transform: translateX(5px);
}

.cta-section {
  max-width: var(--max-width);
  margin: 40px auto 90px;
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(135deg, var(--blue-950), var(--blue-700));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.cta-section h2,
.cta-section .eyebrow {
  color: var(--white);
}

.cta-section .eyebrow::before {
  background: var(--white);
}

.product-hero,
.contact-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 110px 22px 80px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 58px;
}

.product-panel,
.knowledge-panel,
.agent-panel,
.contact-form,
.map-card {
  position: relative;
  min-height: 390px;
  padding: 32px;
  border: 1px solid rgba(18, 98, 214, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 249, 255, 0.95));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.product-panel {
  display: grid;
  align-content: center;
  gap: 20px;
}

.flow-line {
  position: absolute;
  left: 54px;
  top: 70px;
  bottom: 70px;
  width: 3px;
  background: linear-gradient(var(--blue-600), transparent);
}

.flow-step {
  position: relative;
  z-index: 1;
  margin-left: 46px;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--white);
  color: var(--blue-950);
  font-weight: 850;
  box-shadow: var(--shadow-card);
  animation: stepGlow 4s ease-in-out infinite;
}

.flow-step.active {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
}

.knowledge-panel {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 16px;
}

.data-pill,
.knowledge-core,
.agent-card {
  display: grid;
  place-items: center;
  min-width: 108px;
  min-height: 58px;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--white);
  color: var(--blue-900);
  font-weight: 900;
  box-shadow: var(--shadow-card);
}

.knowledge-core {
  width: 130px;
  height: 130px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: var(--white);
  font-size: 2rem;
  animation: pulseCore 3.5s ease-in-out infinite;
}

.agent-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: center;
}

.agent-card {
  border-radius: 22px;
  min-height: 80px;
}

.main-agent {
  grid-column: 1 / -1;
  min-height: 120px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: var(--white);
  font-size: 1.4rem;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 64px;
  align-items: start;
}

.mcp-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mcp-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 98, 214, 0.14);
  box-shadow: var(--shadow-card);
}

.mcp-card::after {
  content: "";
  position: absolute;
  inset: auto -32px -32px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(31, 124, 255, 0.08);
}

.mcp-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mcp-card h3 {
  margin-bottom: 12px;
  font-size: 1.4rem;
}

.mcp-card p {
  color: var(--gray-700);
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(18, 98, 214, 0.12);
  box-shadow: var(--shadow-card);
}

.contact-info {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.contact-info div {
  padding: 20px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(18, 98, 214, 0.12);
  box-shadow: var(--shadow-card);
}

.contact-info span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-700);
  font-weight: 850;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-info strong {
  color: var(--blue-950);
}

.contact-form {
  min-height: auto;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--blue-950);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid rgba(18, 98, 214, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(31, 124, 255, 0.12);
}

.form-message {
  min-height: 24px;
  color: var(--blue-700);
  font-weight: 800;
}

.map-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 22px 90px;
}

.map-card {
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(31, 124, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 124, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff, #f5f9ff);
  background-size: 34px 34px, 34px 34px, auto;
}

.map-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  background: var(--blue-600);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 12px rgba(31, 124, 255, 0.14);
  animation: pinBounce 2.4s ease-in-out infinite;
}

.map-label {
  position: absolute;
  bottom: 36px;
  left: 36px;
  right: 36px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

.map-label strong,
.map-label span {
  display: block;
}

.map-label strong {
  color: var(--blue-950);
  font-size: 1.2rem;
}

.map-label span {
  color: var(--gray-700);
  margin-top: 4px;
}

.footer {
  padding: 34px 22px;
  text-align: center;
  color: var(--gray-500);
  border-top: 1px solid rgba(209, 213, 219, 0.45);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

@keyframes rotateRing {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseCore {
  0%,
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }

  50% {
    transform: scale(1.04);
    box-shadow: 0 28px 90px rgba(31, 124, 255, 0.24);
  }
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -24px, 0);
  }
}

@keyframes stepGlow {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(8px);
  }
}

@keyframes pinBounce {
  0%,
  100% {
    transform: translateY(0) rotate(-45deg);
  }

  50% {
    transform: translateY(-10px) rotate(-45deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .product-hero,
  .contact-hero,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 80px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .metrics-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(18, 98, 214, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px;
  }

  h1 {
    font-size: clamp(2.7rem, 14vw, 4.3rem);
  }

  .section,
  .product-hero,
  .contact-hero {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .cta-section {
    margin-left: 22px;
    margin-right: 22px;
    padding: 32px;
  }

  .feature-item {
    grid-template-columns: 1fr;
  }

  .agent-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .navbar {
    padding: 14px 16px;
  }

  .hero,
  .section,
  .product-hero,
  .contact-hero,
  .map-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .metric-card,
  .product-card,
  .product-panel,
  .knowledge-panel,
  .agent-panel,
  .contact-form,
  .map-card {
    border-radius: 24px;
  }
}
/* Formulario de contacto: validación y estado de envío. */
.contact-form .field-error {
  color: #b91c1c;
  font-size: 0.85rem;
}

.contact-form .field-error:empty {
  display: none;
}

.form-message.is-error {
  color: #b91c1c;
}

.form-message.is-success {
  color: #15803d;
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}
