/* ==========================================================================
   CMAC Inmobiliaria — Prototipo corporativo
   Dirección: editorial, azul institucional + amarillo de marca.
   Sin dependencias externas. Fuentes auto-hospedadas.
   ========================================================================== */

@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('../fonts/instrument-serif-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --indigo: #2F3CA1;
  --indigo-700: #253181;
  --indigo-900: #141A4A;
  --ink: #10173A;
  --ink-2: #1B2450;
  --yellow: #FADA00;
  --yellow-soft: #FFF5A8;
  --paper: #F7F7F3;
  --paper-2: #EFEFE9;
  --white: #ffffff;
  --line: #DEE0E8;
  --muted: #5C6478;
  --muted-2: #8B91A3;
  --green: #1F8A5B;

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(16, 23, 58, .05);
  --shadow: 0 30px 70px -35px rgba(16, 23, 58, .35);
  --container: 1200px;
  --header-h: 82px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
svg { display: inline-block; }

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

[id] { scroll-margin-top: 104px; }

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ==========================================================================
   Tipografía
   ========================================================================== */

.display {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.038em;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.012em;
  color: var(--indigo);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
  flex: none;
}
.eyebrow--light { color: var(--yellow); }

.lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 55ch;
}

.small-note {
  margin: 22px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .56);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--indigo);
  text-decoration: none;
}
.text-link .icon { width: 13px; height: 13px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link--light { color: rgba(255, 255, 255, .8); }
.text-link--light:hover { color: var(--yellow); }

/* ==========================================================================
   Botones
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn .icon { width: 15px; height: 15px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--indigo); color: #fff; }
.btn--primary:hover { background: var(--indigo-700); box-shadow: 0 14px 28px -16px rgba(47, 60, 161, .9); }

.btn--accent { background: var(--yellow); color: var(--ink); }
.btn--accent:hover { background: #FFE633; box-shadow: 0 14px 28px -18px rgba(16, 23, 58, .5); }

.btn--ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .55); }

.btn--outline { border-color: var(--line); color: var(--indigo); background: transparent; }
.btn--outline:hover { border-color: var(--indigo); background: #fff; }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #070C26; }

.btn--outline-dark { border-color: rgba(16, 23, 58, .32); color: var(--ink); }
.btn--outline-dark:hover { border-color: var(--ink); background: rgba(255, 255, 255, .35); }

.btn--sm { height: 42px; padding: 0 18px; font-size: 12px; }
.btn--block { width: 100%; }

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  font-size: 11.5px;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 38px;
}
.topbar__note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  letter-spacing: .01em;
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(250, 218, 0, .55);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(250, 218, 0, .5); }
  70% { box-shadow: 0 0 0 7px rgba(250, 218, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(250, 218, 0, 0); }
}
.topbar__links { display: flex; align-items: center; gap: 22px; }
.topbar__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.topbar__links a:hover { color: var(--yellow); }
.topbar__links .icon { width: 12px; height: 12px; color: var(--yellow); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(16, 23, 58, .45);
  background: rgba(255, 255, 255, .98);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}
.brand { flex: none; display: block; }
.brand img {
  width: auto;
  height: 42px;
  transition: height .25s;
}
.site-header.is-scrolled .brand img { height: 38px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover,
.nav a.is-active { color: var(--indigo); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.header__cta { flex: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--indigo);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle .icon { width: 18px; height: 18px; }
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 118px 24px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(90% 55% at 100% 0%, rgba(47, 60, 161, .55) 0%, transparent 65%),
    var(--ink);
  color: #fff;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu[hidden] { display: none !important; }
.mobile-menu.is-open { opacity: 1; transform: none; }
.mobile-menu nav { display: grid; gap: 0; }
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
  text-decoration: none;
}
.mobile-menu nav a span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .55);
}
.mobile-menu nav a:hover { color: var(--yellow); }
.mobile-menu__foot { display: grid; gap: 14px; padding-top: 8px; }
.mobile-menu__foot > a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  text-decoration: none;
}
.mobile-menu__foot .icon { width: 15px; height: 15px; color: var(--yellow); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(52px, 6vw, 78px) 0 136px;
  background:
    radial-gradient(120% 130% at 82% 12%, #3342AE 0%, #1C2660 45%, #141A4A 100%);
  color: #fff;
  isolation: isolate;
}
.hero__glow {
  position: absolute;
  top: -220px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 218, 0, .16) 0%, rgba(250, 218, 0, 0) 65%);
  pointer-events: none;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: radial-gradient(120% 90% at 60% 20%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 60% 20%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .86fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.hero__copy { max-width: 660px; }
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.45rem, 4.1vw, 3.95rem);
  font-weight: 600;
  line-height: 1.015;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero h1 em {
  display: inline;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
  color: var(--yellow);
}
.hero__lead {
  max-width: 48ch;
  margin: 24px 0 0;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .7);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 34px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  list-style: none;
  font-size: 12px;
  color: rgba(255, 255, 255, .68);
}
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust .icon { width: 13px; height: 13px; color: var(--yellow); }

.hero__media {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  z-index: 2;
}
.hero__frame {
  position: relative;
  z-index: 1;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55);
}
.hero__frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 900 / 950;
  object-fit: cover;
}
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 23, 58, .35) 100%);
  pointer-events: none;
}
.hero__tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.hero__shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 46%;
  height: 38%;
  border-radius: var(--radius-lg);
  background: var(--yellow);
  z-index: 0;
}
.hero__card {
  position: absolute;
  left: -54px;
  bottom: 30px;
  z-index: 3;
  display: grid;
  gap: 2px;
  width: 246px;
  padding: 17px 20px 16px;
  border-left: 4px solid var(--yellow);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .5);
}
.hero__card-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--indigo);
}
.hero__card strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.25;
}
.hero__card > span:last-child { font-size: 11.5px; color: var(--muted); }

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.hero__copy > * { animation: rise .8s cubic-bezier(.22, .61, .36, 1) both; }
.hero__copy > *:nth-child(1) { animation-delay: .05s; }
.hero__copy > *:nth-child(2) { animation-delay: .12s; }
.hero__copy > *:nth-child(3) { animation-delay: .2s; }
.hero__copy > *:nth-child(4) { animation-delay: .28s; }
.hero__copy > *:nth-child(5) { animation-delay: .36s; }
.hero__media { animation: rise .95s cubic-bezier(.22, .61, .36, 1) .22s both; }

/* ==========================================================================
   Selector de intención
   ========================================================================== */

.intent-wrap {
  position: relative;
  z-index: 6;
  margin-top: -72px;
}
.intent {
  display: grid;
  grid-template-columns: minmax(190px, .85fr) minmax(0, 1.55fr) auto;
  align-items: center;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.intent__head h2 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.intent__head p { margin: 0; font-size: 11px; color: var(--muted-2); }
.intent__options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.intent__option {
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.intent__option:hover { border-color: var(--indigo); color: var(--indigo); }
.intent__option.is-active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.intent__cta { height: 44px; padding: 0 20px; font-size: 12px; }

/* ==========================================================================
   Secciones
   ========================================================================== */

.section { padding: clamp(72px, 8.5vw, 112px) 0; }
.section--alt {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark {
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 48px;
}
.section-head__text {
  justify-self: end;
  max-width: 40ch;
  margin: 0 0 4px;
  padding-left: 20px;
  border-left: 2px solid var(--yellow);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   Nosotros
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: start;
  gap: clamp(44px, 6vw, 90px);
}
.about .lead { margin-top: 22px; }
.about .display { max-width: 13ch; }

.quote-card {
  position: relative;
  margin: 38px 0 0;
  padding: 34px 34px 28px;
  border-radius: 20px;
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
}
.quote-card__mark {
  position: absolute;
  top: -26px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 128px;
  line-height: 1;
  color: var(--ink);
  opacity: .14;
  pointer-events: none;
}
.quote-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.32;
  letter-spacing: -.025em;
}
.quote-card figcaption {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .62;
}

.principles {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.principles li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.principles__num {
  padding-top: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--indigo);
}
.principles h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.principles p {
  max-width: 44ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   Servicios
   ========================================================================== */

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.service__num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted-2);
}
.service__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #EEF0FA;
  color: var(--indigo);
  transition: background .25s, color .25s;
}
.service__icon .icon { width: 21px; height: 21px; }
.service h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.022em;
}
.service p {
  flex: 1;
  margin: 0 0 22px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}
