:root {
  --navy-900: #081422;
  --navy-800: #0B1B2E;
  --navy-700: #142A44;
  --navy-600: #1E3A5A;
  --silver: #C9CFD8;
  --silver-light: #EDEFF2;
  --silver-dim: #8A93A0;
  --line: rgba(201, 207, 216, 0.16);
  --radius: 14px;
  --maxw: 1180px;
  font-size: 16px;
}

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

body {
  margin: 0;
  background: var(--navy-800);
  color: var(--silver-light);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--silver-light);
  margin: 0 0 16px;
}

a { color: inherit; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--silver-dim);
  margin-bottom: 10px;
  display: block;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(8, 20, 34, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.nav .logo-mark { height: 70px; width: auto; border-radius: 50%; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  color: var(--silver);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--silver-light); }
.nav-cta {
  display: inline-block;
  padding: 11px 22px;
  border: 1px solid var(--silver);
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--silver-light);
  white-space: nowrap;
}
.nav-panel { display: flex; align-items: center; gap: 32px; }

.nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--silver-light);
  transition: transform 0.2s, opacity 0.2s, top 0.2s;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--silver); color: var(--navy-900); font-weight: 600; }
.btn-primary:hover { background: var(--silver-light); }
.btn-secondary { background: transparent; color: var(--silver-light); border-color: var(--silver); }
.btn-secondary:hover { background: rgba(201,207,216,0.08); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* HERO */
.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  padding-top: 88px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(8,20,34,0.55) 0%, rgba(8,20,34,0.88) 78%, var(--navy-800) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="1600" height="1000" viewBox="0 0 1600 1000"><rect width="1600" height="1000" fill="%230B1B2E"/><g fill="none" stroke="%23142A44" stroke-width="2"><rect x="120" y="520" width="420" height="380"/><rect x="180" y="600" width="90" height="120"/><rect x="320" y="600" width="90" height="120"/><rect x="460" y="600" width="60" height="120"/><polygon points="120,520 330,380 540,520"/><rect x="700" y="420" width="260" height="480"/><rect x="740" y="480" width="60" height="80"/><rect x="860" y="480" width="60" height="80"/><rect x="740" y="600" width="60" height="80"/><rect x="860" y="600" width="60" height="80"/><rect x="1050" y="300" width="360" height="600"/><rect x="1090" y="360" width="50" height="70"/><rect x="1170" y="360" width="50" height="70"/><rect x="1250" y="360" width="50" height="70"/><rect x="1330" y="360" width="50" height="70"/><rect x="1090" y="460" width="50" height="70"/><rect x="1170" y="460" width="50" height="70"/><rect x="1250" y="460" width="50" height="70"/><rect x="1330" y="460" width="50" height="70"/></g></svg>');
  background-size: cover;
  background-position: center bottom;
}
.hero-watermark {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  width: 560px;
  max-width: 46vw;
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--silver);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* SECTION generic */
.section { padding: 72px 0; }
.section-alt { background: var(--navy-900); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--silver); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* PILARES */
.pilares-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.pilar-card {
  flex: 1 1 230px;
  max-width: 268px;
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.pilar-card .icon {
  width: 48px; height: 48px;
  border: 1px solid var(--silver);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--silver-light);
  flex-shrink: 0;
}
.pilar-card .icon svg { width: 22px; height: 22px; }
.pilar-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-family: Georgia, serif; line-height: 1.3; }
.pilar-card p { color: var(--silver); font-size: 0.92rem; margin: 0; text-align: justify; hyphens: auto; }

/* MISION Y VISION */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.mv-card {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.mv-card .mv-label {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  color: var(--silver-light);
  margin-bottom: 14px;
}
.mv-card p { color: var(--silver); font-size: 0.95rem; margin: 0; text-align: justify; hyphens: auto; }

/* PROCESO */
.proceso-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  counter-reset: paso;
}
.paso-card {
  flex: 1 1 260px;
  max-width: 270px;
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(201,207,216,0.04), transparent);
}
.paso-card .icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.paso-card .icon {
  width: 48px; height: 48px;
  border: 1px solid var(--silver);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--silver-light);
  flex-shrink: 0;
}
.paso-card .icon svg { width: 22px; height: 22px; }
.paso-card .num {
  font-family: Georgia, serif;
  font-size: 1.4rem;
  color: var(--silver-dim);
}
.paso-card h3 { font-size: 1.02rem; margin-bottom: 8px; line-height: 1.3; }
.paso-card p { color: var(--silver); font-size: 0.9rem; margin: 0; text-align: justify; hyphens: auto; }
.proceso-cta { text-align: center; margin-top: 44px; }

