/* Puente Digital — main stylesheet
   Colors: cream #F4F6EF, ink #12241C, forest #0B2A20, forest-deep #071D16,
   lime #CBE96A, forest-mid #17513C, blue-gray #9BA5B0 */

:root {
  --cream: #F4F6EF;
  --ink: #12241C;
  --forest: #0B2A20;
  --forest-deep: #071D16;
  --lime: #CBE96A;
  --forest-mid: #17513C;
  --blue-gray: #9BA5B0;
  --max-width: 1440px;
  --gutter: 60px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Archivo', system-ui, sans-serif;
}

a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--cream); }

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

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.fu  { animation: fadeUp 1s cubic-bezier(.2,.7,.2,1) both; }
.fu2 { animation: fadeUp 1s .18s cubic-bezier(.2,.7,.2,1) both; }
.fu3 { animation: fadeUp 1s .34s cubic-bezier(.2,.7,.2,1) both; }

.site {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  overflow: hidden;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 20px;
}
.eyebrow--light { color: var(--lime); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 26px;
  font-weight: 800;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  transition: background .2s, gap .2s, border-color .2s;
}
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { background: var(--cream); gap: 16px; color: var(--ink); }
.btn-outline { border: 2px solid rgba(244,246,239,.4); color: var(--cream); }
.btn-outline:hover { background: rgba(244,246,239,.1); border-color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 24px var(--gutter);
  border-bottom: 2px solid rgba(244,246,239,.16);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-name {
  font-size: 20px;
  font-family: 'Poppins', 'Archivo', sans-serif;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.brand-name .accent { color: var(--lime); }
.brand-name .base { color: var(--cream); }

.nav { display: flex; align-items: center; gap: 32px; font-size: 13.5px; font-weight: 600; }
.nav-link { color: rgba(244,246,239,.8); }
.nav-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 10px;
  border-left: 2px solid rgba(244,246,239,.2);
  font-size: 12.5px;
  font-weight: 800;
}
.nav-lang .active { color: var(--lime); }
.nav-lang .sep { color: rgba(244,246,239,.3); }
.nav-lang .inactive { color: rgba(244,246,239,.5); }
.nav-cta { padding: 13px 20px; font-size: 13px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--forest);
  color: var(--cream);
  padding-bottom: 150px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .5;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  padding: 96px var(--gutter) 0;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 36px;
}
.hero-title {
  margin: 0;
  font-size: 96px;
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero-title .accent { color: var(--lime); }
.hero-sub {
  margin: 34px 0 40px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(244,246,239,.7);
  max-width: 48ch;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 56px; flex-wrap: wrap; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  justify-content: start;
  border-top: 2px solid rgba(244,246,239,.16);
  padding-top: 26px;
}
.stat { padding-right: 44px; }
.stat + .stat { padding: 0 44px; border-left: 2px solid rgba(244,246,239,.16); }
.stat:last-child { padding-left: 44px; padding-right: 0; }
.stat-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--lime);
}
.stat-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,246,239,.55);
  margin-top: 10px;
}

/* Hero contact card */
.hero-card-wrap { position: relative; margin-bottom: -210px; }
.hero-card {
  background: var(--cream);
  color: var(--ink);
  padding: 34px 34px 30px;
  box-shadow: 0 24px 60px rgba(4,20,14,.42);
}
.hero-card-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-mid);
  margin-bottom: 12px;
}
.hero-card-title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 8px;
}
.hero-card p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(18,36,28,.62);
}
.contact-form { display: flex; flex-direction: column; gap: 10px; }
.field {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(18,36,28,.18);
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  font-family: inherit;
}
.field::placeholder { color: rgba(18,36,28,.45); }
textarea.field { height: 78px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lang-pill-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid rgba(18,36,28,.18);
}
.lang-pill {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 13px;
  font-weight: 800;
  color: rgba(18,36,28,.45);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.lang-pill.active { background: var(--ink); color: var(--cream); }
.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--ink);
  color: var(--cream);
  font-weight: 800;
  font-size: 14px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.form-submit:hover { background: var(--forest-mid); }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  padding: 96px var(--gutter) 88px;
  max-width: 1000px;
}
.about h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.about p { margin: 0 0 18px; font-size: 16.5px; line-height: 1.65; color: rgba(18,36,28,.72); }
.about p:last-child { margin: 0; font-size: 15px; line-height: 1.7; color: rgba(18,36,28,.58); }

/* ---------- Services ---------- */
.services { border-top: 2px solid rgba(18,36,28,.85); }
.services-layout { display: grid; grid-template-columns: 1fr 2fr; }
.services-intro {
  padding: 60px 40px 60px var(--gutter);
  border-right: 2px solid rgba(18,36,28,.14);
}
.services-intro h2 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.services-intro p { margin: 0; font-size: 14.5px; line-height: 1.65; color: rgba(18,36,28,.6); }

