/* ── FORGE.CSS — uniflow.cl/forge ── */

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

:root {
  --bg:        #faf8f4;
  --bg-warm:   #f0ebe2;
  --bg-dark:   #071126;
  --navy:      #0b1b3a;
  --green:     #34d399;
  --green-dark:#107a56;
  --text:      #0b1b3a;
  --text-mid:  rgba(11,27,58,0.65);
  --text-low:  rgba(11,27,58,0.5);
  --red:       #c7401a;
  --max:       1440px;
  --px:        100px;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
.nav {
  position: sticky; top: 24px; z-index: 100;
  display: flex; justify-content: center;
  padding: 0 24px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1306px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(14px);
  border: 1px solid #f1f5f9;
  border-radius: 100px;
  padding: 18px 37px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.nav-logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.05em;
  color: var(--navy);
}
.nav-links { display: flex; gap: 37px; }
.nav-links a {
  font-size: 15px;
  font-weight: 400;
  color: var(--navy);
  opacity: 0.8;
  transition: opacity .15s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: var(--navy);
  color: #f2f8fa;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 100px;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; }

/* ── HERO ── */
.hero {
  display: flex; flex-direction: column; align-items: center; gap: 48px;
  padding: 80px var(--px) 100px;
  position: relative; overflow: hidden;
}
.hero-title {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(48px, 5.3vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-align: center;
}
.hero-title-white { color: var(--navy); }
.hero-title-green { color: var(--green); }

.hero-sub {
  font-size: 18px; line-height: 1.55;
  color: rgba(11,27,58,0.7);
  text-align: center;
  max-width: 652px;
}

.hero-ctas { display: flex; gap: 20px; align-items: center; }
.btn-green {
  background: var(--green);
  color: var(--navy);
  font-size: 14px; font-weight: 600;
  padding: 14px 28px; border-radius: 25px;
  transition: opacity .15s;
}
.btn-green:hover { opacity: .85; }
.btn-ghost-hero {
  font-size: 14px; font-weight: 500;
  color: rgba(11,27,58,0.7); padding: 14px 16px;
  transition: color .15s;
}
.btn-ghost-hero:hover { color: var(--navy); }

.hero-visual {
  position: relative;
  width: min(980px, 100%);
}
.hero-img-wrap {
  background: var(--bg-warm);
  border: 1px solid rgba(11,27,58,0.1);
  border-radius: 20px;
  overflow: hidden;
  height: 520px;
  position: relative;
}
.hero-grid-line {
  position: absolute; left: -130px; width: calc(100% + 260px); height: 1px;
  background: rgba(11,27,58,0.06);
}
.hero-grid-accent {
  position: absolute; left: -130px; width: calc(100% + 260px); height: 1px;
  background: rgba(16,122,86,0.3);
}
.hero-plant-img {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 28px));
  width: 100%; height: auto;
  object-fit: cover;
}

.diag-card {
  position: absolute;
  right: -130px; top: 50px;
  width: 300px;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: 0 30px 50px rgba(0,0,0,0.1);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.diag-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.diag-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(52,211,153,0.14);
  border-radius: 100px;
  padding: 4px 10px;
}
.diag-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.diag-badge-text {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
}
.diag-time { font-size: 11px; color: var(--text-low); }
.diag-title {
  font-family: var(--font-serif);
  font-size: 22px; font-weight: 500;
  line-height: 1.1; letter-spacing: -0.02em;
  color: #071126;
}
.diag-rows { display: flex; flex-direction: column; gap: 8px; }
.diag-row {
  display: flex; align-items: center; justify-content: space-between;
}
.diag-label { font-size: 12px; color: rgba(11,27,58,0.6); }
.diag-val { font-size: 12px; font-weight: 600; color: var(--navy); }
.diag-val-red { color: var(--red); }
.diag-btn {
  display: inline-flex; align-items: center;
  background: var(--green); color: var(--navy);
  font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: 8px;
  align-self: flex-start;
}

.stat-card {
  position: absolute;
  left: -80px; bottom: 30px;
  background: var(--bg);
  border-radius: 16px;
  box-shadow: -10px 10px 50px rgba(0,0,0,0.1);
  padding: 20px;
}
.stat-card-label { font-size: 10px; color: rgba(11,27,58,0.6); letter-spacing: 0.04em; }
.stat-card-val {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 500;
  color: var(--navy); letter-spacing: -0.02em;
  margin-top: 4px;
}

/* ── SECTION: PROBLEMA ── */
.section-problema {
  background: var(--bg-warm);
  padding: 100px var(--px);
  display: flex; flex-direction: column; align-items: center; gap: 72px;
}
.sec-title-large {
  font-family: var(--font-serif);
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--navy);
  max-width: 1100px;
}
.drawing-wrap {
  background: var(--bg-warm);
  border: 1px solid rgba(11,27,58,0.12);
  border-radius: 20px;
  width: 540px; height: 360px;
  position: relative; overflow: hidden;
  flex-shrink: 0;
}
.drawing-grid-v {
  position: absolute; top: 0; height: 100%; width: 1px;
  background: rgba(11,27,58,0.04);
}
.drawing-grid-h {
  position: absolute; left: 0; width: 100%; height: 1px;
  background: rgba(11,27,58,0.04);
}
.drawing-label {
  position: absolute;
  top: 16px; left: 25px;
}
.drawing-label-top {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(11,27,58,0.55);
  display: block;
}
.drawing-label-sub {
  font-family: var(--font-serif);
  font-size: 16px; letter-spacing: -0.015em;
  color: var(--navy);
  display: block;
  margin-top: 4px;
}
.drawing-callout {
  position: absolute;
  top: 70px; right: 40px;
  background: var(--bg);
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  padding: 6px 10px;
}
.drawing-callout-title { font-size: 9px; font-weight: 700; color: var(--green-dark); letter-spacing: 0.08em; }
.drawing-callout-val { font-size: 11px; font-weight: 600; color: var(--navy); margin-top: 2px; }
.drawing-callout-time { font-size: 10px; color: var(--text-mid); }