/* FORM SECTION LAUNCHER */
.form-launcher {
  border-radius: var(--radius);
  background: var(--navy-700);
  border: 1px solid var(--line);
  padding: 64px 40px;
  text-align: center;
}
.form-launcher h2 { margin-bottom: 14px; }
.form-launcher p { color: var(--silver); max-width: 520px; margin: 0 auto 32px; }

/* MULTISTEP OVERLAY */
.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--navy-900);
  display: none;
  flex-direction: column;
}
.form-overlay.active { display: flex; }
.form-overlay-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.form-close {
  background: none; border: none; color: var(--silver-light);
  font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 4px 8px;
}
.progress-track {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 16.6%;
  background: var(--silver);
  transition: width 0.35s ease;
}
.progress-label { font-size: 0.8rem; color: var(--silver-dim); white-space: nowrap; }

.form-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  overflow-y: auto;
}
.step {
  display: none;
  width: 100%;
  max-width: 620px;
  text-align: center;
  animation: stepIn 0.35s ease;
}
.step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.step h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 12px; }
.step .step-sub { color: var(--silver); margin-bottom: 36px; }

.text-field {
  width: 100%;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid var(--silver-dim);
  background: var(--navy-800);
  color: var(--silver-light);
  font-size: 1.05rem;
  text-align: center;
  outline: none;
}
.text-field:focus { border-color: var(--silver); }
.field-label {
  display: block;
  text-align: left;
  font-size: 0.85rem;
  color: var(--silver-dim);
  margin: 20px 0 8px;
}
.field-error { color: #E08A8A; font-size: 0.85rem; margin-top: 10px; min-height: 18px; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}
.choice-card {
  border: 1px solid var(--silver-dim);
  border-radius: var(--radius);
  background: var(--navy-800);
  padding: 26px 16px;
  cursor: pointer;
  color: var(--silver-light);
  font-size: 1rem;
  transition: border-color 0.15s, background 0.15s;
}
.choice-card:hover { border-color: var(--silver); }
.choice-card.selected { border-color: var(--silver); background: var(--navy-700); box-shadow: inset 0 0 0 1px var(--silver); }

.dropzone {
  border: 1.5px dashed var(--silver-dim);
  border-radius: var(--radius);
  padding: 44px 20px;
  cursor: pointer;
  color: var(--silver);
  margin-bottom: 16px;
}
.dropzone.drag { border-color: var(--silver); background: rgba(201,207,216,0.06); }
.dropzone input { display: none; }
.file-list { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.file-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px;
  font-size: 0.85rem; color: var(--silver);
}
.file-list button { background: none; border: none; color: var(--silver-dim); cursor: pointer; font-size: 1rem; }

.step-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.step-back {
  background: none; border: none; color: var(--silver-dim);
  font-size: 0.9rem; cursor: pointer; margin-top: 18px;
}
.honeypot { position: absolute; left: -9999px; }

.success-step { display: none; }
.success-step.active { display: block; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  border-radius: 50%; border: 1px solid var(--silver);
  display: flex; align-items: center; justify-content: center;
}

/* FOOTER */
.footer { background: var(--navy-900); border-top: 1px solid var(--line); padding: 72px 0 32px; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 64px;
  margin-bottom: 56px;
  text-align: center;
}
.footer-brand, .footer-office { display: flex; flex-direction: column; align-items: center; max-width: 320px; }
.footer-brand .logo-mark { height: 109px; margin: 0 auto 18px; border-radius: 50%; }
.footer-brand p { color: var(--silver-dim); font-size: 0.9rem; max-width: 280px; }
.footer-office h3 { font-size: 0.95rem; color: var(--silver-light); margin-bottom: 8px; font-family: inherit; text-transform: uppercase; letter-spacing: 1px; }
.footer-office p { color: var(--silver-dim); font-size: 0.88rem; margin: 0 0 6px; }
.footer-office a { color: var(--silver); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; color: var(--silver-dim);
}

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  z-index: 400;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  text-decoration: none;
}
.wa-float svg { width: 28px; height: 28px; }

/* MOBILE CTA BAR */
.mobile-cta-bar { display: none; }

@media (max-width: 860px) {
  .nav-panel {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; gap: 18px; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }

  .hero { min-height: 88vh; }
  .hero-watermark { display: none; }
  .hero p.lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }

  .form-launcher { padding: 44px 24px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .section { padding: 44px 0; }
  .pilar-card, .paso-card { padding: 24px 20px; }
  .choice-grid { grid-template-columns: 1fr; }
  .proceso-cta .btn, .form-launcher .btn { width: 100%; }

  .mobile-cta-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 450;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, transparent, var(--navy-900) 35%);
  }
  body { padding-bottom: 78px; }
  .wa-float { bottom: 92px; }
}