.service__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  margin-top: auto;
  color: var(--indigo);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.service__link .icon { width: 13px; height: 13px; transition: transform .2s; }
.service:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 60, 161, .42);
  box-shadow: 0 24px 44px -32px rgba(16, 23, 58, .4);
}
.service:hover .service__icon { background: var(--indigo); color: #fff; }
.service:hover .service__link .icon { transform: translateX(4px); }

/* ==========================================================================
   Proyecto
   ========================================================================== */

.project { padding: clamp(80px, 9vw, 120px) 0; }
.project .display { color: #fff; }
.project .display em { color: var(--yellow); }
.project__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 80px);
}
.project__lead {
  max-width: 45ch;
  margin: 22px 0 30px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .68);
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 32px;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .13);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  list-style: none;
}
.facts li { display: grid; gap: 4px; padding: 15px 12px 15px 0; }
.facts span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .56);
}
.facts strong { font-size: 13px; font-weight: 600; color: #fff; }
.project__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.project__media { position: relative; }
.project__main {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.project__main img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.04 / 1;
  object-fit: cover;
  transition: transform .8s ease;
}
.project__media:hover .project__main img { transform: scale(1.025); }
.project__detail {
  position: absolute;
  left: -54px;
  bottom: -44px;
  width: 46%;
  margin: 0;
  overflow: hidden;
  border: 6px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .65);
}
.project__detail img {
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

/* ==========================================================================
   Propósito
   ========================================================================== */

.purpose {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 8vw, 104px) 0;
  color: #fff;
}
.purpose__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.purpose__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(16, 23, 58, .97) 0%, rgba(20, 26, 74, .93) 52%, rgba(47, 60, 161, .7) 100%);
}
.purpose__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.purpose__quote blockquote {
  max-width: 27ch;
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.028em;
  text-wrap: balance;
}
.purpose__sign {
  margin: 0;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.purpose__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  list-style: none;
}
.purpose__list li {
  display: flex;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.purpose__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .09);
  color: var(--yellow);
  flex: none;
}
.purpose__icon .icon { width: 16px; height: 16px; }
.purpose__list div { display: grid; gap: 3px; }
.purpose__list strong { font-size: 12.5px; font-weight: 600; color: #fff; }
.purpose__list span { font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, .55); }

