:root {
  --navy: #0b2a5b;
  --navy-dark: #061a3a;
  --blue: #1565c0;
  --cyan: #1fb6e8;
  --cyan-light: #7fdcff;
  --gray: #5b6576;
  --light: #f4f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 42, 91, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}
h1, h2, h3 { font-family: "Montserrat", sans-serif; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.accent { color: var(--cyan); }

/* Botones */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(31, 182, 232, 0.30);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 182, 232, 0.45); }
.btn--small { padding: 10px 20px; font-size: .9rem; }
.btn--ghost { background: transparent; border: 2px solid rgba(255,255,255,.5); box-shadow: none; }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: none; }
.btn--light { background: var(--white); color: var(--navy); box-shadow: none; }

/* Navegación */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(11,42,91,.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand img { height: 56px; width: auto; mix-blend-mode: multiply; }
.nav__links { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--cyan); }
.nav__toggle { display: none; background: none; border: none; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 3px; margin: 5px 0; background: var(--navy); border-radius: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: radial-gradient(ellipse at 75% 30%, #12428a 0%, var(--navy) 45%, var(--navy-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 80px;
}
#network { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero__content { position: relative; max-width: 760px; }
.badge {
  display: inline-block; font-size: .85rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(31,182,232,.15); color: var(--cyan-light);
  border: 1px solid rgba(31,182,232,.35); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; margin-bottom: 20px; }
.hero__lead { font-size: 1.15rem; color: #c9d8ee; max-width: 620px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; }
.hero__stats strong { display: block; font-family: "Montserrat"; font-size: 1.8rem; color: var(--cyan); }
.hero__stats span { font-size: .9rem; color: #a9bddb; }

/* Secciones */
.section { padding: 100px 0; }
.section--alt { background: var(--light); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__head p { color: var(--gray); margin-top: 12px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 10px;
}
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split p { color: var(--gray); margin-top: 16px; }

.checks { list-style: none; margin-top: 24px; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; font-weight: 500; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--cyan); color: var(--white);
  font-size: .75rem; display: grid; place-items: center;
}

.values { display: grid; gap: 18px; }
.value {
  background: var(--white); padding: 26px 28px; border-radius: var(--radius);
  box-shadow: var(--shadow); border-left: 4px solid var(--cyan);
}
.value p { margin-top: 6px; }

/* Servicios */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,42,91,.16); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: grid; place-items: center;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--cyan-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: .95rem; }

/* ERP Petrolero */
.erp {
  padding: 100px 0;
  background: radial-gradient(ellipse at 15% 20%, #12428a 0%, var(--navy) 50%, var(--navy-dark) 100%);
  color: var(--white);
}
.erp .split { align-items: start; }
.erp p { color: #c9d8ee; }
.erp .btn { margin-top: 28px; }
.erp__features { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.erp__features li {
  background: rgba(255,255,255,.06); border: 1px solid rgba(31,182,232,.25);
  border-radius: var(--radius); padding: 20px;
}
.erp__features h3 { font-size: 1rem; color: var(--cyan-light); }
.erp__features p { font-size: .9rem; margin-top: 6px; }
@media (max-width: 720px) { .erp__features { grid-template-columns: 1fr; } .erp { padding: 70px 0; } }

/* Plataforma SRI */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.module {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px;
  box-shadow: var(--shadow); transition: transform .25s;
}
.module:hover { transform: translateY(-6px); }
.module__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; }
.module__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.module__icon--blue { background: #2563eb; }
.module__icon--green { background: #1e8a3e; }
.module__icon--purple { background: #7c3aed; }
.module__icon--orange { background: #d4650f; }
.module h3 { font-size: 1.15rem; margin-bottom: 8px; }
.module p { color: var(--gray); font-size: .95rem; }
.center { text-align: center; margin-top: 44px; }
@media (max-width: 960px) { .modules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .modules { grid-template-columns: 1fr; } }

/* Proceso */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { padding: 28px 24px; border-radius: var(--radius); border: 1px solid #dde6f2; position: relative; }
.steps span { font-family: "Montserrat"; font-weight: 800; font-size: 2.2rem; color: var(--cyan); opacity: .9; }
.steps h3 { margin: 8px 0 6px; }
.steps p { color: var(--gray); font-size: .95rem; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 60%, var(--cyan) 100%); color: var(--white); padding: 70px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta p { color: #d7e7fb; margin-top: 8px; }

/* Contacto */
.contact { list-style: none; margin-top: 24px; }
.contact li { margin-bottom: 10px; color: var(--gray); overflow-wrap: anywhere; }
.split > * { min-width: 0; }
.contact strong { color: var(--navy); }
.contact a { color: var(--blue); }
.form { background: var(--light); padding: 36px; border-radius: var(--radius); display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.form input, .form textarea {
  font: inherit; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #cfdbea; background: var(--white); resize: vertical;
  width: 100%; min-width: 0;
}
@media (max-width: 420px) { .form { padding: 22px; } }
.form input:focus, .form textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.form__ok { color: #0f8a5f; font-weight: 600; }
.form__error { color: #c62828; font-weight: 600; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form { position: relative; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* Footer */
.footer { background: var(--navy-dark); color: #a9bddb; padding: 30px 0; font-size: .9rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer strong { color: var(--white); font-family: "Montserrat"; margin-right: 10px; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 1024px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 18px; padding: 24px;
    background: var(--white); box-shadow: 0 10px 20px rgba(0,0,0,.08);
    display: none;
  }
  .nav__links.open { display: flex; }
}
@media (max-width: 720px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero__stats { gap: 24px; }
}
