/* =====================================================
   E8 — Economía Personal
   Stylesheet
   ===================================================== */

:root {
  /* Colores */
  --bg: #FBF8F2;
  --bg-alt: #F4EFE4;
  --surface: #FFFFFF;
  --ink: #0E1B3D;
  --ink-soft: #2C375C;
  --muted: #6A7390;
  --line: #E5E0D2;
  --accent: #E89B47;
  --accent-deep: #C97F2B;
  --accent-soft: #FBE8CC;
  --success: #4F7B5C;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 3vw, 2rem);
  --radius: 16px;
  --radius-lg: 24px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(14,27,61,.06), 0 2px 8px rgba(14,27,61,.04);
  --shadow-md: 0 8px 24px rgba(14,27,61,.08);
  --shadow-lg: 0 24px 60px rgba(14,27,61,.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-soft); }

em { font-style: italic; color: var(--accent-deep); }

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

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-title { margin-bottom: .6rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
}

.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }

/* =====================================================
   Header
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,248,242,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand-text {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.primary-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.primary-nav a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: .5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--accent-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =====================================================
   Hero
   ===================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy h1 {
  margin-top: .25rem;
}
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: .92rem;
  color: var(--muted);
}
.hero-strip strong { color: var(--ink); display: block; font-weight: 600; }

/* Hero visual cards */
.hero-visual {
  position: relative;
  height: 460px;
  min-height: 380px;
}

.hero-blob {
  position: absolute;
  inset: 10% 5% 5% 10%;
  border-radius: 30% 70% 50% 50% / 50% 50% 70% 30%;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 60%);
  filter: blur(2px);
  z-index: 0;
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob {
  0% { border-radius: 30% 70% 50% 50% / 50% 50% 70% 30%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.hero-card-1 {
  top: 8%; left: 0;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-card-1 span { font-size: .82rem; color: var(--muted); display: block; }
.hero-card-1 strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); }
.hero-card-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(79,123,92,.15);
}

.hero-card-2 {
  top: 38%; right: 0;
  width: 230px;
}
.hero-card-2 small { color: var(--muted); font-size: .78rem; }
.hero-card-bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 4px;
  margin-bottom: .55rem;
  overflow: hidden;
}
.hero-card-bar span {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 4px;
  animation: fillBar 1.5s ease-out;
}
@keyframes fillBar {
  from { width: 0; }
}

.hero-card-3 {
  bottom: 4%; left: 12%;
  max-width: 220px;
}
.hero-card-3 p {
  margin: .4rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}
.hero-card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: .25rem .55rem;
  border-radius: 999px;
}

/* =====================================================
   Problem
   ===================================================== */
.problem { background: var(--bg-alt); }
.problem .section-title { text-align: center; margin-bottom: 3rem; }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.problem-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.problem-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.problem-item span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-deep);
  display: block;
  margin-bottom: .8rem;
}
.problem-item p { margin: 0; color: var(--ink); font-size: .98rem; }

.problem-foot {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0;
}
.problem-foot strong { color: var(--accent-deep); font-weight: 600; }

/* =====================================================
   Proposal
   ===================================================== */
.proposal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.proposal-intro h2 { margin-bottom: 1rem; }

.acronym {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem;
}
.acronym span {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: .45rem .85rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ink);
}

.proposal-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 10px;
  margin-bottom: .9rem;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: .35rem; }
.pillar p { margin: 0; font-size: .95rem; }

/* =====================================================
   Services
   ===================================================== */
.services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service--featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.service--featured h3,
.service--featured p,
.service--featured .service-tag,
.service--featured .service-features li,
.service--featured .service-link {
  color: #fff;
}
.service--featured .service-num {
  color: var(--accent);
}
.service--featured .service-link {
  border-bottom-color: var(--accent);
}

.service-num {
  font-family: var(--font-display);
  font-size: .9rem;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: .12em;
  margin-bottom: .8rem;
}

.service-badge {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--accent);
  color: var(--ink);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 999px;
}

.service h3 { margin-bottom: .35rem; }

.service-tag {
  font-size: .85rem;
  font-weight: 500;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  flex-grow: 1;
}
.service-features li {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  padding-left: 1.2rem;
  position: relative;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-link {
  margin-top: auto;
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 1.5px solid var(--ink);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.service-link:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent-deep);
}

