*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0D2557;
  --navy-mid: #1a3a7a;
  --navy-light: #2a5298;
  --teal: #7ECFDA;
  --teal-light: #B2E4EB;
  --teal-dark: #4AAFBE;
  --latte: #C9A882;
  --latte-light: #E8D5BE;
  --latte-pale: #F5EDE0;
  --latte-dark: #9A7655;
  --white: #FFFFFF;
  --off-white: #FAF7F3;
  --gray: #8A93A6;
  --gray-light: #EDE8E1;
  --text: #1A2035;
  --error: #f87171;
  --success: #86efac;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(13,37,87,0.97);
  backdrop-filter: blur(12px);
  padding: 0 6vw;
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
  border-bottom: 1px solid rgba(201,168,130,0.25);
}

.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-logo-text { color: var(--white); }
.nav-logo-text span { display: block; }
.nav-logo-text .brand { font-size: 15px; font-weight: 500; letter-spacing: 1px; }
.nav-logo-text .tagline { font-size: 9px; color: var(--latte-light); letter-spacing: 2px; text-transform: uppercase; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75); text-decoration: none;
  font-size: 13px; letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--latte-light); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--latte);
  color: var(--latte-light);
  padding: 9px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--latte); color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(201,168,130,0.35);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--latte-light);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13,37,87,0.98);
  backdrop-filter: blur(12px);
  padding: 32px 6vw 48px;
  z-index: 99;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.nav-mobile.is-open { display: flex; }

.nav-mobile a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.5px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}

.nav-mobile a:hover { color: var(--latte-light); }

.nav-mobile .nav-cta {
  margin-top: 24px;
  text-align: center;
  display: block;
}

/* HERO */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center;
  padding: 70px 6vw 0;
  position: relative;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid-bg canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}

.hero-content { position: relative; max-width: 620px; }

.hero-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--latte); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.hero-label::before {
  content: ''; display: block;
  width: 30px; height: 1px; background: var(--latte);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.hero-title em {
  font-style: italic;
  color: var(--teal-light);
}

.hero-desc {
  font-size: 16px; line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin-bottom: 48px;
}

.hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.btn-primary {
  background: var(--latte);
  color: var(--navy);
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 0.8px;
  border: none; cursor: pointer;
  text-decoration: none; display: inline-block;
  transition: all 0.25s;
}
.btn-primary:hover { background: var(--latte-light); }

.btn-ghost {
  color: rgba(255,255,255,0.7);
  font-size: 13px; letter-spacing: 0.5px;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost::after {
  content: '→'; transition: transform 0.2s;
}
.btn-ghost:hover::after { transform: translateX(4px); }

.hero-stats {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(201,168,130,0.2);
  display: flex; gap: 48px;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; color: var(--white);
  font-weight: 300;
}
.stat-num span { color: var(--latte); }
.stat-label { font-size: 11px; color: var(--gray); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* SECTIONS GENERAL */
section { padding: 100px 6vw; }
.section-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 300; line-height: 1.2;
  color: var(--navy);
  margin-bottom: 48px;
}

/* MISIÓN / VISIÓN / PROPÓSITO */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--gray-light);
}

.about-card {
  background: var(--white);
  padding: 48px 44px;
}

.about-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px; color: var(--gray-light);
  font-weight: 300; line-height: 1;
  margin-bottom: 20px;
}

.about-card h3 {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 16px;
}

.about-card p {
  font-size: 15px; line-height: 1.8;
  color: var(--gray);
}

.about-card.dark {
  background: var(--navy);
}
.about-card.dark .about-card-num { color: rgba(255,255,255,0.06); }
.about-card.dark h3 { color: var(--teal-light); }
.about-card.dark p { color: rgba(255,255,255,0.6); }

/* VALORES */
.values { background: var(--white); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  padding: 36px 28px;
  border: 1px solid var(--gray-light);
  position: relative;
  transition: border-color 0.25s;
}
.value-card:hover { border-color: var(--teal); }

.value-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 40px;
  background: var(--teal);
}

.value-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400;
  color: var(--navy); margin-bottom: 14px;
}

.value-card p {
  font-size: 14px; line-height: 1.75;
  color: var(--gray);
}

/* SERVICIOS */
.services { background: var(--navy); }
.services .section-title { color: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.06);
}