.services-grid { display: grid; grid-template-columns: 1fr 1fr; }
.service-card {
  padding: 38px 36px;
  border-bottom: 2px solid rgba(18,36,28,.14);
  border-right: 2px solid rgba(18,36,28,.14);
}
.service-card:nth-child(2n) { border-right: none; }
.service-card .num {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--forest-mid);
  margin-bottom: 16px;
}
.service-card .title { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.service-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(18,36,28,.62); }
.service-card--dark { background: var(--forest); color: var(--cream); }
.service-card--dark .num { color: var(--lime); }
.service-card--dark p { color: rgba(244,246,239,.7); }
.service-card--cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(23,81,60,.09);
  border-right: none;
}
.service-card--cta .title { font-size: 15px; letter-spacing: -0.01em; margin-bottom: 14px; }
.service-card--cta a { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 800; color: var(--forest-mid); }

/* ---------- Work ---------- */
.work { background: var(--forest); color: var(--cream); padding: 88px 0 0; border-top: 2px solid rgba(18,36,28,.85); }
.work-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gutter) 44px;
  flex-wrap: wrap;
}
.work-head h2 { margin: 0; font-size: 52px; line-height: 1.03; letter-spacing: -0.04em; font-weight: 800; }
.work-head p { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(244,246,239,.62); max-width: 40ch; }

.work-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid rgba(244,246,239,.16); }
.work-item { border-right: 2px solid rgba(244,246,239,.16); }
.work-item:last-child { border-right: none; }
.work-media { height: 420px; background: var(--forest-deep); overflow: hidden; position: relative; }
.work-media img { width: 100%; height: 100%; object-fit: cover; }
.work-media .media-label {
  position: absolute;
  left: 20px;
  bottom: 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(244,246,239,.4);
}
.work-body { padding: 30px 40px 38px; }
.work-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.work-meta .cat { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.work-meta .year { font-size: 11.5px; font-weight: 600; color: rgba(244,246,239,.45); }
.work-title { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 12px; }
.work-desc { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: rgba(244,246,239,.66); max-width: 46ch; }
.work-stats { display: flex; gap: 40px; padding-top: 20px; border-top: 2px solid rgba(244,246,239,.16); flex-wrap: wrap; }
.work-stats .num { font-size: 38px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.work-stats .label { font-size: 11.5px; color: rgba(244,246,239,.5); margin-top: 6px; }

.work-links { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid rgba(244,246,239,.16); }
.work-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 40px 34px;
  border-right: 2px solid rgba(244,246,239,.16);
  color: var(--cream);
  transition: background .25s;
}
.work-link:last-child { border-right: none; }
.work-link:hover { background: var(--forest-deep); }
.work-link .cat { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 10px; }
.work-link .name { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.work-link .arrow { font-size: 20px; color: rgba(244,246,239,.45); }

/* ---------- Why Puente ---------- */
.why { padding: 88px var(--gutter); border-bottom: 2px solid rgba(18,36,28,.85); }
.why-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 72px; align-items: start; }
.why h2 { margin: 0 0 26px; font-size: 40px; line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }

.commitments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.commitment { padding: 0 32px 30px 0; border-bottom: 2px solid rgba(18,36,28,.14); }
.commitment:nth-child(2n) { padding: 0 0 30px 32px; border-left: 2px solid rgba(18,36,28,.14); }
.commitment:nth-child(3) { padding: 30px 32px 0 0; border-bottom: none; }
.commitment:nth-child(4) { padding: 30px 0 0 32px; border-bottom: none; }
.commitment .title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.commitment p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(18,36,28,.62); }