/* ==========================================================================
   Proceso
   ========================================================================== */

.process { background: var(--paper); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.steps li {
  position: relative;
  padding: 30px 26px 0 0;
  border-right: 1px solid var(--line);
}
.steps li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--paper);
}
.steps li:last-child { border-right: 0; padding-right: 0; }
.steps li:not(:first-child) { padding-left: 26px; }
.steps__num {
  display: block;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(47, 60, 161, .55);
  transition: color .25s, -webkit-text-stroke-color .25s;
}
.steps h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.022em;
}
.steps p {
  max-width: 30ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.steps li:hover .steps__num {
  color: var(--indigo);
  -webkit-text-stroke-color: var(--indigo);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(44px, 7vw, 90px);
}
.faq__intro .lead { max-width: 36ch; margin: 20px 0 26px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.015em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--indigo); }
.faq__plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--indigo);
  flex: none;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.faq__plus .icon { width: 12px; height: 12px; }
.faq details[open] .faq__plus {
  transform: rotate(45deg);
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.faq__body { padding: 0 42px 22px 0; }
.faq__body p {
  max-width: 62ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact { background: var(--paper); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start;
  gap: clamp(36px, 5vw, 64px);
}
.contact__main .lead { margin: 20px 0 30px; max-width: 47ch; }

.form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 34px 70px -58px rgba(16, 23, 58, .55);
}
.form[hidden] { display: none; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.field { display: flex; flex-direction: column; margin-bottom: 17px; }
.field label {
  margin-bottom: 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink);
}
.field label span { color: var(--indigo); }
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #FBFBF8;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea {
  height: auto;
  min-height: 108px;
  padding: 12px 14px;
  line-height: 1.6;
  resize: vertical;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235C6478' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.field input::placeholder,
.field textarea::placeholder { color: #A2A7B5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 60, 161, .11);
}
.field.is-invalid input,
.field.is-invalid select { border-color: #C0392B; background: #FFF8F7; }
.field__error {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: #B03124;
}
.field__error:empty { display: none; }

.field.is-flash input,
.field.is-flash select,
.field.is-flash textarea {
  animation: fieldFlash 1.2s ease;
}
@keyframes fieldFlash {
  0% { border-color: var(--yellow); box-shadow: 0 0 0 0 rgba(250, 218, 0, .8); }
  55% { border-color: var(--indigo); box-shadow: 0 0 0 7px rgba(250, 218, 0, 0); }
  100% { box-shadow: none; }
}
.check.is-invalid { color: #B03124; }
.check.is-invalid input { outline: 2px solid rgba(176, 49, 36, .4); outline-offset: 2px; }

.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 3px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--indigo);
  cursor: pointer;
}
.check a { color: var(--indigo); font-weight: 600; }
.form .btn--block { margin-top: 20px; }

.form__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--muted);
}
.form__note .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

