/* ============================================================
   Constructora Colpatria — Landing exterior
   Fase 1 prototype · fuente de verdad visual (tokens + sistema)
   Marca: Manual de Identidad Constructora Colpatria 2021
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Color — marca */
  --red:         #DA291C;
  --red-dark:    #AB2328;
  --red-deep:    #8E1B20;
  --black:       #101820;
  --ink:         #101820;
  --ink-soft:    #4A5258;
  --ink-faint:   #677077;   /* darkened from brand #8A9097 → ≈5:1 on white for legible captions */
  --ink-hint:    #8A9097;   /* original tone — decorative only, never body text */
  --bg:          #FFFFFF;
  --bg-alt:      #F7F8F8;
  --gray-light:  #D9E1E2;
  --line:        #E3E6E7;
  --line-soft:   #EFF1F2;
  --accent-soft: #FCE9E7;

  /* On-dark text ramp */
  --on-dark:        rgba(255,255,255,0.96);
  --on-dark-soft:   rgba(255,255,255,0.74);
  --on-dark-faint:  rgba(255,255,255,0.52);
  --on-dark-line:   rgba(255,255,255,0.16);
  --on-dark-fill:   rgba(255,255,255,0.07);

  /* Type */
  --sans:  "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius */
  --r-lg: 32px;
  --r-md: 16px;
  --r-sm: 8px;
  --r-pill: 999px;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
  --shell-narrow: 880px;

  /* Shadow */
  --shadow-brand: 30px 10px 40px -16px rgba(112,144,176,0.22);
  --shadow-card:  0 1px 2px rgba(16,24,32,0.04), 0 12px 32px -12px rgba(16,24,32,0.14);
  --shadow-float: 0 18px 50px -12px rgba(16,24,32,0.30);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);      /* ease-out-quart-ish */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.55s;

  /* Z-scale (semantic) */
  --z-header: 100;
  --z-floating: 200;
  --z-tray: 300;
  --z-modal: 500;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.calc :focus-visible, .hero :focus-visible, .testimonials :focus-visible,
.cta :focus-visible, .site-footer :focus-visible, .why :focus-visible { outline-color: #fff; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-sm);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.shell { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: var(--gutter); }
.shell-narrow { max-width: var(--shell-narrow); }

/* ---------- Type system ---------- */
.section-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.section-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--red);
}
.section-title-light { color: var(--on-dark); }
.section-title-light em { color: #fff; }

.section-lede {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
  text-wrap: pretty;
}
.section-lede-light { color: var(--on-dark-soft); }

.section-head { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head-center { text-align: center; }
.section-head-center .section-title { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--sans); font-weight: 700; font-size: 0.98rem; white-space: nowrap;
  padding: 0.95em 1.5em; border-radius: var(--r-pill);
  transition: transform 0.25s var(--ease-out), background-color 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out), color 0.25s var(--ease-out);
  will-change: transform;
}
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-block { width: 100%; }

.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px -10px rgba(218,41,28,0.6); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(218,41,28,0.55); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--gray-light); color: var(--ink-faint); box-shadow: none; cursor: not-allowed; transform: none; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(0,0,0,0.4); }

.btn-outline-light { background: rgba(255,255,255,0.06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: rgba(255,255,255,0.14); }

.btn-ghost { background: transparent; color: var(--ink-soft); padding-inline: 0.6em; }
.btn-ghost:hover { color: var(--ink); }

.link-btn { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16,24,32,0.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-logo { height: 30px; width: auto; }
.brand-logo-footer { height: 32px; }
@media (max-width: 620px) { .brand-logo { height: 26px; } }

.nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a { font-size: 0.94rem; font-weight: 600; color: var(--ink-soft); position: relative; padding-block: 0.4rem; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease-out); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 0.7rem; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 700; color: #128C7E;
  padding: 0.55rem 0.85rem; border-radius: var(--r-pill);
  background: rgba(18,140,126,0.08); transition: background-color 0.2s var(--ease-out);
}
.wa-btn:hover { background: rgba(18,140,126,0.16); }
.wa-btn svg { width: 19px; height: 19px; }
.wa-btn-block { justify-content: center; width: 100%; padding-block: 0.9rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { border-top: 1px solid var(--line); padding: 1rem var(--gutter) 1.5rem; background: #fff; }
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a { padding: 0.85rem 0; font-weight: 700; font-size: 1.05rem; border-bottom: 1px solid var(--line-soft); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 1.2rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(115deg, rgba(142,27,32,0.94) 0%, rgba(218,41,28,0.88) 52%, rgba(171,35,40,0.92) 100%),
    url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=72") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 0%, transparent 40%, rgba(16,24,32,0.45) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.86rem; font-weight: 600; color: var(--on-dark);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  padding: 0.5rem 0.95rem; border-radius: var(--r-pill); backdrop-filter: blur(4px);
}
.ping { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); } 70%,100% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } }

