/* Ecuadatum — paleta del logo: azul índigo + dorado */
:root {
  --navy: #1b2560;
  --navy-deep: #131a45;
  --navy-soft: #232f74;
  --blue: #2b3990;
  --blue-line: #3a49b0;
  --gold: #f2b705;
  --ink: #1a2038;
  --muted: #6a7190;
  --muted-dark: #3b4160;
  --lav: #b9c0e4;
  --lav-dim: #8d97d6;
  --bg-soft: #f6f7fb;
  --border: #e7e9f2;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ffc71f; }
.btn-outline { border: 1.5px solid #4a58b8; color: #fff; font-weight: 500; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--blue); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  color: var(--blue); font-size: 13px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase;
}
.eyebrow .tick { width: 34px; height: 2px; background: var(--gold); }
.eyebrow-light { color: var(--gold); }

/* ===== NAV ===== */
.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.nav-logo { height: 46px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; font-size: 15px; font-weight: 500; color: var(--muted-dark); }
.nav-links a:hover { color: var(--blue); }
.nav-cta { padding: 11px 22px; font-size: 14px; }

/* ===== HERO ===== */
.hero { position: relative; background: var(--navy); overflow: hidden; }
.hero-contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-contours path { fill: none; stroke: var(--blue-line); stroke-width: 1.5; }
.hero-contours path.gold { stroke: var(--gold); }
.hero-inner { position: relative; display: flex; align-items: center; gap: 56px; padding-top: 84px; padding-bottom: 92px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; flex: 1; }
.hero-text h1 { margin: 0; color: #fff; font-size: 52px; line-height: 1.08; font-weight: 700; letter-spacing: -0.5px; text-wrap: balance; }
.hero-text p { margin: 0; color: var(--lav); font-size: 18px; line-height: 1.6; max-width: 520px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.hero-card { width: 400px; flex: 0 0 auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 60px rgba(8, 12, 40, 0.45); }
.ndvi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; background: #10163a; padding: 2px; }
.ndvi-grid i { height: 52px; display: block; }
.hero-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; gap: 12px; }
.hero-card-foot strong { display: block; font-size: 14px; }
.hero-card-foot span { font-size: 12.5px; color: var(--muted); }
.pill { background: #eef0f9; color: var(--blue); font-size: 12px; font-weight: 600; font-style: normal; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* ===== STATS ===== */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.stats-grid div { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.stats-grid strong { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 30px; font-weight: 700; color: var(--blue); }
.stats-grid span { font-size: 13.5px; color: var(--muted); }

/* ===== SECCIONES ===== */
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; margin-bottom: 40px; }
.section-head h2, .project-text h2, .about-text h2 { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: -0.3px; }
.section-head p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.services { padding: 78px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border); border-radius: 8px; padding: 26px; transition: box-shadow .15s, border-color .15s; }
.service-card:hover { border-color: var(--blue-line); box-shadow: 0 10px 30px rgba(27, 37, 96, 0.08); }
.service-icon { color: var(--blue); }
.service-card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.service-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* ===== PROYECTO ===== */
.project { background: var(--navy); color: #fff; }
.project-inner { display: flex; align-items: center; gap: 56px; padding-top: 78px; padding-bottom: 78px; }
.project-text { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.project-text h2 { color: #fff; font-size: 34px; }
.project-text > p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--lav); }
.checklist { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; color: #e7eafd; font-size: 15px; }
.checklist svg { color: var(--gold); flex: 0 0 auto; }
.project-media { width: 440px; flex: 0 0 auto; }
.project-media img { border-radius: 8px; display: block; }
.media-placeholder { display: flex; align-items: center; justify-content: center; height: 300px; background: var(--navy-soft); border: 1.5px dashed #4a58b8; border-radius: 8px; color: var(--lav-dim); font-size: 14px; font-weight: 500; }

/* ===== NOSOTROS ===== */
.about-inner { display: flex; align-items: center; gap: 56px; padding-top: 78px; padding-bottom: 78px; }
.about-logo { display: flex; align-items: center; justify-content: center; width: 360px; height: 300px; flex: 0 0 auto; background: var(--bg-soft); border-radius: 8px; }
.about-logo img { width: 220px; }
.about-text { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.about-text p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.about-text strong { color: var(--ink); }

/* ===== CONTACTO ===== */
.contact { background: var(--gold); }
.contact-inner { display: flex; gap: 48px; padding-top: 56px; padding-bottom: 56px; align-items: flex-start; }
.contact-text { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.contact-text h2 { margin: 0; font-size: 30px; }
.contact-text p { margin: 0; font-size: 15.5px; color: #4d431a; }
.contact-data { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: 15px; font-weight: 500; }
.contact-form { flex: 1; display: flex; flex-direction: column; gap: 14px; background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 16px 40px rgba(77, 67, 26, 0.25); }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted-dark); flex: 1; }
.contact-form input, .contact-form textarea { font: inherit; padding: 11px 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg-soft); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue-line); background: #fff; }
.form-row { display: flex; gap: 14px; }
.flash { padding: 12px 14px; border-radius: 4px; font-size: 14px; }
.flash-success { background: #e8f5e9; color: #1b5e20; }
.flash-error { background: #fdecea; color: #b71c1c; }

/* ===== FOOTER ===== */
.footer { background: var(--navy-deep); color: var(--lav-dim); }
.footer .container { padding-top: 54px; padding-bottom: 30px; }
.footer-cols { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.footer-brand strong { font-family: 'Space Grotesk', system-ui, sans-serif; font-size: 20px; color: #fff; letter-spacing: 1px; }
.footer-brand span { font-size: 14px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col em { font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lav); }
.footer-col a:hover { color: var(--gold); }
.footer-base { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--navy-soft); padding-top: 20px; margin-top: 34px; font-size: 13px; color: #6a75b8; flex-wrap: wrap; }

/* ===== PROYECTOS ADICIONALES ===== */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 78px; }
.project-card { background: var(--navy-soft); border: 1px solid var(--blue-line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(8, 12, 40, 0.4); }
.project-card img { display: block; width: 100%; height: 170px; object-fit: cover; }
.project-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.project-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-card h3 { margin: 0; color: #fff; font-size: 17px; font-weight: 600; }
.project-card p { margin: 0; color: var(--lav); font-size: 14px; line-height: 1.6; }
.pill-dark { background: rgba(242, 183, 5, 0.15); color: var(--gold); }

/* ===== DINAMISMO (scroll reveal + detalles) ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-late { transition-delay: .15s; }
.services-grid .reveal:nth-child(2), .project-grid .reveal:nth-child(2) { transition-delay: .1s; }
.services-grid .reveal:nth-child(3), .project-grid .reveal:nth-child(3) { transition-delay: .2s; }
.services-grid .reveal:nth-child(5) { transition-delay: .1s; }
.services-grid .reveal:nth-child(6) { transition-delay: .2s; }
.nav { transition: box-shadow .25s; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(15, 20, 60, 0.1); }
.ndvi-grid i { animation: ndvi-pulse 6s ease-in-out infinite; }
.ndvi-grid i:nth-child(3n) { animation-delay: 1.4s; }
.ndvi-grid i:nth-child(3n+1) { animation-delay: 2.8s; }
.ndvi-grid i:nth-child(5n) { animation-delay: 4.2s; }
@keyframes ndvi-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.28); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ndvi-grid i { animation: none; }
  .project-card { transition: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner, .project-inner, .about-inner, .contact-inner { flex-direction: column; align-items: stretch; }
  .hero-card, .project-media, .about-logo { width: 100%; }
  .hero-text h1 { font-size: 38px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .services-grid, .project-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .hero-text h1 { font-size: 32px; }
  .section-head h2, .project-text h2, .about-text h2 { font-size: 28px; }
  .nav-cta { display: none; }
}