.form-success {
  padding: clamp(26px, 3.5vw, 38px);
  border: 1px solid #C9E8D8;
  border-radius: 22px;
  background: #F3FBF6;
}
.form-success[hidden] { display: none; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.form-success__icon .icon { width: 22px; height: 22px; }
.form-success h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.03em;
}
.form-success p {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.form-success__summary {
  display: grid;
  gap: 5px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, .75);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
}
.form-success__summary span { color: var(--muted); }

.contact__card {
  position: sticky;
  top: 108px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 22px;
  background:
    radial-gradient(230px 230px at 100% 0%, rgba(250, 218, 0, .16) 0%, transparent 68%),
    linear-gradient(155deg, #1B2560 0%, #141A4A 100%);
  color: #fff;
  box-shadow: 0 36px 70px -45px rgba(16, 23, 58, .8);
}
.contact__logo {
  width: auto;
  height: 36px;
  margin-bottom: 18px;
}
.contact__pitch {
  max-width: 33ch;
  margin: 0 0 20px;
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .62);
}
.contact__list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.contact__list li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.contact__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--yellow);
  flex: none;
}
.contact__icon .icon { width: 15px; height: 15px; }
.contact__list div { display: grid; gap: 2px; }
.contact__list div > span {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .56);
}
.contact__list a,
.contact__list strong {
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__list a:hover { color: var(--yellow); }

/* ==========================================================================
   CTA final
   ========================================================================== */

.cta-band {
  padding: clamp(48px, 6vw, 72px) 0;
  background: var(--yellow);
  color: var(--ink);
}
.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
}
.cta-band .eyebrow { color: var(--indigo); }
.cta-band .eyebrow::before { background: var(--indigo); }
.cta-band .display { margin-top: 8px; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.cta-band .display em { color: var(--indigo); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  padding: clamp(54px, 7vw, 78px) 0 0;
  background: var(--ink);
  color: rgba(255, 255, 255, .6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}
.footer__brand img {
  width: auto;
  height: 42px;
  margin-bottom: 18px;
}
.footer__brand p {
  max-width: 34ch;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
}
.footer__social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.footer__social a {
  color: var(--yellow);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer__social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__col h2 {
  margin: 0 0 16px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.footer__col a {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .62);
  font-size: 12.5px;
  text-decoration: none;
  transition: color .2s;
}
.footer__col a:hover { color: #fff; }
.footer__contact p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.6;
}
.footer__hours { color: rgba(255, 255, 255, .5) !important; font-size: 10.5px !important; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 10.5px;
  color: rgba(255, 255, 255, .56);
}
.footer__bottom p { margin: 0; }
.footer__bottom div { display: flex; gap: 18px; }
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: #fff; }

/* ==========================================================================
   Acciones flotantes
   ========================================================================== */

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { transform: scale(1.06); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); }

.mobile-bar {
  display: none;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 65;
  width: 100%;
  max-width: 100vw;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mobile-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 7px 4px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
}
.mobile-bar .icon { width: 18px; height: 18px; color: var(--indigo); }
.mobile-bar a:nth-child(2) .icon { color: #128C4A; }

/* ==========================================================================
   Animaciones de entrada
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s cubic-bezier(.22, .61, .36, 1), transform .75s cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1120px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); }
  .hero__card { left: -30px; }
  .project__detail { left: -30px; }
}

@media (max-width: 1024px) {
  .about,
  .project__grid,
  .purpose__inner,
  .faq__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }
  .about .display { max-width: 18ch; }
  .principles { margin-top: 12px; }
  .project__media { max-width: 720px; }
  .project__detail { left: auto; right: -18px; bottom: -30px; width: 38%; }
  .purpose__quote blockquote { max-width: 34ch; }
  .purpose__list { max-width: 620px; }
  .faq__intro .lead { max-width: 52ch; }
  .contact__card { position: static; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head__text { justify-self: start; max-width: 55ch; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 24px; align-items: baseline; }
  .footer__contact h2 { flex-basis: 100%; }
  .footer__contact p { margin: 0 24px 0 0; }
}

@media (max-width: 900px) {
  .nav,
  .header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__inner { min-height: 74px; }
  .brand img { height: 38px; }
  .site-header.is-scrolled .brand img { height: 35px; }

  .hero { padding-bottom: 122px; }
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__copy { max-width: 640px; }
  .hero__media { max-width: 520px; margin: 0 auto; }
  .hero__card { left: 14px; bottom: 14px; }
  .hero__shape { top: -14px; right: -14px; }

  .intent { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .intent__cta { width: 100%; }
  .intent__options { gap: 6px; }

  .services { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2) { border-right: 0; }
  .steps li:nth-child(3),
  .steps li:nth-child(4) { border-top: 1px solid var(--line); padding-top: 26px; }
  .steps li:nth-child(3) { padding-left: 0; }
  .steps li:nth-child(3)::before,
  .steps li:nth-child(4)::before { top: -4px; }

  .cta-band__inner { grid-template-columns: 1fr; gap: 26px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .wa-float .icon { width: 24px; height: 24px; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 36px, var(--container)); }
  .topbar__links a:last-child { display: none; }
  .topbar__note { font-size: 10.5px; }
  .hero h1 { font-size: clamp(2.2rem, 8.4vw, 3rem); }
  .hero__lead { font-size: 14.5px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__trust { gap: 8px 18px; font-size: 11.5px; }
  .hero__card { width: 214px; padding: 14px 16px; }
  .hero__card strong { font-size: 16px; }

  .services { grid-template-columns: 1fr; }
  .service { padding: 24px 22px 22px; }
  .project__detail { right: 12px; bottom: -24px; width: 42%; border-width: 4px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:last-child { grid-column: 1 / -1; }
  .purpose__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li,
  .steps li:not(:first-child),
  .steps li:nth-child(3),
  .steps li:nth-child(4) {
    padding: 24px 0 24px 26px;
    border-right: 0;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .steps li::before { left: -4px; top: 30px; }
  .steps li:first-child { border-top: 0; }
  .steps li:last-child { border-bottom: 1px solid var(--line); }
  .steps__num { font-size: 2.6rem; margin-bottom: 10px; }

  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form { padding: 22px 18px; }
  .faq__body { padding-right: 0; }
  .faq summary { font-size: 14.5px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__contact { grid-column: 1 / -1; display: block; }
  .footer__contact p { margin: 0 0 8px; }
  .footer__bottom div { flex-wrap: wrap; gap: 12px; }

  .mobile-bar { display: grid; }
  .wa-float { display: none; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .mobile-menu { padding-top: 102px; }
}

@media (max-width: 640px) {
  .topbar__links { display: none; }
  .topbar__inner { justify-content: center; min-height: 34px; }
}

@media (max-width: 480px) {
  .topbar__inner { min-height: 34px; }
  .topbar__note span.pulse { display: none; }
  .hero { padding-top: 44px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__tag { top: 12px; left: 12px; }
  .intent__options { display: grid; grid-template-columns: 1fr 1fr; }
  .intent__option { width: 100%; }
  .quote-card { padding: 28px 24px 24px; }
  .section-head { margin-bottom: 34px; }
  .contact__card { padding: 24px 20px; }
  .footer__bottom { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