.hero-title {
  margin-top: 1.4rem;
  font-weight: 800;
  font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5.4rem);
  line-height: 0.98; letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero-claim {
  display: block; margin-top: 0.5rem;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 1rem + 2.4vw, 3rem); letter-spacing: -0.01em;
  color: #fff; opacity: 0.95;
}
.hero-lede { margin-top: 1.6rem; max-width: 46ch; font-size: clamp(1rem, 0.96rem + 0.4vw, 1.18rem); color: #fff; line-height: 1.62; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin-top: 2.6rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.2); }
.trust-item dt { font-family: var(--mono); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -0.03em; line-height: 1; }
.trust-num span { color: rgba(255,255,255,0.7); }
.trust-item dd { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 500; color: #fff; line-height: 1.35; }

/* Hero form / quick quote */
.hero-form-wrap { justify-self: end; width: 100%; max-width: 460px; }
.quote-card {
  position: relative;
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg); padding: clamp(1.4rem, 2.5vw, 2.1rem);
  box-shadow: var(--shadow-float);
}
.quote-head { margin-bottom: 1.3rem; }
.quote-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.quote-sub { margin-top: 0.4rem; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }

/* ---------- Form fields (shared) ---------- */
.field { margin-bottom: 1.05rem; }
.field > label, .field-label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.field input[type=text], .field input[type=tel], .field input[type=email],
.select-wrap select, .lead-form select, .quote-card select:not(.phone-code) {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--bg-alt); font-size: 0.96rem;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus, .select-wrap select:focus, .lead-form select:focus {
  border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(218,41,28,0.1); outline: none;
}
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.select-wrap select { appearance: none; cursor: pointer; }

.field-error { margin-top: 0.4rem; font-size: 0.8rem; font-weight: 600; color: var(--red); }
.form-fineprint { margin-top: 0.9rem; font-size: 0.76rem; color: var(--ink-faint); line-height: 1.5; text-align: center; }
.form-fineprint a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }

