:root {
  --primary: #0d62bd;
  --primary-dark: #0a4f99;
  --secondary: #7e8087;
  --graphite: #3e434a;
  --accent: #a3c835;
  --text: #1e2a39;
  --muted: #627386;
  --line: #dde6ef;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --surface-alt: #eef4f8;
  --shadow-sm: 0 18px 36px rgba(18, 38, 63, 0.06);
  --shadow-md: 0 28px 60px rgba(18, 38, 63, 0.10);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
  --container: min(1220px, calc(100vw - 48px));
  --header-h: 90px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(13,98,189,0.05), transparent 24%),
    linear-gradient(180deg, #fcfdff 0%, #f7f9fb 100%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 999;
}

.container { width: var(--container); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221,230,239,0.85);
}

.header-shell {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.brand img { width: 240px; height: auto; }

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

.site-nav a,
.footer-links a,
.contact-details a {
  position: relative;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color .25s ease;
}

.site-nav a::after,
.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .28s ease;
}

.site-nav a:hover,
.footer-links a:hover,
.contact-details a:hover { color: var(--primary); }
.site-nav a:hover::after,
.footer-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--graphite);
  border-radius: 999px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background .28s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #2e79cb);
  box-shadow: 0 18px 38px rgba(13,98,189,0.18);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), #1f6bbc); }
.btn-secondary {
  color: var(--graphite);
  background: rgba(255,255,255,0.96);
  border-color: var(--line);
  box-shadow: 0 14px 28px rgba(18, 38, 63, 0.05);
}

.hero {
  padding: 64px 0 90px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 20%, rgba(163,200,53,0.12), transparent 18%),
    radial-gradient(circle at 10% 10%, rgba(13,98,189,0.07), transparent 24%);
}

.hero-grid,
.split-shell,
.contact-shell,
.aspel-grid,
.section-head,
.footer-shell,
.intro-shell {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: start;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #d2ec76);
  box-shadow: 0 0 0 6px rgba(163,200,53,0.15);
}

.hero-copy h1,
.section-head h2,
.intro-shell h2,
.split-copy h2,
.contact-copy h2 {
  margin: 14px 0 16px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-copy h1 {
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  max-width: 12ch;
  font-weight: 600;
}
.section-head h2,
.intro-shell h2,
.split-copy h2,
.contact-copy h2 {
  font-size: clamp(1.7rem, 2.7vw, 2.45rem);
  max-width: 16ch;
  font-weight: 500;
}

.hero-lead,
.section-head p,
.service-content p,
.split-copy p,
.contact-copy p,
.intro-shell p,
.model-card p,
.module-card p,
.point-card p {
  color: var(--muted);
  line-height: 1.82;
}
.hero-lead { max-width: 62ch; }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 30px 0 30px;
}

.point-card,
.model-card,
.module-card,
.contact-card,
.intro-shell,
.service-row,
.aspel-panel {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,253,0.96));
  box-shadow: var(--shadow-sm);
}

.hero-highlights {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.highlight-row {
  position: relative;
  padding-left: 22px;
}

.highlight-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #d2ec76);
  box-shadow: 0 0 0 5px rgba(163,200,53,0.14);
}

.highlight-row strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--graphite);
}

.highlight-row span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.hero-media { display: grid; gap: 18px; align-content: start; }
.image-frame {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(13,98,189,0.10);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-hero { aspect-ratio: 4 / 3; min-height: 460px; }
.tall-image { aspect-ratio: 4 / 3; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.point-card {
  padding: 20px 22px;
}
.point-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.point-card p { margin: 0; }

.section { padding: 110px 0; }
.section-soft {
  background: linear-gradient(180deg, rgba(238,244,248,0.72), rgba(255,255,255,0.9));
}

.intro-strip { padding-top: 0; }
.intro-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 40px 44px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: end;
  margin-bottom: 44px;
}
.section-head p { margin: 0; max-width: 60ch; }

.service-layout {
  display: grid;
  gap: 22px;
}
.service-row {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 34px;
  padding: 38px 40px;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.service-row:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13,98,189,0.16);
}
.service-highlight { border-color: rgba(13,98,189,0.22); }
.service-aside {
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--primary-dark);
  background: rgba(13,98,189,0.08);
  border: 1px solid rgba(13,98,189,0.12);
  font-weight: 800;
}
.service-aside h3,
.aspel-panel h3,
.model-card h3 {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.feature-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.feature-list-tight { gap: 10px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  line-height: 1.68;
}
.feature-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.48rem;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #d2ec76);
  flex: 0 0 10px;
  box-shadow: 0 0 0 5px rgba(163,200,53,0.12);
}

.split-shell {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 58px;
  align-items: center;
}
.split-reverse { grid-template-columns: 1.04fr 0.96fr; }