.problem-cards {
  display: flex; gap: 24px;
  width: 100%; max-width: 1230px;
}
.problem-card {
  flex: 1;
  background: var(--bg);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.problem-icon { width: 64px; height: 64px; flex-shrink: 0; }
.problem-card-title {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 500;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--navy);
}
.problem-card-desc {
  font-size: 14px; line-height: 1.6;
  color: rgba(11,27,58,0.65);
}

/* ── SECTION: AGENTES ── */
.section-agentes {
  background: var(--bg);
  padding: 120px var(--px);
  display: flex; flex-direction: column; align-items: center; gap: 80px;
}
.sec-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green-dark);
  text-transform: uppercase;
}
.sec-title-main {
  font-family: var(--font-serif);
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--navy);
  max-width: 1100px;
}
.sec-sub {
  font-size: 17px; line-height: 1.5;
  color: rgba(11,27,58,0.65);
  text-align: center;
}
.sec-header { display: flex; flex-direction: column; align-items: center; gap: 22px; }

.agents-grid { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 1230px; }
.agents-row { display: flex; gap: 24px; }
.agent-card {
  background: var(--bg-warm);
  border: 1px solid rgba(11,27,58,0.08);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 22px;
}
.agent-card-sm { flex: 1; }
.agent-card-lg { flex: 1.53; }
.agent-card-header {
  display: flex; align-items: center; justify-content: space-between;
}
.agent-icon { width: 56px; height: 56px; }
.agent-num {
  font-family: var(--font-serif);
  font-size: 24px; color: rgba(11,27,58,0.25);
}
.agent-name {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 500;
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy);
}
.agent-tag {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-dark);
}
.agent-desc {
  font-size: 14px; line-height: 1.6;
  color: rgba(11,27,58,0.65);
}

/* ── SECTION: POR QUÉ FORGE (dark) ── */
.section-why {
  background: var(--bg-dark);
  padding: 120px var(--px);
  display: flex; flex-direction: column; align-items: center; gap: 64px;
}
.why-headline { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.why-title-light {
  font-family: var(--font-serif);
  font-size: clamp(40px, 3.9vw, 56px);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -0.025em;
  color: #faf8f4;
  max-width: 1100px;
}
.why-title-green {
  font-family: var(--font-serif);
  font-size: clamp(40px, 3.9vw, 56px);
  font-weight: 500; line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--green);
  max-width: 1100px;
}
.why-sub {
  font-size: 18px; line-height: 1.55;
  color: rgba(250,248,244,0.7);
}
.why-list { display: flex; flex-direction: column; width: min(900px, 100%); }
.why-item {
  display: flex; gap: 24px; align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid rgba(250,248,244,0.15);
}
.why-item:last-child { border-bottom: none; }
.why-arrow {
  font-family: var(--font-serif);
  font-size: 32px; font-weight: 500;
  color: var(--green); flex-shrink: 0;
}
.why-text {
  font-size: 22px; font-weight: 500;
  line-height: 1.4; letter-spacing: -0.01em;
  color: #faf8f4; flex: 1;
}