/* Phone row: flag + dial + number, unified typography */
.phone-row { display: flex; gap: 0.5rem; }
.phone-code-wrap { position: relative; flex: 0 0 auto; }
.phone-code {
  appearance: none; height: 100%; padding: 0.85rem 2rem 0.85rem 0.9rem;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg-alt);
  font-family: var(--sans); font-size: 0.96rem; font-weight: 600; cursor: pointer; min-width: 96px;
  transition: border-color 0.2s var(--ease-out);
}
.phone-code-wrap::after { content: ""; position: absolute; right: 0.8rem; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.phone-code:focus { border-color: var(--red); outline: none; }
.phone-row input { flex: 1 1 auto; min-width: 0; }

/* Chip grid (country radios) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.chip {
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--r-pill);
  background: var(--bg-alt); font-size: 0.88rem; font-weight: 600; color: var(--ink-soft);
  transition: all 0.2s var(--ease-out); text-align: center;
}
.chip-grid-3 .chip { border-radius: var(--r-sm); }
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip.is-active { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 6px 16px -8px rgba(218,41,28,0.6); }

/* Option grid (rich radio cards) */
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.option-card {
  display: flex; flex-direction: column; gap: 0.15rem; text-align: left;
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--bg-alt); transition: all 0.2s var(--ease-out);
}
.option-card:hover { border-color: var(--ink-faint); }
.option-card.is-active { border-color: var(--red); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--red) inset; }
.opt-label { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
.opt-sub { font-size: 0.78rem; color: var(--ink-faint); }
.option-card.is-active .opt-sub { color: var(--ink-soft); }

/* Success states */
.form-success, .lead-success {
  text-align: center; padding: 2rem 0.5rem;
}
.success-check {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 1rem;
  border-radius: 50%; background: var(--accent-soft); color: var(--red); font-size: 1.6rem; font-weight: 700;
}
.form-success h3, .lead-success h3 { font-size: 1.3rem; font-weight: 800; }
.form-success p, .lead-success p { margin-top: 0.6rem; color: var(--ink-soft); }
.form-success:not([hidden]) { animation: pop 0.5s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

/* ============================================================
   POR QUÉ (dark)
   ============================================================ */
.why { background: var(--ink); color: var(--on-dark); padding-block: clamp(4rem, 8vw, 7.5rem); }
.why-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.group-badge { display: inline-flex; align-items: center; gap: 0.85rem; margin-top: 1.8rem; padding: 0.7rem 1.1rem 0.7rem 0.7rem; border: 1px solid var(--on-dark-line); border-radius: var(--r-pill); background: var(--on-dark-fill); }
.group-seal { width: 40px; height: auto; object-fit: contain; flex: 0 0 auto; }
.group-badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.group-lab { font-size: 0.72rem; color: var(--on-dark-faint); }
.group-name { font-size: 0.98rem; font-weight: 800; }
.why-figure { margin-top: 2.2rem; border-radius: var(--r-md); overflow: hidden; }
.why-figure img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

.stats-block { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--on-dark-line); border: 1px solid var(--on-dark-line); border-radius: var(--r-md); overflow: hidden; }
.stat { background: var(--ink); padding: clamp(1.4rem, 2.5vw, 2.2rem); }
.stat-num { font-family: var(--mono); font-weight: 700; font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); letter-spacing: -0.03em; color: #fff; line-height: 1; }
.stat dd { margin-top: 0.6rem; font-size: 0.86rem; color: var(--on-dark-soft); line-height: 1.4; }

/* ============================================================
   PROCESO
   ============================================================ */
.process { background: var(--bg-alt); padding-block: clamp(4rem, 8vw, 7.5rem); }
.process-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); counter-reset: none; }
.process-step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.6rem 1.5rem 1.7rem; transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.process-num { font-family: var(--mono); font-weight: 700; font-size: 0.92rem; color: var(--red); letter-spacing: 0.02em; }
.process-of { color: var(--ink-faint); }
.process-icon { width: 30px; height: 30px; margin: 1.1rem 0 1rem; stroke: var(--ink); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.process-step h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.process-step p { margin-top: 0.55rem; font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }

/* ============================================================
   PROYECTOS
   ============================================================ */
.projects { padding-block: clamp(4rem, 8vw, 7.5rem); position: relative; }
.projects-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: end; }
.currency-block { justify-self: end; max-width: 360px; text-align: right; }
.currency-switch { display: inline-flex; padding: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-pill); }
.currency-switch button { padding: 0.5rem 0.85rem; border-radius: var(--r-pill); font-family: var(--mono); font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); transition: all 0.2s var(--ease-out); }
.currency-switch button.is-active { background: var(--ink); color: #fff; }
.trm-note { margin-top: 0.7rem; font-size: 0.72rem; line-height: 1.45; color: var(--ink-faint); }

.filters-bar { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 0.95rem; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); transition: all 0.2s var(--ease-out); }
.filter-chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-chip .count { font-family: var(--mono); font-size: 0.72rem; opacity: 0.6; }
.filter-selects { display: flex; gap: 1rem; align-items: center; }
.filter-select { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; font-weight: 600; color: var(--ink-faint); }
.filter-select select { padding: 0.5rem 0.7rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 0.86rem; font-weight: 600; color: var(--ink); cursor: pointer; }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(1rem, 2vw, 1.6rem); }
.project-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  transition: transform 0.32s var(--ease-out), box-shadow 0.32s var(--ease-out), border-color 0.32s var(--ease-out);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); border-color: transparent; }
.project-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--gray-light); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.project-card:hover .project-img img { transform: scale(1.05); }
.project-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.32rem 0.65rem; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; background: rgba(255,255,255,0.92); color: var(--ink); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.badge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.badge.state { background: var(--ink); color: #fff; }
.badge.state-preventa { background: var(--red); }
.project-compare {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--ink); font-size: 1.15rem; font-weight: 700;
  display: grid; place-items: center; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: all 0.2s var(--ease-out); box-shadow: 0 2px 8px rgba(16,24,32,0.15);
}
.project-compare:hover { transform: scale(1.08); }
.project-compare.is-active { background: var(--red); color: #fff; }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.3rem 1.4rem; }
.project-meta-row { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--ink-faint); font-weight: 600; }
.project-meta-row .city { color: var(--red); }
.project-name { margin-top: 0.4rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.project-features { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 0.7rem; font-size: 0.82rem; color: var(--ink-soft); }
.project-features strong { color: var(--ink); font-family: var(--mono); }
.project-price-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 1rem; }
.project-price { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); }
.project-price .cur { font-size: 0.72rem; color: var(--ink-faint); margin-right: 0.25rem; }
.project-price-cop { font-size: 0.74rem; color: var(--ink-faint); margin-top: 0.15rem; }
.project-cta { font-size: 0.86rem; font-weight: 700; color: var(--red); white-space: nowrap; }
.projects-empty { text-align: center; padding: 4rem 0; color: var(--ink-faint); }