.aspel-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: stretch;
}
.aspel-panel { padding: 36px 38px; }
.aspel-visual { display: block; }

.aspel-modules,
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.model-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.module-card,
.model-card { padding: 24px 24px 22px; }
.module-card span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(13,98,189,0.08);
  border: 1px solid rgba(13,98,189,0.12);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.module-card p,
.model-card p { margin: 14px 0 0; }

.contact-section {
  background: linear-gradient(180deg, rgba(13,98,189,0.03), rgba(255,255,255,0.98));
}
.contact-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: start;
}
.contact-details {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.contact-details small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.contact-details strong {
  font-size: 1.02rem;
  line-height: 1.5;
}
.contact-card { padding: 34px; }
.contact-form { display: grid; gap: 18px; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.contact-form label { display: grid; gap: 8px; }
.contact-form span {
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #cfd9e3;
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .26s ease, transform .26s ease, box-shadow .26s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(13,98,189,0.42);
  box-shadow: 0 0 0 4px rgba(13,98,189,0.08);
  transform: translateY(-1px);
}
.contact-form textarea { min-height: 156px; resize: vertical; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(37,211,102,0.28);
}

.site-footer {
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand img { width: 210px; }
.footer-copy p { margin: 0 0 4px; font-weight: 600; }
.footer-copy small { color: var(--muted); line-height: 1.7; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .85s ease, transform .85s ease;
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .10s; }
.delay-2 { transition-delay: .18s; }
.delay-3 { transition-delay: .26s; }

@media (max-width: 1140px) {
  .hero-grid,
  .intro-shell,
  .section-head,
  .split-shell,
  .aspel-grid,
  .contact-shell,
  .footer-shell {
    grid-template-columns: 1fr;
  }
  .aspel-modules,
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { justify-content: flex-start; }
  .hero-copy h1,
  .section-head h2,
  .intro-shell h2,
  .split-copy h2,
  .contact-copy h2 { max-width: none; }
}

@media (max-width: 920px) {
  .header-shell { grid-template-columns: auto auto; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 8px 0 4px;
  }
  .site-nav.open { display: flex; }
  .header-cta { display: none; }
  .hero { padding-top: 34px; }
  .field-grid,
  .aspel-modules,
  .model-grid { grid-template-columns: 1fr; }
  .hero-media-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 24px; }
  .service-aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 18px;
  }
}

@media (max-width: 640px) {
  :root { --container: min(1220px, calc(100vw - 26px)); }
  .brand img,
  .footer-brand img { width: 180px; }
  .hero-copy h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .section-head h2,
  .intro-shell h2,
  .split-copy h2,
  .contact-copy h2 { font-size: clamp(1.65rem, 7vw, 2.1rem); }
  .image-hero { min-height: 320px; }
  .section { padding: 84px 0; }
  .intro-shell,
  .service-row,
  .aspel-panel,
  .model-card,
  .module-card,
  .contact-card { padding-left: 20px; padding-right: 20px; }
  .site-footer { padding-bottom: 28px; }
  .whatsapp-float { right: 14px; bottom: 14px; padding: 0 16px; }
}


.hero-secondary-image {
  aspect-ratio: 16 / 10;
  min-height: 190px;
}

.contact-shell.form-only {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.contact-shell.form-only .contact-copy {
  max-width: 520px;
}

.contact-shell.form-only .contact-card {
  max-width: 780px;
  width: 100%;
  justify-self: end;
}

.form-actions .btn-primary {
  min-width: 210px;
}


/* Diagram visuals: keep full margins and avoid cropping */
#desarrollo .split-visual .image-frame,
.aspel-visual .image-frame {
  background: linear-gradient(180deg, #f8fafc, #f3f6fa);
  padding: 16px;
}

#desarrollo .split-visual .image-frame img,
.aspel-visual .image-frame img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

#desarrollo .tall-image,
#aspel .tall-image {
  aspect-ratio: 4 / 3;
}

.service-aside {
  backface-visibility: hidden;
  transform: translateZ(0);
}


.hero-solution-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-solution-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(249,251,253,0.96));
  box-shadow: var(--shadow-sm);
}

.hero-solution-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(13,98,189,0.08);
  border: 1px solid rgba(13,98,189,0.12);
  font-size: 1.15rem;
}

.hero-solution-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--graphite);
}

.hero-solution-card span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-solution-icon svg { width: 22px; height: 22px; display: block; }


.hero-media {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-primary-image {
  min-height: 420px;
}

.hero-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-media-card {
  overflow: hidden;
}

.hero-media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media-caption {
  padding: 14px 16px 16px;
}

.hero-media-caption strong {
  display: block;
  margin-bottom: 5px;
  color: var(--graphite);
  font-size: 0.96rem;
  font-weight: 700;
}

.hero-media-caption span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hero-solution-cards,
.hero-solution-card {
  display: none;
}