/* =====================================================
   Las 8 E (mapping a las 3 etapas)
   ===================================================== */
.eight-es {
  background: var(--bg);
  position: relative;
}

.proposal-tease {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: .95rem;
  color: var(--ink-soft);
}
.proposal-tease strong { color: var(--ink); font-weight: 600; }
.proposal-tease a {
  color: var(--accent-deep);
  font-weight: 600;
  white-space: nowrap;
}
.proposal-tease a:hover { text-decoration: underline; }

.es-mapping {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.es-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.es-stage {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.es-stage:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.es-stage-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.2rem;
}
.es-stage-num {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--accent);
  border-radius: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.es-stage-tag {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.es-stage-title {
  font-size: 1.25rem;
  margin-bottom: .4rem;
}
.es-stage-desc {
  margin: 0 0 1.25rem;
  font-size: .95rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.es-stage-desc em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-deep);
}

.es-pills {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.es-pill {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  display: inline-block;
}
.es-pill-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-soft);
}

/* Conectores convergentes (SVG curvas que bajan al resultado) */
.es-converge {
  display: block;
  width: 100%;
  height: 70px;
  color: var(--accent);
  margin: -4px 0 -4px;
}

/* Banda de resultado */
.es-result {
  position: relative;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.25rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.es-result-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(232,155,71,.22), transparent 70%);
}
.es-result-glow-1 {
  width: 280px; height: 280px;
  top: -100px; right: -60px;
}
.es-result-glow-2 {
  width: 220px; height: 220px;
  bottom: -100px; left: -40px;
}
.es-result-content { position: relative; z-index: 1; }
.es-result-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.es-result-title {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1.2rem;
}
.es-result-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}

/* =====================================================
   Method (steps)
   ===================================================== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform .25s ease;
}
.step:hover { transform: translateY(-4px); }

.step-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--accent);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: .5rem; }
.step p { margin: 0; font-size: .95rem; }

/* =====================================================
   About
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.founders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.founder {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease;
}
.founder:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.founder-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.founder h4 { margin: 0 0 .1em; }
.founder p { margin: 0; font-size: .88rem; color: var(--muted); }

/* =====================================================
   CTA Band
   ===================================================== */
.cta-band {
  background: var(--ink);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(232,155,71,.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(232,155,71,.1), transparent 45%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-band .btn-primary { background: var(--accent); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }

/* =====================================================
   Contact
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink-soft);
  font-size: .95rem;
}
.contact-info svg { width: 20px; height: 20px; color: var(--accent-deep); flex-shrink: 0; }
.contact-info a { color: var(--ink); font-weight: 500; }
.contact-info a:hover { color: var(--accent-deep); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.field {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
}
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .4rem;
}
.field label span {
  color: var(--muted);
  font-weight: 400;
  font-size: .8rem;
}
.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: .85rem 1rem;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form .btn { width: 100%; justify-content: center; margin-top: .5rem; }

.form-note {
  margin-top: 1rem;
  padding: .9rem 1rem;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent-deep);
  border-radius: 10px;
  font-weight: 500;
  font-size: .95rem;
  text-align: center;
}

/* =====================================================
   Footer
   ===================================================== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.8);
  padding: 3rem 0 2rem;
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-grid p { color: rgba(255,255,255,.65); margin: .8rem 0 0; }
.brand-mark--footer {
  background: var(--accent);
  color: var(--ink);
}
.site-footer nav {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.site-footer nav a {
  color: rgba(255,255,255,.78);
  transition: color .2s;
}
.site-footer nav a:hover { color: var(--accent); }
.footer-meta { text-align: right; color: rgba(255,255,255,.55); font-size: .85rem; }

/* =====================================================
   Reveal animation
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .proposal-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual { height: 380px; margin-top: 2rem; }
  .services-grid,
  .steps,
  .es-stages {
    grid-template-columns: 1fr;
  }
  .es-converge { display: none; }
  .es-result { margin-top: 1.25rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .footer-meta { text-align: left; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.5rem var(--gutter);
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 40;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav a {
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .primary-nav a:last-child { border-bottom: none; }
  .nav-cta { text-align: center; margin-top: .5rem; }

  .field-row { grid-template-columns: 1fr; }

  .brand-text { display: none; }

  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