/* Compare tray */
.compare-tray {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%);
  z-index: var(--z-tray); display: flex; align-items: center; gap: 1rem;
  background: var(--ink); color: #fff; padding: 0.8rem 0.9rem 0.8rem 1.4rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-float); transition: transform 0.4s var(--ease-out-expo); max-width: calc(100vw - 32px);
}
.compare-tray.is-visible { transform: translate(-50%, 0); }
.compare-count { font-size: 0.9rem; white-space: nowrap; }
.compare-count strong { font-family: var(--mono); }
.compare-hint { font-size: 0.78rem; color: var(--on-dark-faint); }
.compare-tray .btn-primary { padding-block: 0.7em; }
.compare-clear { font-size: 0.84rem; font-weight: 600; color: var(--on-dark-soft); padding: 0.4rem 0.6rem; }
.compare-clear:hover { color: #fff; }

/* ============================================================
   SIMULADOR (dark)
   ============================================================ */
.calc { background: var(--ink); color: var(--on-dark); padding-block: clamp(4rem, 8vw, 7.5rem); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.calc-controls { background: var(--on-dark-fill); border: 1px solid var(--on-dark-line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); }
.calc-tabs { display: flex; padding: 4px; background: rgba(0,0,0,0.25); border-radius: var(--r-pill); margin-bottom: 1.8rem; }
.calc-tab { flex: 1; padding: 0.7rem; border-radius: var(--r-pill); font-weight: 700; font-size: 0.92rem; color: var(--on-dark-soft); transition: all 0.25s var(--ease-out); }
.calc-tab.is-active { background: #fff; color: var(--ink); }
.calc-field { margin-bottom: 1.6rem; }
.calc-field-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.calc-field-head label { font-size: 0.9rem; font-weight: 600; color: var(--on-dark-soft); }
.calc-value { font-size: 0.9rem; color: var(--on-dark-soft); }
.calc-value em { font-family: var(--mono); font-style: normal; font-weight: 700; color: #fff; font-size: 1.05rem; }
.calc-cur { font-size: 0.72rem; color: var(--on-dark-faint); margin-right: 0.3rem; }
.calc-hint { margin-top: 0.5rem; font-size: 0.74rem; color: var(--on-dark-faint); }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.18); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--red); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); transition: transform 0.15s var(--ease-out); }
.slider::-webkit-slider-thumb:hover { transform: scale(1.12); }
.slider::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--red); cursor: pointer; }