/* ---------- Process ---------- */
.process { padding: 80px var(--gutter) 88px; border-bottom: 2px solid rgba(18,36,28,.85); }
.process-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.process-head h2 { margin: 0; font-size: 40px; line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.process-head .duration { font-size: 13.5px; font-weight: 600; color: rgba(18,36,28,.5); }

.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid rgba(18,36,28,.85); }
.process-step { padding: 26px 24px 30px; border-left: 2px solid rgba(18,36,28,.14); }
.process-step:first-child { padding-left: 0; border-left: none; }
.process-step:last-child { padding-right: 0; }
.process-step .step-num { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: rgba(18,36,28,.16); }
.process-step .step-num.active { color: var(--lime); }
.process-step .step-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 8px; }
.process-step p { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(18,36,28,.6); }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--forest); color: var(--cream); padding: 100px var(--gutter); overflow: hidden; }
.contact-bg { position: absolute; right: -30px; bottom: -40px; width: 760px; max-width: none; opacity: .55; pointer-events: none; }
.contact-layout { position: relative; display: grid; grid-template-columns: 1.3fr auto; gap: 64px; align-items: end; }
.contact-layout h2 { margin: 0; font-size: 58px; line-height: 1.04; letter-spacing: -0.04em; font-weight: 800; max-width: 26ch; }
.contact-cta { padding: 20px 28px; font-size: 15px; white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(244,246,239,.68); padding: 60px 60px 36px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 2px solid rgba(244,246,239,.14);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-address { font-size: 14.5px; line-height: 1.7; }
.footer-heading {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,246,239,.4);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer-links a { color: rgba(244,246,239,.7); }
.footer-lang { display: flex; gap: 8px; }
.footer-lang .active { padding: 9px 14px; background: var(--lime); color: var(--ink); font-size: 13px; font-weight: 800; }
.footer-lang .inactive { padding: 9px 14px; border: 2px solid rgba(244,246,239,.28); color: rgba(244,246,239,.7); font-size: 13px; font-weight: 800; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 12.5px; color: rgba(244,246,239,.4); gap: 12px; flex-wrap: wrap; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }

  .site-header { padding: 18px var(--gutter); flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0B2A20;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px var(--gutter) 32px;
    border-bottom: 2px solid rgba(244,246,239,.16);
    z-index: 20;
  }
  .nav.open { display: flex; }
  .nav-lang { border-left: none; padding-left: 0; }
  .nav-cta { width: 100%; justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-title { font-size: 68px; }
  .hero-card-wrap { margin-bottom: 0; margin-top: 48px; }
  .hero { padding-bottom: 80px; }

  .about { grid-template-columns: 1fr; gap: 28px; max-width: none; }

  .services-layout { grid-template-columns: 1fr; }
  .services-intro { border-right: none; border-bottom: 2px solid rgba(18,36,28,.14); padding: 48px 40px; }

  .work-head h2 { font-size: 40px; }

  .why-layout { grid-template-columns: 1fr; gap: 32px; }

  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .process-step:nth-child(3n+1) { padding-left: 0; border-left: none; }
  .process-step:nth-child(n+4) { border-top: 2px solid rgba(18,36,28,.14); padding-top: 26px; }

  .contact-layout { grid-template-columns: 1fr; align-items: start; gap: 32px; }
  .contact-layout h2 { font-size: 42px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  .hero-eyebrow { margin-bottom: 24px; }
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 16px; margin: 24px 0 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero { padding-bottom: 56px; }

  .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stat, .stat:last-child { padding: 0 !important; border: none !important; }
  .stat-num { font-size: 38px; }

  .hero-card { padding: 26px 22px 24px; }
  .hero-card-title { font-size: 22px; }
  .field-row { grid-template-columns: 1fr; }

  .about h2 { font-size: 32px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card:nth-child(2n) { border-right: none; padding: 32px var(--gutter); }
  .services-intro h2 { font-size: 30px; }

  .work-grid { grid-template-columns: 1fr; }
  .work-item { border-right: none; border-bottom: 2px solid rgba(244,246,239,.16); }
  .work-item:last-child { border-bottom: none; }
  .work-head h2 { font-size: 32px; }
  .work-body { padding: 26px var(--gutter) 32px; }
  .work-title { font-size: 24px; }
  .work-media { height: 260px; }
  .work-links { grid-template-columns: 1fr; }
  .work-link { border-right: none; border-bottom: 2px solid rgba(244,246,239,.16); padding: 24px var(--gutter); }
  .work-link:last-child { border-bottom: none; }

  .why { padding: 56px var(--gutter); }
  .why h2 { font-size: 28px; }
  .commitments-grid { grid-template-columns: 1fr; }
  .commitment, .commitment:nth-child(2n), .commitment:nth-child(3), .commitment:nth-child(4) {
    padding: 24px 0; border-left: none; border-bottom: 2px solid rgba(18,36,28,.14);
  }
  .commitment:last-child { border-bottom: none; }

  .process { padding: 56px var(--gutter) 64px; }
  .process-head h2 { font-size: 28px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(3n+1), .process-step:nth-child(n+4) {
    padding: 24px 0; border-left: none; border-top: 2px solid rgba(18,36,28,.14);
  }
  .process-step:first-child { border-top: none; }

  .contact { padding: 64px var(--gutter); }
  .contact-layout h2 { font-size: 30px; }
  .contact-cta { width: 100%; justify-content: center; }
  .contact-bg { width: 480px; }

  .site-footer { padding: 48px var(--gutter) 28px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
}
