:root {
  --navy: #0B1220;
  --navy-2: #101A2C;
  --navy-3: #16233A;
  --navy-4: #1D2C46;
  --blue: #38BDF8;
  --blue-dim: #1C6FA6;
  --blue-deep: #0A2540;
  --steel: #F4F6F9;
  --steel-2: #E8ECF2;
  --ink: #0B1220;
  --gray: #4E586A;
  --gray-light: #8993A4;
  --white: #FFFFFF;
  --line: rgba(11, 18, 32, 0.12);
  --line-dark: rgba(210, 224, 245, 0.14);
  --radius: 6px;
  --radius-lg: 10px;
  --container: 1200px;
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --shadow: 0 20px 50px -20px rgba(11, 18, 32, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Eyebrow / mono labels */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--blue-dim);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}
.eyebrow-light { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--navy);
  box-shadow: 0 12px 28px -12px rgba(56, 189, 248, 0.55);
}
.btn-primary:hover { background: #5FCBFA; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue-dim); color: var(--blue-dim); }
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: var(--line-dark);
}
.btn-ghost-light:hover { border-color: var(--blue); color: var(--blue); }
.btn-small { padding: 10px 18px; font-size: 0.85rem; }
.btn-large { padding: 17px 34px; font-size: 1.02rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 7px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand-text small {
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 500;
  color: #C7D2E3;
}
.main-nav a { transition: color .15s ease; }
.main-nav a:hover { color: var(--blue); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 72px 0 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 520px;
  background-image:
    linear-gradient(rgba(210, 224, 245, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 224, 245, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy { padding-bottom: 56px; }
.hero-lead {
  font-size: 1.12rem;
  color: #AAB8CD;
  max-width: 48ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--line-dark);
  margin-top: 8px;
}
.hero-specs .spec {
  padding: 16px 22px 16px 0;
  margin-right: 22px;
  border-right: 1px solid var(--line-dark);
}
.hero-specs .spec:last-child { border-right: none; }
.hero-specs .spec b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--white);
}
.hero-specs .spec span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-light);
}

.hero-media {
  position: relative;
  height: 100%;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.hero-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-bottom: none;
  box-shadow: var(--shadow);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,18,32,0) 45%, rgba(11,18,32,0.9) 100%);
}
.hero-img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.hero-frame-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: rgba(11, 18, 32, 0.65);
  border: 1px solid var(--line-dark);
  padding: 6px 10px;
  border-radius: 4px;
}

/* Sections */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-steel { background: var(--steel); }
.section-dark {
  background: var(--navy);
  color: #C7D2E3;
}
.section-dark h3 { color: var(--white); }
.section-dark p { color: #9FACC2; }
h2.light { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 24px; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.lead { font-size: 1.12rem; color: var(--gray); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 44px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  background: var(--white);
  padding: 34px 28px;
  position: relative;
}
.card-index {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue-dim);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: block;
}
.card-icon {
  width: 42px;
  height: 42px;
  color: var(--blue-dim);
  margin-bottom: 16px;
}
.card-icon svg { width: 100%; height: 100%; }
.card p { color: var(--gray); margin-bottom: 0; font-size: 0.96rem; }

/* Products */
.product-list { margin-top: 48px; display: flex; flex-direction: column; }
.product {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.product:last-child { padding-bottom: 0; }
.product-reverse .product-media { order: 2; }
.product-reverse .product-copy { order: 1; }
.product-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-media img {
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.product-index {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--white);
  background: rgba(11, 18, 32, 0.72);
  border: 1px solid var(--line-dark);
  padding: 5px 9px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.product-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  background: var(--steel-2);
  color: var(--blue-dim);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.product-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.product-copy p { color: var(--gray); }
.product-specs {
  display: flex;
  gap: 22px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.product-specs div { font-size: 0.82rem; color: var(--gray); }
.product-specs b { display: block; color: var(--ink); font-family: var(--font-mono); font-size: 0.95rem; }

/* Steps */
.steps {
  list-style: none;
  margin: 52px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.step {
  position: relative;
  padding: 24px 22px 0 0;
  border-top: 1px solid var(--line-dark);
}
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--blue);
}
.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--blue);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.step h3 { color: var(--white); font-size: 1.08rem; }
.step p { font-size: 0.94rem; }

/* Gallery */
.gallery {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.gallery img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  transition: transform .4s ease;
}
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--white);
  opacity: 0.85;
  text-transform: uppercase;
}

/* CTA */
.cta {
  background: var(--navy);
  color: var(--white);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
}
.cta::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-copy p { color: #9FACC2; font-size: 1.05rem; max-width: 46ch; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.cta-contact { display: flex; gap: 22px; font-size: 0.92rem; flex-wrap: wrap; }
.cta-contact a { border-bottom: 1px solid var(--line-dark); padding-bottom: 2px; }
.cta-contact a:hover { border-color: var(--blue); color: var(--blue); }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--white); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner .brand-text strong { color: var(--ink); }
.footer-inner .brand-text small { color: var(--blue-dim); }
.footer-meta { color: var(--gray-light); font-size: 0.84rem; margin: 0; font-family: var(--font-mono); }

/* Modal: solicitud de prueba */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 18, 32, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 40px 36px 32px;
}
.modal h3 { margin-bottom: 8px; }
.modal-lead { color: var(--gray); font-size: 0.96rem; }

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--steel-2); color: var(--blue-dim); }

.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.form-row label span[aria-hidden] { color: var(--blue-dim); }
.label-optional { text-transform: none; letter-spacing: 0; color: var(--gray-light); font-family: var(--font-body); font-size: 0.72rem; }

.form-row input,
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color .15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-row textarea { resize: vertical; min-height: 78px; }

.form-submit { width: 100%; justify-content: center; margin-top: 4px; }
.form-note {
  font-size: 0.78rem;
  color: var(--gray-light);
  margin: 14px 0 0;
  text-align: center;
}

#trial-form-success { text-align: center; padding: 12px 0 4px; }
#trial-form-success .eyebrow { justify-content: center; }
#trial-form-success .btn { margin-top: 18px; }

@media (max-width: 520px) {
  .modal { padding: 32px 22px 26px; }
  .form-row-split { grid-template-columns: 1fr; gap: 0; }
}

/* Responsive */
@media (max-width: 980px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .step { padding-right: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; margin: 0 auto; min-height: 0; }
  .cta-inner { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product-reverse .product-media,
  .product-reverse .product-copy { order: initial; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-specs .spec { padding-right: 16px; margin-right: 16px; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--navy);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--line-dark);
    gap: 18px;
  }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
}