.calc-segments { display: flex; gap: 0.6rem; }
.calc-seg { flex: 1; padding: 0.85rem 0.6rem; border-radius: var(--r-pill); border: 1.5px solid var(--on-dark-line); background: transparent; color: var(--on-dark-soft); font-weight: 700; font-size: 0.86rem; font-family: var(--mono); transition: all 0.2s var(--ease-out); }
.calc-seg.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.calc-result { background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); color: #fff; box-shadow: var(--shadow-float); }
.calc-result-head { font-size: 0.92rem; font-weight: 600; color: #fff; }
.calc-big { display: flex; align-items: baseline; gap: 0.4rem; margin-top: 0.5rem; }
.calc-big .calc-cur { color: rgba(255,255,255,0.75); font-size: 0.95rem; }
.calc-big em { font-family: var(--mono); font-style: normal; font-weight: 700; font-size: clamp(2.4rem, 1.8rem + 2.5vw, 3.6rem); letter-spacing: -0.03em; line-height: 1; }
.calc-breakdown { margin: 1.6rem 0; display: grid; gap: 0.1rem; }
.calc-line { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.18); font-size: 0.88rem; }
.calc-line .label { color: rgba(255,255,255,0.96); }
.calc-line .val { font-family: var(--mono); font-weight: 600; }
.calc-line.total { border-bottom: none; margin-top: 0.3rem; padding-top: 0.9rem; border-top: 2px solid rgba(255,255,255,0.4); font-weight: 700; }
.calc-line.total .label { color: #fff; font-weight: 700; }
.calc-result .btn-light { margin-top: 0.5rem; }
.calc-subnote { margin-top: 0.55rem; font-size: 0.88rem; color: #fff; }
.calc-subnote strong { font-family: var(--mono); font-weight: 700; }
.calc-reassure { display: flex; align-items: center; gap: 0.55rem; margin-top: 1.1rem; padding: 0.65rem 0.9rem; background: rgba(255,255,255,0.15); border-radius: var(--r-sm); font-size: 0.84rem; font-weight: 600; line-height: 1.4; color: #fff; }
.calc-reassure-ico { flex: 0 0 auto; }
.calc-disclaimer { margin-top: 1.3rem; font-size: 0.72rem; line-height: 1.55; color: #fff; }

/* ============================================================
   TESTIMONIOS (red)
   ============================================================ */
.testimonials { background: linear-gradient(165deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; padding-block: clamp(4rem, 8vw, 7.5rem); }
.testimonials .section-lede-light { color: rgba(255,255,255,0.96); }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.testimonial { display: flex; flex-direction: column; gap: 1.4rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-md); padding: 1.8rem; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.testimonial blockquote { font-size: 1.02rem; line-height: 1.6; color: #fff; }
.testimonial blockquote::before { content: "“"; font-family: var(--serif); font-size: 2.4rem; line-height: 0; vertical-align: -0.4em; margin-right: 0.1em; color: rgba(255,255,255,0.55); }
.testimonial figcaption { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.testi-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.18); font-family: var(--mono); font-weight: 700; font-size: 0.92rem; }
.testi-name { display: block; font-weight: 800; font-size: 0.95rem; }
.testi-where { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.96); }

/* ============================================================
   EQUIPO
   ============================================================ */
.team { padding-block: clamp(4rem, 8vw, 7.5rem); }
.team-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.slider-arrows { display: flex; gap: 0.6rem; flex: 0 0 auto; }
.slider-arrow { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all 0.2s var(--ease-out); }
.slider-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow:hover { background: var(--ink); border-color: var(--ink); }
.slider-arrow:hover svg { stroke: #fff; }
.team-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; }
.team-card { scroll-snap-align: start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.team-photo { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(150deg, color-mix(in oklab, var(--red) 18%, var(--bg-alt)), var(--bg-alt)); }
.team-initials { font-family: var(--mono); font-weight: 700; font-size: 2rem; color: var(--red); }
.team-photo-hint { position: absolute; bottom: 10px; right: 12px; font-size: 0.62rem; letter-spacing: 0.12em; font-weight: 700; color: var(--ink-faint); }
.team-info { padding: 1.3rem 1.4rem 1.5rem; }
.team-info h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.02em; }
.team-role { font-size: 0.86rem; font-weight: 700; color: var(--red); margin-top: 0.15rem; }
.team-coverage { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.1rem; }
.team-contact { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.team-contact a { display: flex; align-items: center; gap: 0.55rem; font-size: 0.82rem; color: var(--ink-soft); }
.team-contact a:hover { color: var(--red); }
.team-contact svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: 0 0 auto; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-block: clamp(4rem, 8vw, 7.5rem); }
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out); }
.faq-item[open] { border-color: transparent; box-shadow: var(--shadow-card); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font-weight: 700; font-size: 1.04rem; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 auto; width: 20px; height: 20px; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; background: var(--red); border-radius: 2px; transition: transform 0.3s var(--ease-out); }
.faq-icon::before { top: 9px; left: 2px; width: 16px; height: 2px; }
.faq-icon::after { top: 2px; left: 9px; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease-out); }
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { overflow: hidden; min-height: 0; padding: 0 1.5rem 1.4rem; color: var(--ink-soft); line-height: 1.65; max-width: 70ch; }

/* ============================================================
   DIVIDER
   ============================================================ */
.divider { position: relative; min-height: clamp(240px, 38vw, 420px); display: grid; place-items: center; overflow: hidden; }
.divider-bg { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(16,24,32,0.72), rgba(16,24,32,0.5)), url("https://images.unsplash.com/photo-1568632234157-ce7aecd03d0d?auto=format&fit=crop&w=1800&q=72") center/cover no-repeat; }
.divider-claim { position: relative; font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 1.4rem + 4vw, 4.6rem); color: #fff; letter-spacing: -0.01em; text-shadow: 0 2px 30px rgba(0,0,0,0.4); }