.service-card {
  background: rgba(13,37,87,0.95);
  padding: 44px 40px;
  border: 1px solid rgba(126,207,218,0.1);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.service-card:hover {
  background: #F5EDE0;
  border-color: var(--latte);
  box-shadow: 0 8px 40px rgba(201,168,130,0.18);
}
.service-card:hover .service-icon {
  border-color: var(--latte);
  color: var(--latte-dark);
}
.service-card:hover h3 {
  color: var(--latte-dark);
}
.service-card:hover ul li {
  color: var(--navy);
  border-bottom-color: rgba(13,37,87,0.1);
}
.service-card:hover ul li::before {
  color: var(--latte-dark);
}

.service-icon {
  width: 52px; height: 52px;
  border: 1px solid rgba(126,207,218,0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--teal);
  transition: border-color 0.35s, color 0.35s;
}

.service-card h3 {
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 20px;
  transition: color 0.35s;
}

.service-card ul {
  list-style: none;
}
.service-card ul li {
  font-size: 14px; color: rgba(255,255,255,0.6);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-left: 0;
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5;
  transition: color 0.35s, border-bottom-color 0.35s;
}
.li-icon {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
  transition: color 0.35s;
}
.service-card:hover .li-icon { color: var(--latte-dark); }

/* PROPUESTA DE VALOR */
.value-prop { background: var(--off-white); }

.stages {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 760px;
}

.stages::before {
  content: '';
  position: absolute; left: 28px; top: 56px; bottom: 56px;
  width: 1px; background: linear-gradient(to bottom, var(--teal), transparent);
}

.stage {
  display: flex; gap: 40px; align-items: flex-start;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-light);
}

.stage-num {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: var(--teal);
  position: relative; z-index: 1;
}

.stage-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 400;
  color: var(--navy); margin-bottom: 8px;
}

.stage-content p {
  font-size: 14px; color: var(--gray); line-height: 1.7;
}

.stage-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); background: rgba(46,184,200,0.08);
  padding: 4px 12px; margin-bottom: 10px;
}

/* CONTACTO */
.contact { background: var(--navy); }
.contact .section-title { color: var(--white); }

.contact-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}

.contact-info p {
  font-size: 16px; line-height: 1.8;
  color: rgba(255,255,255,0.55);
  margin-bottom: 48px;
}

.contact-items { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
  display: flex; align-items: center; gap: 16px;
}

.contact-item-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(46,184,200,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal); font-size: 16px;
  flex-shrink: 0;
}

.contact-item-text .label {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); margin-bottom: 4px;
}
.contact-item-text .value {
  font-size: 14px; color: rgba(255,255,255,0.8);
}
.contact-item-text a {
  color: var(--teal-light); text-decoration: none;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--teal); }
.form-group input.is-invalid,
.form-group textarea.is-invalid,
.form-group select.is-invalid { border-color: var(--error); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--navy); }

.form-error {
  font-size: 12px;
  color: var(--error);
  min-height: 0;
  display: none;
}
.form-error.is-visible { display: block; }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-alert {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}
.form-alert.is-visible { display: block; }
.form-alert--success {
  background: rgba(134,239,172,0.12);
  border: 1px solid rgba(134,239,172,0.35);
  color: var(--success);
}
.form-alert--error {
  background: rgba(248,113,113,0.12);
  border: 1px solid rgba(248,113,113,0.35);
  color: var(--error);
}

.form-privacy {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,0.35);
}

.form-submit {
  background: var(--teal);
  color: var(--navy);
  border: none;
  padding: 15px 36px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500; letter-spacing: 1px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.25s, opacity 0.25s;
  margin-top: 8px;
}
.form-submit:hover:not(:disabled) { background: var(--teal-light); }
.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* FOOTER */
footer {
  background: #08183A;
  padding: 40px 6vw;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(46,184,200,0.15);
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: var(--white);
  font-weight: 300; letter-spacing: 2px;
}
.footer-logo span { color: var(--teal); }

.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.3);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-label { animation: fadeUp 0.6s ease both; }
.hero-title { animation: fadeUp 0.6s 0.1s ease both; }
.hero-desc { animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions { animation: fadeUp 0.6s 0.3s ease both; }
.hero-stats { animation: fadeUp 0.6s 0.4s ease both; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-grid, .services-grid, .contact-layout, .values-grid, .form-row {
    grid-template-columns: 1fr;
  }

  .nav-right .nav-links,
  .nav-right .nav-cta { display: none; }

  .nav-toggle { display: flex; }

  .hero-stats { gap: 28px; flex-wrap: wrap; }

  .stage { gap: 24px; }
  .stages::before { left: 28px; }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  nav { padding: 0 5vw; }
  section { padding: 72px 5vw; }
  .hero { padding: 70px 5vw 0; }
  .nav-logo img { height: 36px; }
  .nav-logo-text .brand { font-size: 13px; }
  .nav-logo-text .tagline { font-size: 8px; letter-spacing: 1.5px; }
  .about-card { padding: 36px 28px; }
  .service-card { padding: 32px 24px; }
}
