@font-face {
  font-family: "Designer";
  src: url("../fonts/designer.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Fake Serif";
  src: url("../fonts/fake-serif.otf") format("opentype");
  font-display: swap;
}

:root {
  /* PALETA PRINCIPAL: cambia estos valores para personalizar todo el sitio. */
  /* Azul de marca: detalles, etiquetas y superficies azules. */
  --blue: #526da3;
  --blue-dark: #37547f;
  /* Gris principal: texto, encabezado y pie. */
  --ink: #424a4c;
  --graphite: #5b6264;
  /* Naranja: botones, llamados a la acción y acentos. */
  --orange: #db632e;
  --orange-dark: #bc260d;
  /* Neutros: fondos cálidos y superficies claras. */
  --sand: #e0ccb1;
  --cream: #f4f1eb;
  --white: #ffffff;
  --line: rgba(66, 74, 76, 0.17);
  --shadow: 0 26px 70px rgba(66, 74, 76, 0.12);
  --max: 1220px;
  --display: "Designer", "Arial Narrow", sans-serif;
  --body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(66, 74, 76, .96);
  color: white;
  backdrop-filter: blur(12px);
}
.nav-wrap {
  width: min(calc(100% - 36px), var(--max));
  height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  margin-right: auto;
  width: 68px;
  height: 62px;
  display: grid;
  flex: 0 0 68px;
  place-items: center;
  border: 0;
  background: transparent;
  color: transparent;
  font-size: 0;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.brand:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.brand img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0,0,0,.28)); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a {
  position: relative;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.nav-links a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -.55rem;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1.5rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .78rem 1.25rem;
  border: 1px solid transparent;
  background: var(--orange);
  color: white;
  font-weight: 750;
  letter-spacing: .02em;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { background: var(--orange-dark); transform: translateY(-2px); }
.button-outline { border-color: currentColor; background: transparent; }
.button-outline:hover { border-color: var(--orange); background: var(--orange); }
.button-dark { background: var(--ink); }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: clamp(4rem, 6.5vw, 6.5rem) 0; }
.section-tight { padding: 3rem 0; }
.section-dark { background: var(--ink); color: white; }
.section-blue { background: var(--blue-dark); color: white; }
.section-white { background: white; }
.section-grid {
  background-image: linear-gradient(rgba(82,109,163,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(82,109,163,.07) 1px, transparent 1px);
  background-size: 38px 38px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1rem;
  color: var(--orange);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before { width: 34px; height: 2px; background: currentColor; content: ""; }
.section-dark .eyebrow, .section-blue .eyebrow { color: #ffbb61; }
h1, h2, h3 { margin-top: 0; line-height: 1.05; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
h1 { max-width: 900px; margin-bottom: 1.5rem; font-size: clamp(3rem, 7vw, 7rem); letter-spacing: .01em; }
h2 { margin-bottom: 1.3rem; font-size: clamp(2.35rem, 4.5vw, 4.9rem); }
h3 { margin-bottom: .65rem; font-size: 1.24rem; }
h3 { font-size: 1.4rem; }
.lead { max-width: 760px; font-size: clamp(1.08rem, 1.8vw, 1.35rem); }
.muted { color: #667371; }
.section-dark .muted, .section-blue .muted { color: rgba(255,255,255,.72); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero {
  position: relative;
  min-height: calc(100svh - 78px);
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(42,46,48,.96) 0%, rgba(42,46,48,.82) 48%, rgba(42,46,48,.18) 100%),
    linear-gradient(135deg, var(--blue-dark), var(--ink));
  color: white;
}
.hero-photo {
  background-position: center;
  background-size: cover;
}
.hero-home {
  background-image: linear-gradient(90deg, rgba(42,46,48,.96) 0%, rgba(42,46,48,.84) 48%, rgba(42,46,48,.26) 100%), url("../images/web/hero-industrial.webp");
}
.hero-solutions {
  background-image: linear-gradient(90deg, rgba(42,46,48,.96), rgba(42,46,48,.42)), url("../images/web/project-paseo-parque.webp");
}
.hero-vector {
  background-image: linear-gradient(90deg, rgba(42,46,48,.97), rgba(42,46,48,.52)), url("../images/web/vector-maestro.webp");
}
.hero-projects {
  background-image: linear-gradient(90deg, rgba(42,46,48,.94), rgba(42,46,48,.3)), url("../images/web/project-la-toscana.webp");
}
.hero-company {
  background-image: linear-gradient(90deg, rgba(42,46,48,.96), rgba(42,46,48,.45)), url("../images/web/team-work.webp");
}
.hero-resources {
  background-image: linear-gradient(90deg, rgba(42,46,48,.96), rgba(42,46,48,.5)), url("../images/web/detail-geometry.webp");
}
.hero-evaluate {
  background-image: linear-gradient(90deg, rgba(42,46,48,.97), rgba(42,46,48,.48)), url("../images/web/vector-diagnostico.webp");
}
.hero::after {
  position: absolute;
  width: min(760px, 65vw);
  aspect-ratio: 1;
  right: -10%;
  bottom: -32%;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.025);
  content: "";
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, .5fr);
  align-items: end;
  gap: 3rem;
  padding: 6rem 0;
}
.hero h1 span { color: #91a7d2; }
.hero-note { padding: 1.5rem; border-left: 3px solid var(--orange); background: rgba(255,255,255,.08); backdrop-filter: blur(5px); }
.hero-note strong { display: block; margin-bottom: .5rem; font-family: var(--display); font-size: 1.25rem; letter-spacing: .08em; }
.page-hero { min-height: 66svh; }
.page-hero .hero-grid { grid-template-columns: 1fr .42fr; }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.metric { padding: 2rem; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; margin-bottom: .35rem; color: var(--blue-dark); font-family: var(--display); font-size: 1.5rem; letter-spacing: .06em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.priority-grid { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  min-height: 280px;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 30px rgba(66,74,76,.04);
}
.card-number { display: block; margin-bottom: 3.5rem; color: var(--orange); font-family: var(--display); font-size: 2.4rem; }
.card a { font-weight: 750; text-decoration-color: var(--orange); text-underline-offset: 5px; }

.method-list { margin: 3rem 0 0; padding: 0; list-style: none; counter-reset: method; }
.method-item {
  display: grid;
  grid-template-columns: 84px 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.22);
  counter-increment: method;
}
.method-item::before { color: #ffbb61; font-family: var(--display); font-size: 2.2rem; content: "0" counter(method); }
.method-item p { margin: 0; color: rgba(255,255,255,.72); }

.project-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem; margin-top: 2.5rem; }
.project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: flex;
  align-items: end;
  background: linear-gradient(135deg, var(--blue-dark), var(--graphite));
  color: white;
}
.project-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.project-card:hover > img { transform: scale(1.035); }
.project-card:nth-child(2) { background: linear-gradient(135deg, var(--graphite), var(--ink)); }
.project-card:nth-child(3) { background: linear-gradient(135deg, #6d829f, var(--blue-dark)); }
.project-card::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.08) 40% 41%, transparent 41%), radial-gradient(circle at 75% 20%, transparent 0 80px, rgba(255,255,255,.1) 81px 82px, transparent 83px);
  z-index: 1;
  background: linear-gradient(180deg, transparent 34%, rgba(42,46,48,.82) 100%);
  content: "";
}
.project-card:first-child { grid-row: span 2; min-height: 680px; }
.project-content { position: relative; z-index: 2; width: 100%; padding: 2rem; }
.project-content small { color: #ffbb61; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.project-content h3 { margin-top: .5rem; font-size: 1.7rem; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.portfolio-grid .project-card { min-height: 390px; }
.portfolio-grid .project-card:first-child { grid-row: auto; min-height: 390px; }
.portfolio-grid .project-card.is-featured { grid-column: span 2; min-height: 520px; }

.method-gallery { display: grid; gap: 1px; margin-top: 3rem; background: rgba(255,255,255,.18); }
.eyebrow:has(+ .method-gallery) { margin-bottom: 1.75rem; color: white; font-family: var(--display); font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 400; letter-spacing: .06em; }
.eyebrow:has(+ .method-gallery)::before { width: 52px; background: #ffbb61; }
.method-heading { margin-bottom: 1.75rem; color: white; font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 400; letter-spacing: .06em; }
.method-heading::before { width: 58px; background: #ffbb61; }
.eyebrow.method-heading { font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; }
.method-visual {
  display: grid;
  grid-template-columns: minmax(260px, .75fr) 1.25fr;
  min-height: 390px;
  background: var(--ink);
}
.method-visual:nth-child(even) { grid-template-columns: 1.25fr minmax(260px, .75fr); }
.method-visual:nth-child(even) img { order: 2; }
.method-visual img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; }
.method-copy { padding: clamp(2rem, 5vw, 4.5rem); align-self: center; }
.method-copy span { color: #ffbb61; font-family: var(--display); font-size: 2.65rem; }
.method-copy h3 { max-width: 720px; font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.08; }
.method-copy p { max-width: 700px; font-size: 1.05rem; }

.people-grid { display: grid; grid-template-columns: .68fr 1.32fr; gap: 1rem; }
.person-card { position: relative; min-height: 520px; overflow: hidden; background: var(--graphite); color: white; }
.person-card img { width: 100%; height: 100%; object-fit: cover; }
.person-card:first-child img { object-position: center 20%; }
.person-caption { position: absolute; inset: auto 0 0; padding: 2rem; background: linear-gradient(transparent, rgba(42,46,48,.92)); }
.person-caption h3 { margin: 0; font-size: 1.6rem; }
.photo-strip { display: grid; grid-template-columns: 1.35fr .65fr; gap: 1rem; margin-top: 1rem; }
.photo-strip img { width: 100%; height: 360px; object-fit: cover; }

.quote { position: relative; max-width: 980px; margin: auto; text-align: center; }
.quote p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 4.2vw, 4.5rem); font-weight: 500; line-height: 1.18; letter-spacing: -.025em; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.resource-card { min-height: 245px; padding: 2rem; border-top: 4px solid var(--blue); background: white; box-shadow: 0 12px 32px rgba(66,74,76,.07); }
.resource-card small { color: var(--orange-dark); font-weight: 800; text-transform: uppercase; }
.resource-card p { font-size: 1rem; }
.resource-status { display: inline-flex; margin-top: .75rem; color: var(--blue-dark); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.resource-card::after { display: inline-flex; margin-top: .75rem; color: var(--blue-dark); content: "Contenido en preparación"; font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.cta-band { position: relative; overflow: hidden; }
.cta-band::after { position: absolute; width: 420px; height: 420px; top: -150px; right: -80px; border: 70px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
.cta-row { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.cta-row h2 { max-width: 800px; margin-bottom: 0; }

.feature-list { margin: 1.5rem 0 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding: .8rem 0 .8rem 1.6rem; border-bottom: 1px solid var(--line); }
.feature-list li::before { position: absolute; left: 0; color: var(--orange); content: "↗"; }
.process-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 3rem; background: var(--line); }
.process-step { min-height: 300px; padding: 1.5rem; background: white; }
.process-step span { color: var(--orange); font-family: var(--display); font-size: 2rem; }

.team-panel { min-height: 470px; padding: clamp(2rem, 5vw, 5rem); display: flex; align-items: end; background: linear-gradient(140deg, rgba(55,84,127,.95), rgba(66,74,76,.96)); color: white; }
.team-panel p { max-width: 580px; }

.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0 1rem; }
.filter { min-height: 48px; padding: .7rem 1.15rem; border: 1px solid rgba(66,74,76,.34); background: white; color: var(--ink); font-weight: 800; cursor: pointer; box-shadow: 0 5px 14px rgba(66,74,76,.05); transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease; }
.filter:hover { border-color: var(--orange); color: var(--orange-dark); transform: translateY(-2px); }
.filter.is-active { border-color: var(--orange); background: var(--orange); color: white; box-shadow: 0 8px 22px rgba(188,38,13,.2); }
.filter-status { min-height: 1.5rem; margin: 0 0 1.5rem; color: #687173; font-size: .9rem; font-weight: 700; }

.form-shell { display: grid; grid-template-columns: .7fr 1.3fr; gap: 0; background: white; box-shadow: var(--shadow); }
.form-aside { padding: clamp(2rem,5vw,4rem); background: var(--blue-dark); color: white; }
.form-aside ol { padding-left: 1.2rem; }
.form-main { padding: clamp(2rem,5vw,4rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid.is-stepped { display: block; }
.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-step.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; animation: step-enter .42s ease both; }
.form-step-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: .5rem; }
.form-step-nav .form-next:only-child { margin-left: auto; }
.form-progress { margin-bottom: 2rem; }
.form-progress-copy { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; }
.form-progress-copy span { color: var(--orange-dark); font-size: .72rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.form-progress-copy strong { color: var(--ink); font-size: .95rem; }
.form-progress-track { height: 8px; overflow: hidden; background: #e3e5e5; }
.form-progress-track > span { display: block; width: 33.333%; height: 100%; background: linear-gradient(90deg, var(--orange), #f19a48); transition: width .42s ease; }
.form-progress-dots { display: flex; justify-content: space-between; margin-top: .55rem; }
.form-progress-dots span { width: 8px; height: 8px; border-radius: 50%; background: #c7cbcc; transition: transform .25s ease, background .25s ease; }
.form-progress-dots span.is-active { background: var(--orange); transform: scale(1.45); }
.form-progress-dots span.is-complete { background: var(--blue); }
@keyframes step-enter { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.field { display: grid; gap: .35rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .8rem; border: 1px solid #b9c1c0; background: #fafafa; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.form-status { min-height: 1.5rem; margin-top: 1rem; color: var(--blue-dark); font-weight: 700; }
.form-status.is-error { color: var(--orange-dark); }
.form-status.is-success {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .75rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(82,109,163,.24);
  background: linear-gradient(145deg, #fff 0%, #f4f1eb 58%, #e8edf7 100%);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 22px 55px rgba(66,74,76,.14);
  animation: success-arrive .65s cubic-bezier(.2,.8,.2,1) both;
  outline: none;
}
.form-status.is-success::before {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(82,109,163,.15);
  border-radius: 50%;
  content: "";
  animation: success-ring 1.2s ease-out both;
}
.success-badge {
  z-index: 1;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  box-shadow: 0 14px 35px rgba(219,99,46,.3);
  animation: success-pop .7s .15s cubic-bezier(.2,1.5,.5,1) both;
}
.success-kicker { z-index: 1; color: var(--blue-dark); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.form-status.is-success strong { z-index: 1; max-width: 560px; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; text-transform: uppercase; }
.success-message, .success-next { z-index: 1; max-width: 610px; font-weight: 500; }
.success-next { color: var(--blue-dark); font-size: .88rem; font-weight: 800; }
.success-actions { z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: .5rem; }
.success-actions .button { font-size: .82rem; }
.success-sparks { position: absolute; inset: 0; pointer-events: none; }
.success-sparks span { position: absolute; width: 9px; height: 9px; background: var(--orange); animation: spark-fly 1s .18s ease-out both; }
.success-sparks span:nth-child(1) { left: 22%; top: 44%; --spark-x: -34px; --spark-y: -50px; }
.success-sparks span:nth-child(2) { left: 34%; top: 26%; background: var(--blue); --spark-x: -20px; --spark-y: -55px; }
.success-sparks span:nth-child(3) { right: 34%; top: 25%; background: var(--sand); --spark-x: 20px; --spark-y: -58px; }
.success-sparks span:nth-child(4) { right: 22%; top: 45%; background: var(--blue); --spark-x: 38px; --spark-y: -42px; }
.success-sparks span:nth-child(5) { right: 28%; bottom: 23%; --spark-x: 30px; --spark-y: 36px; }
#evaluation-form.is-complete .form-progress { display: none; }
#evaluation-form.is-complete .form-grid { grid-template-columns: 1fr; }
#evaluation-form.is-complete .form-step.is-active { display: grid; grid-template-columns: 1fr; }
#evaluation-form.is-complete .form-step.is-active > :not(.field:last-child) { display: none; }
#evaluation-form.is-complete button[type="submit"] { display: none; }
@keyframes success-arrive { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes success-pop { from { opacity: 0; transform: scale(.35) rotate(-18deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes success-ring { from { opacity: .7; transform: scale(.25); } to { opacity: 0; transform: scale(1.35); } }
@keyframes spark-fly { from { opacity: 1; transform: translate(0,0) rotate(0); } to { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) rotate(160deg); } }
.form-consent { display: flex; align-items: flex-start; gap: .7rem; }
.form-consent input { width: 1.1rem; min-height: 1.1rem; margin-top: .25rem; }
.form-consent label { font-size: .86rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.inline-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1rem; }
.inline-links a { font-weight: 750; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.contact-list { display: grid; border-top: 1px solid var(--line); }
.contact-list a, .contact-list p { margin: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--orange-dark); }
.contact-list span { display: block; color: var(--blue-dark); font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; }
.social-links a { display: inline-flex; min-height: 46px; align-items: center; gap: .55rem; padding: .65rem 1rem; border: 1px solid currentColor; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.social-links a:hover { transform: translateY(-3px); background: var(--ink); color: white; box-shadow: 0 10px 25px rgba(66,74,76,.18); }
.social-icon { width: 21px; height: 21px; display: inline-grid; flex: 0 0 21px; place-items: center; }
.social-icon svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-facebook svg path, .social-linkedin svg path, .social-youtube svg path { fill: currentColor; stroke: none; }
.footer-social { margin-top: 1.25rem; gap: .45rem; }
.footer-social a { width: 44px; min-height: 44px; justify-content: center; padding: .65rem; border-color: rgba(255,255,255,.26); color: rgba(255,255,255,.82); font-size: 0; }
.footer-social .social-icon { width: 20px; height: 20px; }

.whatsapp-float {
  position: fixed;
  z-index: 45;
  right: 22px;
  bottom: 22px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  background: #1f9d55;
  color: white;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 35px rgba(24,93,58,.28);
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover { transform: translateY(-4px) scale(1.02); background: #178247; box-shadow: 0 18px 42px rgba(24,93,58,.35); }
.mobile-action-bar { display: none; }

.project-card.is-interactive { cursor: pointer; }
.project-card.is-interactive:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.project-card.is-interactive::after { position: absolute; z-index: 2; right: 1rem; top: 1rem; padding: .5rem .7rem; background: rgba(255,255,255,.94); color: var(--ink); content: "Ver proyecto +"; font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 7px 20px rgba(0,0,0,.15); transition: opacity .25s ease, transform .25s ease; }
.project-card.is-interactive:hover::after, .project-card.is-interactive:focus-visible::after { opacity: 1; transform: none; }
body.dialog-open { overflow: hidden; }
.project-dialog { width: min(1120px, calc(100% - 32px)); max-height: min(90vh, 820px); padding: 0; border: 0; background: white; color: var(--ink); box-shadow: 0 30px 100px rgba(20,24,25,.4); }
.project-dialog::backdrop { background: rgba(26,29,30,.78); backdrop-filter: blur(6px); }
.project-dialog-grid { display: grid; grid-template-columns: 1.15fr .85fr; min-height: min(76vh, 720px); }
.project-dialog-visual { position: relative; min-height: 480px; background: #dfe2e3; }
.project-dialog-visual img { width: 100%; height: 100%; object-fit: cover; }
.project-dialog-copy { align-self: center; padding: clamp(2rem, 5vw, 4.5rem); }
.project-dialog-meta { color: var(--orange-dark); font-size: .72rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.project-dialog h2 { margin: .8rem 0 1.2rem; font-size: clamp(2.4rem, 5vw, 4.6rem); }
.project-dialog-description { font-size: 1.08rem; }
.project-dialog-proof { display: grid; gap: .25rem; margin-top: 1.5rem; padding: 1rem; border-left: 3px solid var(--blue); background: var(--cream); }
.project-dialog-proof span { color: #626a6c; font-size: .86rem; }
.project-dialog-close { position: absolute; z-index: 4; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: white; color: var(--ink); font-size: 1.8rem; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.project-dialog-nav { position: absolute; z-index: 3; top: 50%; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.4rem; cursor: pointer; transform: translateY(-50%); }
.project-prev { left: 14px; }
.project-next { right: 14px; }

.trust-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.trust-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.trust-heading h2 { margin-bottom: 0; }
.trust-heading p { max-width: 620px; margin: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.trust-item { min-height: 190px; padding: 1.6rem; border-right: 1px solid var(--line); background: linear-gradient(145deg, white, #f5f5f3); }
.trust-item:last-child { border-right: 0; }
.trust-number { display: block; color: var(--blue); font-family: var(--display); font-size: clamp(3.3rem, 6vw, 5.6rem); line-height: .9; }
.trust-item strong { display: block; margin-top: 1rem; font-size: .96rem; }
.trust-item small { display: block; margin-top: .35rem; color: #6b7375; }

.site-footer { padding: 4rem 0 2rem; background: #303638; color: white; }
.site-footer {
  position: relative;
  overflow: hidden;
}
.site-footer::after {
  position: absolute;
  width: 440px;
  height: 490px;
  right: -110px;
  bottom: -190px;
  background: url("../images/reticula-t7.png") center / contain no-repeat;
  content: "";
  opacity: .055;
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.footer-grid h2 { font-size: 2rem; }
.footer-logo {
  width: 108px;
  height: 108px;
  display: block;
  margin-bottom: 1.15rem;
  border: 0;
  background: transparent;
}
.footer-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 7px 14px rgba(0,0,0,.25)); }
.footer-links { display: grid; gap: .7rem; }
.footer-links a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-links a:hover { color: white; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 5px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; justify-content: space-between; color: rgba(255,255,255,.6); font-size: .85rem; }
.privacy-controls { display: flex; gap: 1rem; flex-wrap: wrap; }
.privacy-controls a, .privacy-controls button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.privacy-controls a:hover, .privacy-controls button:hover { color: white; }

.cookie-banner { position: fixed; z-index: 70; right: 1rem; bottom: 1rem; left: 1rem; max-width: 1120px; margin: auto; display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; padding: 1.25rem; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(48,54,56,.98); color: white; box-shadow: 0 18px 55px rgba(20,24,25,.35); }
.cookie-banner strong { display: block; margin-bottom: .25rem; }
.cookie-banner p { margin: 0; color: rgba(255,255,255,.78); font-size: .9rem; }
.cookie-banner a { color: white; }
.cookie-actions { display: flex; gap: .7rem; align-items: center; }
.cookie-actions .button { white-space: nowrap; }
.cookie-actions .button-dark { border-color: rgba(255,255,255,.28); }

.legal-page { background: var(--cream); }
.legal-layout { max-width: 880px; }
.legal-layout > p:first-of-type { font-size: 1.08rem; }
.legal-layout h2 { margin-top: 2.6rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.legal-layout h3 { margin-top: 1.7rem; font-size: 1.15rem; }
.legal-layout li + li { margin-top: .45rem; }
.legal-note { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 4px solid var(--orange); background: white; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .nav-links { position: fixed; inset: 78px 0 auto 0; max-height: calc(100svh - 78px); overflow: auto; display: none; padding: 2rem; background: var(--ink); flex-direction: column; align-items: flex-start; }
  .nav-links.is-open { display: flex; }
  .nav-links .button { width: 100%; }
  .hero-grid, .page-hero .hero-grid, .split, .form-shell, .contact-panel { grid-template-columns: 1fr; }
  .hero-note { max-width: 560px; }
  .cards, .resource-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: 1fr; }
  .method-item { grid-template-columns: 60px 1fr; }
  .method-item p { grid-column: 2; }
  .project-dialog { overflow: auto; }
  .project-dialog-grid { grid-template-columns: 1fr; }
  .project-dialog-visual { min-height: 52vh; }
  .trust-heading { grid-template-columns: 1fr; align-items: start; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  body { padding-bottom: 66px; font-size: 17px; }
  .nav-wrap { height: 68px; }
  .nav-links { inset-block-start: 68px; }
  .hero { min-height: auto; }
  .hero-grid { padding: 5rem 0; }
  .hero h1 { font-size: clamp(2.65rem, 15vw, 4.6rem); }
  .section { padding: 3.75rem 0; }
  .metrics, .cards, .resource-grid, .project-grid, .process-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .method-visual, .method-visual:nth-child(even), .photo-strip { grid-template-columns: 1fr; }
  .portfolio-grid .project-card.is-featured { grid-column: auto; min-height: 430px; }
  .project-card.is-interactive::after { opacity: 1; transform: none; }
  .method-visual:nth-child(even) img { order: 0; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .project-card:first-child { grid-row: auto; min-height: 430px; }
  .method-item { grid-template-columns: 44px 1fr; gap: 1rem; }
  .cta-row, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .field { grid-column: 1; }
  .form-step.is-active { grid-template-columns: 1fr; }
  .form-step-nav { align-items: stretch; flex-direction: column-reverse; }
  .form-step-nav .button { width: 100%; }
  .form-progress-copy { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .whatsapp-float { display: none; }
  .mobile-action-bar {
    position: fixed;
    z-index: 48;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: .55rem;
    border-top: 1px solid rgba(255,255,255,.18);
    background: rgba(48,54,56,.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 28px rgba(20,24,25,.2);
  }
  .mobile-action-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; padding: .6rem; color: white; font-size: .78rem; font-weight: 850; text-align: center; text-decoration: none; }
  .mobile-action-bar .mobile-whatsapp { background: #1f9d55; }
  .mobile-action-bar .social-icon { width: 18px; height: 18px; margin-right: .35rem; }
  .project-dialog { width: calc(100% - 18px); max-height: 92vh; }
  .project-dialog-visual { min-height: 42vh; }
  .project-dialog-copy { padding: 2rem 1.35rem 2.5rem; }
  .project-dialog .actions { align-items: stretch; flex-direction: column; }
  .project-dialog .button { width: 100%; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item, .trust-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .cookie-banner { bottom: 76px; grid-template-columns: 1fr; }
  .cookie-actions { align-items: stretch; flex-direction: column-reverse; }
  .cookie-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .form-status.is-success, .success-badge, .form-status.is-success::before, .success-sparks span { animation: none; }
}