/* ============================================================
   CTA (red) + LEAD FORM
   ============================================================ */
.cta { background: linear-gradient(155deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; padding-block: clamp(4rem, 8vw, 7.5rem); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; }
.cta-title { font-weight: 800; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.cta-title em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.cta-points { list-style: none; padding: 0; margin-top: 2.2rem; display: flex; flex-direction: column; gap: 1.4rem; }
.cta-points li { display: flex; gap: 1rem; }
.cta-check { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.16); color: #fff; font-weight: 700; font-size: 0.95rem; }
.cta-points strong { display: block; font-size: 1.02rem; font-weight: 800; }
.cta-points p { margin-top: 0.2rem; font-size: 0.9rem; color: rgba(255,255,255,0.96); line-height: 1.5; }

.lead-form { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-float); }
.lead-project-tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; font-weight: 600; color: var(--red); background: var(--accent-soft); padding: 0.5rem 0.9rem; border-radius: var(--r-pill); margin-bottom: 1.2rem; }
.lead-project-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.lead-progress { display: flex; gap: 0.4rem; margin-bottom: 0.8rem; }
.lead-progress .seg { flex: 1; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.lead-progress .seg .fill { display: block; height: 100%; width: 100%; background: var(--red); border-radius: 999px; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out); }
.lead-progress .seg.is-done .fill, .lead-progress .seg.is-active .fill { transform: scaleX(1); }
.lead-step-label { font-size: 0.78rem; font-weight: 700; color: var(--ink-faint); margin-bottom: 1.3rem; }
.lead-step { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.lead-step[hidden] { display: none; }
.lead-step.is-active { animation: stepIn 0.4s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.lead-step-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1.3rem; }
.lead-step-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); }
.lead-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.lead-nav .btn-primary { margin-left: auto; }
.lead-error { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0 0; font-size: 0.85rem; font-weight: 600; color: var(--red); }
.lead-error > span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--red); color: #fff; font-size: 0.7rem; flex: 0 0 auto; }
.is-invalid { outline: 2px solid var(--red); outline-offset: 4px; border-radius: var(--r-sm); }
input.is-invalid, select.is-invalid { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(218,41,28,0.12); }
.lead-success-meta { margin-top: 0.5rem; font-size: 0.86rem; color: var(--ink-soft); }
.lead-success-wa { margin-top: 1.3rem; display: inline-flex; }
.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }
.btn.is-loading .arrow { opacity: 0; }
.btn.is-loading::after { content: ""; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2.5px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); color: var(--on-dark-soft); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand p { margin-top: 1.1rem; font-size: 0.9rem; line-height: 1.6; max-width: 38ch; }
.footer-claim { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: #fff; margin-top: 1rem !important; }
.footer-col h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-faint); font-weight: 700; margin-bottom: 1rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { font-size: 0.9rem; color: var(--on-dark-soft); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--on-dark-line); }
.footer-bottom p { font-size: 0.78rem; color: var(--on-dark-faint); }

/* ============================================================
   FLOATING CTA
   ============================================================ */
.floating-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-floating);
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.9rem 1.3rem;
  background: var(--red); color: #fff; font-weight: 700; font-size: 0.92rem; border-radius: var(--r-pill);
  box-shadow: var(--shadow-float); transform: translateY(150%); opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-out), background-color 0.2s;
}
.floating-cta.is-visible { transform: translateY(0); opacity: 1; }
.floating-cta:hover { background: var(--red-dark); }
.floating-cta svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   MODALS (native <dialog>)
   ============================================================ */