/* ── SECTION: CTA FORM ── */
.section-cta-form {
  background: var(--bg);
  padding: 120px var(--px);
  display: flex; flex-direction: column; align-items: center; gap: 64px;
}
.cta-title-line {
  font-family: var(--font-serif);
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 400; line-height: 1.08;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--navy);
  max-width: 1100px;
  display: block;
}
.cta-title-line-green { color: var(--green-dark); }
.cta-sub {
  font-size: 17px; line-height: 1.55;
  color: rgba(11,27,58,0.7);
  text-align: center;
  max-width: 607px;
  margin-top: -40px;
}

.form-card {
  background: var(--bg-warm);
  border: 1px solid rgba(11,27,58,0.1);
  border-radius: 20px;
  padding: 40px;
  width: min(560px, 100%);
  display: flex; flex-direction: column; gap: 16px;
}
.form-row { display: flex; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.form-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(11,27,58,0.55);
  text-transform: uppercase;
}
.form-input, .form-select {
  background: var(--bg);
  border: 1px solid rgba(11,27,58,0.15);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14px; color: var(--navy);
  width: 100%;
  outline: none;
  transition: border-color .15s;
  appearance: none;
}
.form-input::placeholder, .form-select.placeholder { color: rgba(11,27,58,0.4); }
.form-input:focus, .form-select:focus { border-color: var(--green-dark); }
.form-submit {
  width: 100%;
  background: var(--green);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  padding: 18px;
  border-radius: 12px;
  transition: opacity .15s;
  margin-top: 4px;
}
.form-submit:hover { opacity: .85; }
.form-disclaimer {
  font-size: 12px; font-weight: 500;
  color: rgba(11,27,58,0.5);
  text-align: center;
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-dark);
  padding: 80px var(--px) 40px;
  display: flex; flex-direction: column; gap: 60px;
}
.footer-cols {
  display: flex; gap: 80px; align-items: flex-start;
}
.footer-tagline {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 22px; line-height: 1.3;
  letter-spacing: -0.01em;
  color: white;
  max-width: 320px;
}
.footer-col { display: flex; flex-direction: column; gap: 16px; width: 180px; flex-shrink: 0; }
.footer-col-title {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em;
  color: white;
  text-transform: uppercase;
}
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a {
  font-size: 14px; color: white; opacity: .8;
  transition: opacity .15s;
}
.footer-col-links a:hover { opacity: 1; }
.footer-col-links .soon {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
}

.footer-wordmark {
  display: flex; flex-direction: column; gap: 32px;
}
.footer-wordmark-text {
  font-family: var(--font-serif);
  font-size: clamp(120px, 24vw, 350px);
  font-weight: 400; line-height: 0.8;
  letter-spacing: -0.04em;
  color: white;
  padding-top: 40px;
}
.footer-wordmark-text span { font-style: italic; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom p { font-size: 12px; color: white; opacity: .7; }

/* ── FORM STATUS ── */
#form-status { display: none; padding: 12px 16px; border-radius: 8px; font-size: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  :root { --px: 40px; }
  .diag-card { right: -20px; width: 240px; }
  .stat-card { left: -20px; }
  .problem-cards { flex-wrap: wrap; }
  .problem-card { min-width: 280px; }
  .agents-row { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  :root { --px: 24px; }
  .nav-inner { padding: 14px 20px; }
  .nav-links { display: none; }
  .hero-visual { overflow: visible; }
  .diag-card { position: static; width: 100%; margin-top: 24px; }
  .stat-card { display: none; }
  .hero-img-wrap { height: 280px; }
  .drawing-wrap { width: 100%; height: auto; aspect-ratio: 3/2; }
  .problem-cards { flex-direction: column; }
  .agents-row { flex-direction: column; }
  .why-list { width: 100%; }
  .form-row { flex-direction: column; }
  .footer-cols { flex-direction: column; gap: 40px; }
  .footer-wordmark-text { font-size: clamp(60px, 20vw, 180px); }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