dialog { border: 0; padding: 0; margin: auto; background: transparent; max-width: min(960px, 94vw); max-height: 92vh; }
dialog::backdrop { background: rgba(16,24,32,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.compare-modal, .project-modal { width: min(960px, 94vw); background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-float); }
.project-modal { width: min(680px, 94vw); }
dialog[open] { animation: modalIn 0.35s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.8rem; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-head em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--red); }
.modal-close { width: 40px; height: 40px; border-radius: 50%; font-size: 1.6rem; color: var(--ink-soft); display: grid; place-items: center; transition: background-color 0.2s; }
.modal-close:hover { background: var(--bg-alt); color: var(--ink); }
.modal-body { padding: 1.8rem; overflow: auto; max-height: calc(92vh - 76px); }
.project-modal .modal-body { max-height: 92vh; }

/* Compare table */
.compare-scroll { overflow-x: auto; }
.compare-thumbs, .compare-row { display: grid; gap: 0.5rem; align-items: stretch; }
.compare-thumbs { margin-bottom: 0.5rem; }
.compare-thumb-card { text-align: center; }
.compare-thumb { aspect-ratio: 4/3; border-radius: var(--r-sm); overflow: hidden; margin-bottom: 0.6rem; background: var(--gray-light); }
.compare-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compare-cname { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }
.compare-cloc { font-size: 0.76rem; color: var(--ink-faint); }
.compare-cprice { font-family: var(--mono); font-weight: 700; margin: 0.4rem 0 0.7rem; }
.compare-cprice .cur { font-size: 0.7rem; color: var(--ink-faint); }
.compare-cta { width: 100%; padding-block: 0.7em; font-size: 0.86rem; }
.compare-row { padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem; }
.compare-row .label-col { font-weight: 700; color: var(--ink-soft); }
.compare-row .data-col { color: var(--ink); }
.compare-row .data-col.big { font-family: var(--mono); font-weight: 700; color: var(--red); }
.compare-label-only { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
.compare-empty { text-align: center; padding: 3rem 0; color: var(--ink-faint); }

/* Project modal body */
.pm-img { aspect-ratio: 16/9; max-height: 320px; border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.5rem; }
.pm-img img { width: 100%; height: 100%; object-fit: cover; }
.pm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.pm-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.pm-title span { color: var(--ink-faint); font-weight: 500; }
.pm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem; }
.pm-lab { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 0.3rem; }
.pm-price { font-family: var(--mono); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.02em; }
.pm-price .cur { font-size: 0.8rem; color: var(--ink-faint); }
.pm-cop { font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.2rem; }
.pm-specs { font-size: 0.92rem; line-height: 1.7; color: var(--ink-soft); }

/* ============================================================
   REVEAL ANIMATION (enhances already-visible default)
   ============================================================ */
/* Content is visible by default; only hidden once JS is present (progressive enhancement). */
.js-ready .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); will-change: opacity, transform; }
.js-ready .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-wrap { justify-self: stretch; max-width: 520px; }
  .why-grid { grid-template-columns: 1fr; }
  .projects-head { grid-template-columns: 1fr; }
  .currency-block { justify-self: start; text-align: left; }
  .calc-grid { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .nav, .header-cta, .wa-btn .wa-label { display: none; }
  .header-actions .wa-btn { padding: 0.6rem; min-height: 44px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 620px) {
  .header-inner { height: 64px; }
  .process-steps { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }
  .chip-grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .filters-bar { gap: 1rem; }
  .filter-selects { width: 100%; }
  .compare-tray { flex-wrap: wrap; justify-content: center; gap: 0.6rem; padding: 0.9rem 1rem; }
  .compare-hint { width: 100%; text-align: center; }
  .floating-cta span { display: none; }
  .floating-cta { padding: 1rem; border-radius: 50%; }
}

/* ============================================================
   TOUCH TARGETS (coarse pointers → ≥44px)
   ============================================================ */
@media (pointer: coarse), (max-width: 700px) {
  .currency-switch button { min-height: 44px; }
  .filter-chip { min-height: 44px; }
  .filter-select select { min-height: 44px; }
  .project-compare { width: 44px; height: 44px; font-size: 1.3rem; }
  .compare-clear { min-height: 44px; padding-inline: 0.9rem; }
  .wa-btn { min-width: 44px; min-height: 44px; }
  .team-contact a { min-height: 44px; }
  .footer-col a { min-height: 40px; display: inline-flex; align-items: center; }
  .nav a { padding-block: 0.7rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ping { animation: none; }
  .project-card:hover .project-img img { transform: none; }
}
