/* =============================================================
   AVANZ Property Strategy — Design System v2
   Typography: Sora (headings) · Inter (body) · IBM Plex Sans (UI)
   Palette: dark #0F1115 · light #FFFFFF/#F5F6FA · cta #5E66F2
   ============================================================= */

/* ── 01. VARIABLES ─────────────────────────────────────────── */
:root {
  /* Brand colors */
  --primary:        #4950BC;
  --primary-deep:   #2F357A;
  --primary-soft:   rgba(73, 80, 188, 0.10);
  --cta:            #5E66F2;
  --cta-hover:      #4851E0;
  --gold:           #C9A96E;
  --gold-soft:      rgba(201, 169, 110, 0.10);

  /* Dark surfaces */
  --dark-1:         #0F1115;
  --dark-2:         #1A1D24;
  --dark-3:         #22262F;
  --dark-line:      rgba(255, 255, 255, 0.07);
  --dark-line-md:   rgba(255, 255, 255, 0.12);
  --dark-text:      #F0F2F8;
  --dark-muted:     rgba(220, 226, 240, 0.68);
  --dark-soft:      rgba(220, 226, 240, 0.44);

  /* Light surfaces */
  --light-1:        #FFFFFF;
  --light-2:        #F5F6FA;
  --light-3:        #EEF0F7;
  --light-text:     #0F1115;
  --light-muted:    #3A3F52;
  --light-soft:     #6E738A;
  --light-line:     rgba(15, 17, 21, 0.07);
  --light-line-md:  rgba(15, 17, 21, 0.13);

  /* Secondary */
  --secondary:      #6E738A;
  --secondary-lt:   #A3A7B8;
  --secondary-blue: #7C82D6;

  /* Fonts */
  --f-heading: 'Sora', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-ui:      'IBM Plex Sans', 'Inter', sans-serif;

  /* Type scale */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1.0625rem;  /* 17px */
  --text-lg:   1.1875rem;  /* 19px */

  /* Spacing */
  --pad:    clamp(72px, 9vw, 128px);
  --pad-sm: clamp(48px, 6vw, 80px);
  --container: 1240px;

  /* Geometry */
  --r-xl:   28px;
  --r-lg:   20px;
  --r-md:   14px;
  --r-sm:   10px;
  --r-full: 999px;

  /* Shadows */
  --sh-sm:  0 2px 8px rgba(0,0,0,0.06);
  --sh-md:  0 8px 28px rgba(0,0,0,0.10);
  --sh-lg:  0 18px 52px rgba(0,0,0,0.14);
  --sh-xl:  0 32px 80px rgba(0,0,0,0.20);
  --sh-dark: 0 20px 56px rgba(0,0,0,0.46);
  --sh-cta:  0 8px 32px rgba(94,102,242,0.34);

  /* Motion */
  --ease:  260ms ease;
  --ease-slow: 420ms ease;

  /* Legacy aliases */
  --bg: var(--dark-1);
  --bg-2: var(--dark-2);
  --surface: var(--dark-2);
  --surface-2: var(--dark-3);
  --text: var(--dark-text);
  --muted: var(--dark-muted);
  --soft: var(--dark-soft);
  --line: var(--dark-line);
  --line-strong: var(--dark-line-md);
  --accent: var(--secondary-blue);
  --panel: rgba(26,29,36,0.78);
  --panel-strong: rgba(26,29,36,0.92);
  --transition: var(--ease);
  --radius-xl: var(--r-xl);
  --radius-lg: var(--r-lg);
  --radius-md: var(--r-md);
  --radius-sm: var(--r-sm);
  --shadow-xl: var(--sh-xl);
  --shadow-lg: var(--sh-lg);
}

/* ── 02. RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--text-base);
  line-height: 1.72;
  color: var(--dark-text);
  background: var(--dark-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
p { margin: 0; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

/* ── 03. LAYOUT ─────────────────────────────────────────────── */
.page-shell { overflow: clip; }

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

.skip-link {
  position: absolute; left: -999px; top: 10px;
  background: #fff; color: #000;
  padding: 12px 16px; z-index: 1000;
  border-radius: 10px;
}
.skip-link:focus { left: 10px; }

/* ── 04. SECTION VARIANTS ───────────────────────────────────── */
.section {
  padding: var(--pad) 0;
  position: relative;
}

.section--sm { padding: var(--pad-sm) 0; }

/* Dark (default) */
.section--dark { background: var(--dark-1); color: var(--dark-text); }
.section--dark-2 { background: var(--dark-2); color: var(--dark-text); }

/* White */
.section--light,
.section--white {
  background: var(--light-1);
  color: var(--light-text);
}

/* Gray */
.section--gray { background: var(--light-2); color: var(--light-text); }

/* Contextual text color resets in light/gray */
.section--light h1, .section--light h2, .section--light h3, .section--light h4,
.section--white h1, .section--white h2, .section--white h3, .section--white h4,
.section--gray  h1, .section--gray  h2, .section--gray  h3, .section--gray  h4 {
  color: var(--light-text);
}

.section--light p, .section--white p, .section--gray p {
  color: var(--light-muted);
}

/* Legacy alias (no-op; kept for HTML backward compat) */
.section--premium-block { padding: var(--pad) 0; }
.section--statement     { padding: var(--pad-sm) 0; }
.section--visual-band   { padding: 0; }
.section--cta-final     { padding: var(--pad-sm) 0 var(--pad); }

/* ── 05. EYEBROW & SECTION HEADERS ─────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-blue);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: var(--text-xs);
  font-weight: 700;
  font-family: var(--f-ui);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* Eyebrow on light backgrounds */
.section--light .eyebrow,
.section--white .eyebrow,
.section--gray  .eyebrow,
.contact-fit    .eyebrow,
.contact-direct__info .eyebrow,
.partners-light .eyebrow,
.section--trust .eyebrow,
.proyectos-main .eyebrow,
.process-section .eyebrow,
.system-light-section .eyebrow {
  color: var(--primary);
}
.section--light .eyebrow::before,
.section--white .eyebrow::before,
.section--gray  .eyebrow::before,
.contact-fit    .eyebrow::before,
.contact-direct__info .eyebrow::before,
.partners-light .eyebrow::before,
.section--trust .eyebrow::before,
.proyectos-main .eyebrow::before,
.process-section .eyebrow::before,
.system-light-section .eyebrow::before {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.section-header { margin-bottom: 52px; }

.section-header--split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: end;
}

.section-title {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 840px;
  margin: 0;
}

.section-description {
  font-size: var(--text-base);
  line-height: 1.8;
  max-width: 520px;
  margin: 0;
  color: var(--dark-muted);
}
.section--light .section-description,
.section--white .section-description,
.section--gray  .section-description {
  color: var(--light-soft);
}

/* ── 06. BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: background var(--ease), color var(--ease),
              border-color var(--ease), box-shadow var(--ease),
              transform var(--ease);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary */
.btn--primary {
  background: var(--cta);
  color: #fff;
  box-shadow: var(--sh-cta);
}
.btn--primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 12px 40px rgba(94,102,242,0.44);
}

/* Secondary (outlined, dark bg) */
.btn--secondary {
  background: transparent;
  color: var(--dark-text);
  border: 1.5px solid rgba(255,255,255,0.20);
}
.btn--secondary:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.34);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--dark-muted);
  border: 1.5px solid var(--dark-line);
}
.btn--ghost:hover {
  color: var(--dark-text);
  border-color: var(--dark-line-md);
}

/* Nav size variant */
.btn--nav { padding: 10px 18px; font-size: 13px; }

/* Secondary on light/gray backgrounds */
.section--light .btn--secondary,
.section--white .btn--secondary,
.section--gray  .btn--secondary,
.contact-fit    .btn--secondary,
.contact-direct .btn--secondary,
.partners-light .btn--secondary,
.process-section .btn--secondary,
.system-light-section .btn--secondary {
  color: var(--light-text);
  border-color: rgba(15,17,21,0.20);
}
.section--light .btn--secondary:hover,
.section--white .btn--secondary:hover,
.section--gray  .btn--secondary:hover,
.contact-fit    .btn--secondary:hover,
.contact-direct .btn--secondary:hover,
.partners-light .btn--secondary:hover,
.process-section .btn--secondary:hover,
.system-light-section .btn--secondary:hover {
  background: rgba(15,17,21,0.06);
  border-color: rgba(15,17,21,0.32);
}

/* ── 07. HEADER / NAV ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(15,17,21,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--ease), border-color var(--ease);
}
.site-header.is-scrolled {
  background: rgba(15,17,21,0.92);
  border-bottom-color: rgba(255,255,255,0.10);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(73,80,188,.30), rgba(73,80,188,.10));
  border: 1px solid rgba(73,80,188,.40);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}
.brand__mark span {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.14em; color: #fff;
}

.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__text small {
  color: var(--dark-soft);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--f-ui);
}
.brand__text strong {
  font-size: 13.5px; font-weight: 700;
  color: var(--dark-text); letter-spacing: -0.01em;
}

.navbar__group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.nav-links a {
  color: var(--dark-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: var(--cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:hover        { color: var(--dark-text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.is-active    { color: var(--dark-text); }
.nav-links a.is-active::after { transform: scaleX(1); }

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  gap: 2px;
}
.lang-switch button {
  border: 0; background: transparent;
  color: var(--dark-muted);
  padding: 6px 12px;
  border-radius: var(--r-full);
  cursor: pointer;
  font-size: 12px; font-weight: 600;
  font-family: var(--f-ui);
  letter-spacing: 0.06em;
  transition: background var(--ease), color var(--ease);
}
.lang-switch button.is-active {
  background: rgba(255,255,255,.10);
  color: var(--dark-text);
}
.lang-switch button:hover:not(.is-active) { color: var(--dark-text); }

/* Hamburger */
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
.menu-toggle:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}
.menu-toggle span {
  width: 18px; height: 1.5px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  display: block;
  transition: transform var(--ease), opacity var(--ease);
}

/* ── 08. REVEAL ANIMATION ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 09. HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: var(--dark-1);
  overflow: hidden;
}
.hero--immersive { min-height: 100svh; }
.section--hero-premium { position: relative; }

.hero__bg,
.hero__bg-image,
.hero__bg-overlay,
.hero__grid-lines,
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__bg-image {
  background:
    linear-gradient(115deg, rgba(15,17,21,.90), rgba(15,17,21,.45)),
    url("assets/icons/Como-P.png") center / cover no-repeat;
  transform: scale(1.03);
}

.hero__bg-overlay {
  background:
    linear-gradient(180deg, rgba(15,17,21,.08) 0%, rgba(15,17,21,.72) 70%, rgba(15,17,21,.98) 100%),
    radial-gradient(ellipse at 14% 38%, rgba(73,80,188,.22), transparent 42%);
}

/* Blueprint grid */
.hero__grid-lines {
  background-image:
    linear-gradient(rgba(73,80,188,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73,80,188,.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 80%);
}

.hero__glow--1 {
  background: radial-gradient(circle at 12% 30%, rgba(73,80,188,.18), transparent 36%);
}
.hero__glow--2 {
  background: radial-gradient(circle at 82% 58%, rgba(94,102,242,.10), transparent 30%);
}

.hero__layout {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.76fr;
  gap: 56px;
  align-items: center;
}

.hero__content { max-width: 780px; }

.hero__intro-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--f-ui);
  letter-spacing: 0.06em;
}
.badge--hero {
  background: rgba(73,80,188,.16);
  border: 1px solid rgba(73,80,188,.36);
  color: var(--secondary-blue);
}

.hero__micro-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark-soft);
  font-size: 12px;
  font-family: var(--f-ui);
  letter-spacing: 0.04em;
}
.hero__micro-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.20);
  animation: pulseDot 2.6s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201,169,110,.20); }
  50%       { box-shadow: 0 0 0 7px rgba(201,169,110,.06); }
}

.hero__headline-wrap { margin-bottom: 26px; }

.hero__title {
  font-family: var(--f-heading);
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  line-height: 1.0;
  letter-spacing: -0.055em;
  color: var(--dark-text);
}
.hero__title span {
  background: linear-gradient(135deg, var(--cta) 30%, var(--secondary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__message-block { margin-bottom: 36px; }

.hero__lead-message {
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.66;
  color: var(--dark-text);
  font-weight: 500;
  margin-bottom: 14px;
  max-width: 600px;
}
.hero__description {
  font-size: var(--text-base);
  line-height: 1.76;
  color: var(--dark-muted);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__highlights {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
}

.metric { display: flex; flex-direction: column; gap: 4px; }
.metric strong {
  font-family: var(--f-heading);
  font-size: 0.98rem; font-weight: 700;
  color: var(--dark-text); letter-spacing: -0.02em;
}
.metric span {
  font-size: 12px;
  color: var(--dark-muted);
  font-family: var(--f-ui);
  line-height: 1.4; max-width: 158px;
}

/* Hero right: animation shell */
.hero__visual {
  display: flex; align-items: center; justify-content: center;
}
.hero__animation-shell {
  width: 100%; max-width: 520px; position: relative;
}
.hero__animation-glow {
  position: absolute; inset: -40px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(73,80,188,.14), transparent 70%);
  pointer-events: none;
}
.hero__animation-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(73,80,188,.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), var(--sh-dark);
  background: var(--dark-2);
  aspect-ratio: 4/3;
}
.hero__animation-video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.hero__animation-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,17,21,.68));
  pointer-events: none;
}
.hero__animation-caption {
  margin-top: 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.hero__animation-caption-kicker {
  font-size: 11px; font-family: var(--f-ui);
  color: var(--gold); letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600;
}
.hero__animation-caption p {
  font-size: var(--text-sm);
  color: var(--dark-muted); line-height: 1.5;
}

/* ── 10. PROBLEM SECTION (white) ────────────────────────────── */
.problem-section {
  background: var(--light-1);
  color: var(--light-text);
  padding: var(--pad) 0;
  border-bottom: 1px solid var(--light-line-md);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.problem-grid__copy .eyebrow {
  color: var(--primary);
}
.problem-grid__copy .eyebrow::before {
  background: linear-gradient(90deg, var(--primary), transparent);
}

.problem-title {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--light-text);
  margin-bottom: 20px;
}
.problem-title span { color: var(--primary); }

.problem-intro {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--light-muted);
  max-width: 500px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0; margin: 0;
  list-style: none;
}
.problem-list__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--light-2);
  border: 1.5px solid var(--light-line);
  border-radius: var(--r-md);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.problem-list__item:hover {
  border-color: rgba(73,80,188,.18);
  box-shadow: var(--sh-sm);
}
.problem-list__marker {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 6px;
  opacity: 0.6;
}
.problem-list__item p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--light-muted);
  margin: 0;
}
.problem-list__item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 4px;
}

/* ── 11. STATEMENT SECTION (dark-2 band) ────────────────────── */
.section--statement {
  background: var(--dark-2);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.statement-block {
  max-width: 900px;
  padding: 16px 0;
}
.statement-block__eyebrow {
  font-family: var(--f-ui);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.statement-block__eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.statement-block h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.9rem, 3.5vw, 2.9rem);
  line-height: 1.12; letter-spacing: -0.04em;
  color: var(--dark-text); margin-bottom: 16px;
}
.statement-block h2 span { color: var(--dark-muted); }
.statement-block h3 {
  font-family: var(--f-heading);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.32; letter-spacing: -0.03em;
  color: var(--dark-muted); font-weight: 500;
}
.statement-block h3 span { color: var(--cta); }

/* ── 12. INSIGHT / VISUAL BAND ──────────────────────────────── */
.section--visual-band { padding: 0; }

.visual-band {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.visual-band__image {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
  transition: transform 0.9s ease;
}
.visual-band:hover .visual-band__image { transform: scale(1.0); }

.visual-band__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(108deg, rgba(15,17,21,.93) 36%, rgba(15,17,21,.60) 80%),
    radial-gradient(ellipse at 10% 52%, rgba(73,80,188,.18), transparent 42%);
}
.visual-band__content {
  position: relative; z-index: 1;
  padding: 80px 0;
}
.visual-band__card { max-width: 560px; }
.visual-band__card .eyebrow { color: var(--gold); }
.visual-band__card .eyebrow::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.visual-band__card h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  line-height: 1.1; letter-spacing: -0.04em;
  color: var(--dark-text); margin-bottom: 20px;
}
.visual-band__card p {
  font-size: var(--text-base);
  line-height: 1.76;
  color: var(--dark-muted);
  max-width: 460px;
}

/* ── 13. VALUE / PILLARS (white) ────────────────────────────── */
.section--value {
  background: var(--light-1);
  color: var(--light-text);
}

.value-highlight {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 30px;
  background: var(--light-2);
  border-radius: var(--r-md);
  border-left: 3px solid var(--primary);
  margin-bottom: 52px;
}
.value-highlight__line { display: none; }
.value-highlight p {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.72; color: var(--light-text);
  font-weight: 500; margin: 0;
}

/* Feature cards grid */
.card-grid { display: grid; gap: 20px; }
.card-grid--value { grid-template-columns: repeat(2, 1fr); }

.card {
  border-radius: var(--r-md);
  padding: 32px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }

/* Feature cards on white bg */
.section--value   .card--feature,
.section--light   .card--feature,
.section--white   .card--feature {
  background: var(--light-1);
  border: 1.5px solid var(--light-line-md);
  box-shadow: var(--sh-sm);
}
.section--value   .card--feature:hover,
.section--light   .card--feature:hover,
.section--white   .card--feature:hover {
  border-color: rgba(73,80,188,.22);
  box-shadow: 0 8px 32px rgba(73,80,188,.08);
}
.card--feature[data-number]::before {
  content: attr(data-number);
  display: block;
  font-family: var(--f-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--primary);
  margin-bottom: 16px; opacity: 0.7;
}
.section--value .card--feature h3,
.section--light .card--feature h3 {
  font-family: var(--f-heading);
  font-size: 1.08rem; font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 12px; color: var(--light-text);
}
.section--value .card--feature p,
.section--light .card--feature p {
  font-size: var(--text-sm); line-height: 1.76;
  color: var(--light-soft); margin: 0;
}
/* Feature cards on dark */
.section--dark .card--feature {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
}
.section--dark .card--feature h3 { color: var(--dark-text); }
.section--dark .card--feature p  { color: var(--dark-muted); }
.section--dark .card--feature[data-number]::before { color: var(--secondary-blue); }

/* ── 14. SERVICES SECTION (gray) ────────────────────────────── */
.section--services {
  background: var(--light-2);
  color: var(--light-text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--light-1);
  border: 1.5px solid var(--light-line);
  border-radius: var(--r-md);
  padding: 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(73,80,188,.24);
  box-shadow: 0 12px 40px rgba(73,80,188,.08), var(--sh-md);
}

.service-card__icon {
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--primary-soft);
  border: 1px solid rgba(73,80,188,.22);
  display: grid; place-items: center;
  font-family: var(--f-ui);
  font-size: 12px; font-weight: 700;
  color: var(--primary); letter-spacing: 0.06em;
}

.service-card h3 {
  font-family: var(--f-heading);
  font-size: 1.04rem; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--light-text); margin: 0;
}
.service-card p {
  font-size: var(--text-sm); line-height: 1.76;
  color: var(--light-soft); margin: 0; flex: 1;
}

.service-card__benefit {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-family: var(--f-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--gold-soft);
  border: 1px solid rgba(201,169,110,.20);
  color: #7A5A20;
  align-self: flex-start;
  margin-top: auto;
}

/* ── 15. PROJECTS SECTION ───────────────────────────────────── */
.section--projects {
  background: var(--light-2);
  color: var(--light-text);
}
.section--projects .section-title { color: var(--light-text); }

.section-header--projects { margin-bottom: 44px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 48px;
}

/* Filter */
.projects-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.projects-filter button {
  border: 1.5px solid var(--light-line-md);
  background: transparent;
  color: var(--light-soft);
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 13px; font-family: var(--f-ui);
  font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.projects-filter button:hover,
.projects-filter button.is-active {
  background: rgba(73,80,188,.08);
  border-color: rgba(73,80,188,.28);
  color: var(--primary);
}

/* On dark backgrounds */
.section--dark .projects-filter button {
  border-color: var(--dark-line);
  color: var(--dark-muted);
}
.section--dark .projects-filter button:hover,
.section--dark .projects-filter button.is-active {
  background: var(--primary-soft);
  border-color: rgba(73,80,188,.36);
  color: var(--dark-text);
}

/* Project card base */
.project-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1.5px solid var(--light-line-md);
  background: var(--light-1);
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(73,80,188,.26);
  box-shadow: 0 16px 44px rgba(73,80,188,.10), var(--sh-md);
}
.project-card.is-hidden { display: none; }

/* Dark project card override */
.section--dark .project-card,
.proyectos-dark .project-card {
  background: var(--dark-2);
  border-color: var(--dark-line);
}
.section--dark .project-card:hover {
  border-color: rgba(73,80,188,.30);
  box-shadow: 0 20px 56px rgba(0,0,0,.42);
}

.project-card__media {
  aspect-ratio: 16/10; overflow: hidden; position: relative;
}
.project-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-card__media img { transform: scale(1.04); }

/* Media placeholder */
.project-card__media-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 32% 40%, rgba(73,80,188,.12), transparent 55%),
    linear-gradient(180deg, var(--light-3), var(--light-2));
  border-bottom: 1px solid var(--light-line-md);
}
.project-card__media-placeholder span {
  color: rgba(15,17,21,.18);
  font-family: var(--f-heading);
  font-size: clamp(1rem, 2vw, 1.5rem); font-weight: 700;
  letter-spacing: -0.02em; text-align: center;
  line-height: 1.3; padding: 24px;
}
/* Dark placeholder */
.section--dark .project-card__media-placeholder {
  background:
    radial-gradient(circle at 32% 40%, rgba(73,80,188,.16), transparent 55%),
    linear-gradient(180deg, var(--dark-3), var(--dark-2));
  border-bottom-color: var(--dark-line);
}
.section--dark .project-card__media-placeholder span {
  color: rgba(255,255,255,.22);
}

.project-card__body {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 10px; flex: 1;
}

.project-card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.project-card__tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px; font-family: var(--f-ui);
  font-weight: 600; letter-spacing: 0.06em;
  background: rgba(73,80,188,.08);
  border: 1px solid rgba(73,80,188,.18);
  color: var(--primary);
}
.section--dark .project-card__tag {
  background: rgba(73,80,188,.12);
  border-color: rgba(73,80,188,.22);
  color: var(--secondary-blue);
}

.project-card__title {
  font-family: var(--f-heading);
  font-size: 1.08rem; font-weight: 700;
  letter-spacing: -0.025em; color: var(--light-text); margin: 0;
}
.section--dark .project-card__title { color: var(--dark-text); }

.project-card__text {
  font-size: var(--text-sm); line-height: 1.7;
  color: var(--light-soft); margin: 0;
}
.section--dark .project-card__text { color: var(--dark-muted); }

.project-card__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--primary);
  margin-top: auto; padding-top: 8px;
  border-top: 1px solid var(--light-line-md);
  transition: color var(--ease), gap var(--ease);
}
.project-card__link:hover { color: var(--cta); gap: 10px; }
.section--dark .project-card__link {
  color: var(--secondary-blue);
  border-top-color: var(--dark-line);
}
.section--dark .project-card__link:hover { color: var(--cta); }

/* Projects view-all */
.projects-view-all { text-align: center; }
.projects-view-all a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--light-soft);
  font-size: var(--text-sm); font-weight: 600;
  font-family: var(--f-ui); letter-spacing: 0.04em;
  transition: color var(--ease);
}
.projects-view-all a:hover { color: var(--light-text); }
.section--dark .projects-view-all a { color: var(--dark-muted); }
.section--dark .projects-view-all a:hover { color: var(--dark-text); }

/* ── 16. CTA FINAL ──────────────────────────────────────────── */
.section--cta-final {
  background: var(--dark-1);
  border-top: 1px solid var(--dark-line);
}

.cta-final {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.cta-final__eyebrow {
  margin-bottom: 24px;
  justify-content: center;
}
.cta-final h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.1; letter-spacing: -0.045em;
  color: var(--dark-text); margin-bottom: 20px;
}
.cta-final p {
  font-size: var(--text-base); line-height: 1.76;
  color: var(--dark-muted);
  max-width: 560px; margin: 0 auto 40px;
}
.cta-final__actions {
  display: flex; align-items: center;
  justify-content: center; gap: 14px; flex-wrap: wrap;
}

/* ── 17. FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--dark-1);
  border-top: 1px solid var(--dark-line);
  padding: 52px 0 28px;
}
.site-footer--light {
  padding-top: 48px; padding-bottom: 28px;
  border-top: 1px solid var(--dark-line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  margin-bottom: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-line);
}
.footer-card {
  display: flex; flex-direction: column; gap: 14px;
}
.footer-card > strong {
  font-family: var(--f-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dark-soft);
}
.footer-card .brand__text small { font-size: 10px; }
.footer-card .brand__text strong {
  font-size: 13px; color: var(--dark-muted);
  font-weight: 500; line-height: 1.62; max-width: 440px;
}

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  color: var(--dark-muted); font-size: var(--text-sm);
  transition: color var(--ease);
}
.footer-nav a:hover { color: var(--dark-text); }

.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-bottom span {
  font-size: 12px; color: var(--dark-soft); font-family: var(--f-ui);
}

/* ── 18. SISTEMA / MODELO PAGE ──────────────────────────────── */
.sistema-hero {
  background: var(--dark-1);
  padding: 100px 0 80px;
}
.sistema-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px; align-items: start;
}
.sistema-hero__content .eyebrow { color: var(--secondary-blue); }

.sistema-hero__title {
  font-family: var(--f-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.06; letter-spacing: -0.05em;
  color: var(--dark-text); margin-bottom: 24px;
}
.sistema-hero__text {
  font-size: var(--text-base); line-height: 1.8;
  color: var(--dark-muted); max-width: 480px; margin-bottom: 36px;
}
.sistema-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.sistema-hero__card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: 36px 30px;
}
.sistema-hero__card-kicker {
  display: block;
  font-family: var(--f-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--secondary-blue); margin-bottom: 16px;
}
.sistema-hero__card h3 {
  font-family: var(--f-heading);
  font-size: 1.22rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--dark-text); margin-bottom: 12px;
}
.sistema-hero__card p {
  font-size: var(--text-sm); line-height: 1.76; color: var(--dark-muted);
}

/* Process section (light) */
.process-section {
  background: var(--light-1);
  color: var(--light-text);
  padding: var(--pad) 0;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.process-step {
  background: var(--light-2);
  border: 1.5px solid var(--light-line);
  border-radius: var(--r-md);
  padding: 30px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: rgba(73,80,188,.20);
}
.process-step__number {
  display: block;
  font-family: var(--f-ui); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--primary);
  margin-bottom: 14px; opacity: 0.8;
}
.process-step h3 {
  font-family: var(--f-heading);
  font-size: 1.08rem; font-weight: 700;
  letter-spacing: -0.025em; color: var(--light-text); margin-bottom: 10px;
}
.process-step p {
  font-size: var(--text-sm); line-height: 1.76; color: var(--light-soft);
}

/* System light section */
.system-light-section {
  background: var(--light-2);
  border-top: 1px solid var(--light-line-md);
  border-bottom: 1px solid var(--light-line-md);
  padding: var(--pad-sm) 0;
}

/* Process tab panels (data-step-target, data-process-panel) */
.process-panels {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px; align-items: start;
}
.process-nav { display: flex; flex-direction: column; gap: 6px; }
.process-nav__item {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1.5px solid transparent;
  background: transparent; text-align: left;
  transition: background var(--ease), border-color var(--ease);
}
.process-nav__item.is-active,
.process-nav__item:hover {
  background: var(--light-2);
  border-color: var(--light-line-md);
}
.process-panel { display: none; }
.process-panel.is-active { display: block; }
.process-image { border-radius: var(--r-md); overflow: hidden; }

/* ── 19. PROYECTOS / DESARROLLOS PAGE ───────────────────────── */
.proyectos-hero {
  background: var(--dark-1);
  padding: 100px 0 80px;
}
.proyectos-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px; align-items: center;
}
.proyectos-hero__content .eyebrow { color: var(--secondary-blue); }

.proyectos-hero__title {
  font-family: var(--f-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.06; letter-spacing: -0.05em;
  color: var(--dark-text); margin-bottom: 22px;
}
.proyectos-hero__text {
  font-size: var(--text-base); line-height: 1.8;
  color: var(--dark-muted); max-width: 500px; margin-bottom: 36px;
}
.proyectos-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.proyectos-hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.proyectos-hero__stat {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-md);
  padding: 26px 22px; text-align: center;
}
.proyectos-hero__stat strong {
  display: block;
  font-family: var(--f-heading);
  font-size: 2rem; font-weight: 800;
  letter-spacing: -0.04em; color: var(--dark-text); margin-bottom: 5px;
}
.proyectos-hero__stat span {
  font-size: 11px; color: var(--dark-muted);
  font-family: var(--f-ui); letter-spacing: 0.07em;
  text-transform: uppercase; font-weight: 600;
}

/* Main projects area on this page */
.proyectos-main {
  background: var(--light-2);
  padding: var(--pad) 0;
  color: var(--light-text);
}
.proyectos-main .section-title { color: var(--light-text); }

/* Projects CTA */
.projects-cta {
  background: var(--dark-1);
  padding: var(--pad-sm) 0;
  border-top: 1px solid var(--dark-line);
}
.projects-cta__inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.projects-cta__copy h3 {
  font-family: var(--f-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700;
  letter-spacing: -0.04em; color: var(--dark-text); margin-bottom: 8px;
}
.projects-cta__copy p {
  font-size: var(--text-sm); color: var(--dark-muted); max-width: 480px;
}
.projects-cta__actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end;
}

/* ── 20. SOCIOS / NOSOTROS PAGE ─────────────────────────────── */
.partners-page { background: var(--dark-1); }
.partners-page__container { }

.partners-hero { padding: 100px 0 80px; }
.partners-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px; align-items: start;
}
.partners-hero__copy .eyebrow { color: var(--secondary-blue); }

.partners-hero__copy h1 {
  font-family: var(--f-heading);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.06; letter-spacing: -0.055em;
  color: var(--dark-text); margin-bottom: 28px;
}
.partners-hero__copy h1 span { color: var(--dark-muted); }

.partners-hero__lead {
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.7; color: var(--dark-text); font-weight: 500;
  margin-bottom: 16px; max-width: 560px;
}
.partners-hero__copy p:not(.partners-hero__lead) {
  font-size: var(--text-base); line-height: 1.76;
  color: var(--dark-muted); max-width: 520px; margin-bottom: 36px;
}
.partners-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Panel aside */
.partners-hero__panel {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
}
.partners-panel__kicker {
  display: block; font-family: var(--f-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dark-soft); margin-bottom: 22px;
}
.partners-panel__stack { display: flex; flex-direction: column; }
.partners-panel__node {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--dark-line);
  background: rgba(255,255,255,.02);
}
.partners-panel__node--active {
  background: rgba(73,80,188,.14);
  border-color: rgba(73,80,188,.36);
}
.partners-panel__node strong {
  display: block; font-size: var(--text-sm); font-weight: 700;
  color: var(--dark-text); margin-bottom: 3px;
}
.partners-panel__node span {
  font-size: 12px; color: var(--dark-muted); line-height: 1.4;
}
.partners-panel__line {
  width: 2px; height: 14px;
  background: linear-gradient(180deg, var(--dark-line), transparent);
  margin: 0 auto;
}

/* Differentiators (light) */
.partners-light {
  background: var(--light-1);
  padding: var(--pad) 0; color: var(--light-text);
}
.partners-light__intro { margin-bottom: 52px; }
.partners-light__intro-copy h2 {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1; letter-spacing: -0.045em;
  color: var(--light-text); max-width: 760px;
}
.partners-light__intro-copy h2 span { color: var(--primary); }

.partners-light__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.partners-light-card {
  background: var(--light-2);
  border: 1.5px solid var(--light-line);
  border-radius: var(--r-lg); padding: 34px 30px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.partners-light-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-lg);
  border-color: rgba(73,80,188,.18);
}
.partners-light-card--wide { grid-column: 1 / -1; }

.partners-light-card__number {
  display: block; font-family: var(--f-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--primary); margin-bottom: 6px; opacity: 0.65;
}
.partners-light-card__eyebrow {
  display: block; font-family: var(--f-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--secondary); margin-bottom: 10px;
}
.partners-light-card h3 {
  font-family: var(--f-heading);
  font-size: 1.18rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--light-text); margin-bottom: 14px;
}
.partners-light-card p {
  font-size: var(--text-sm); line-height: 1.76; color: var(--light-soft);
}
.partners-light-list { display: flex; flex-direction: column; gap: 14px; }
.partners-light-list__item strong {
  display: block; font-size: var(--text-sm);
  font-weight: 700; color: var(--light-text); margin-bottom: 4px;
}
.partners-light-list__item p { font-size: var(--text-sm); color: var(--light-soft); margin: 0; }

.partners-light-outcomes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.partners-light-outcomes__item {
  background: var(--light-1);
  border: 1px solid var(--light-line); border-radius: var(--r-sm); padding: 14px;
}
.partners-light-outcomes__item strong {
  display: block; font-size: var(--text-sm);
  font-weight: 700; color: var(--light-text); margin-bottom: 3px;
}
.partners-light-outcomes__item span {
  font-size: 12px; color: var(--light-soft); line-height: 1.5;
}

/* Trust cards (gray bg) */
.section--trust {
  background: var(--light-2);
  color: var(--light-text);
}
.section--trust .section-title { color: var(--light-text); }

.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.trust-card {
  background: var(--light-1);
  border: 1.5px solid var(--light-line);
  border-radius: var(--r-md); padding: 30px;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.trust-card:hover {
  transform: translateY(-3px); box-shadow: var(--sh-md);
  border-color: rgba(73,80,188,.18);
}
.trust-card__number {
  display: block; font-family: var(--f-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--primary); margin-bottom: 12px; opacity: 0.6;
}
.trust-card h3 {
  font-family: var(--f-heading);
  font-size: 1.08rem; font-weight: 700;
  letter-spacing: -0.025em; color: var(--light-text); margin-bottom: 10px;
}
.trust-card p {
  font-size: var(--text-sm); line-height: 1.76; color: var(--light-soft); margin: 0;
}

/* Partners selection dark section */
.partners-selection-dark {
  background: var(--dark-1);
  padding: var(--pad) 0;
  border-top: 1px solid var(--dark-line);
}
.partners-selection-dark__inner {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
  display: flex; flex-direction: column; gap: 48px;
}
.partners-selection-dark__top .eyebrow { color: var(--secondary-blue); }
.partners-selection-dark__copy h3 {
  font-family: var(--f-heading);
  font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700;
  letter-spacing: -0.04em; color: var(--dark-text); max-width: 700px;
}
.partners-selection-dark__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}

.selection-dark-card {
  border-radius: var(--r-lg); padding: 34px 30px;
  border: 1px solid var(--dark-line);
}
.selection-dark-card--positive {
  background: rgba(73,80,188,.06);
  border-color: rgba(73,80,188,.20);
}
.selection-dark-card--negative { background: rgba(255,255,255,.02); }

.selection-dark-card__label {
  display: block; font-family: var(--f-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px;
}
.selection-dark-card--positive .selection-dark-card__label { color: var(--secondary-blue); }
.selection-dark-card--negative .selection-dark-card__label { color: var(--dark-soft); }

.selection-dark-card h4 {
  font-family: var(--f-heading);
  font-size: 1.04rem; font-weight: 700;
  letter-spacing: -0.025em; color: var(--dark-text);
  margin-bottom: 18px; line-height: 1.32;
}

.selection-dark-list {
  padding: 0; margin: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px;
}
.selection-dark-list li {
  font-size: var(--text-sm); color: var(--dark-muted);
  padding-left: 16px; position: relative; line-height: 1.5;
}
.selection-dark-list li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--dark-soft); font-size: 10px;
}
.selection-dark-card--positive .selection-dark-list li::before { color: var(--secondary-blue); }

.partners-selection-dark__cta {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg); padding: 48px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.partners-selection-dark__kicker {
  display: block; font-family: var(--f-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--secondary-blue); margin-bottom: 10px;
}
.partners-selection-dark__cta-copy h4 {
  font-family: var(--f-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700;
  letter-spacing: -0.035em; color: var(--dark-text); margin-bottom: 9px;
}
.partners-selection-dark__cta-copy p {
  font-size: var(--text-sm); color: var(--dark-muted); max-width: 440px;
}
.partners-selection-dark__cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 21. CONTACTO PAGE ──────────────────────────────────────── */
.contact-page { background: var(--dark-1); }

.contact-hero { padding: 100px 0 80px; background: var(--dark-1); }
.contact-hero__grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 56px; align-items: start;
}
.contact-hero__content .eyebrow { color: var(--secondary-blue); }

.contact-hero__title {
  font-family: var(--f-heading);
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  line-height: 1.06; letter-spacing: -0.05em;
  color: var(--dark-text); margin-bottom: 22px;
}
.contact-hero__text {
  font-size: var(--text-base); line-height: 1.8;
  color: var(--dark-muted); max-width: 500px; margin-bottom: 36px;
}
.contact-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.contact-hero__card {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg); padding: 34px 30px;
}
.contact-hero__card-badge {
  display: inline-flex; padding: 5px 14px;
  border-radius: var(--r-full); font-family: var(--f-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  background: rgba(73,80,188,.14); border: 1px solid rgba(73,80,188,.28);
  color: var(--secondary-blue); margin-bottom: 18px;
}
.contact-hero__card h3 {
  font-family: var(--f-heading);
  font-size: 1.18rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--dark-text); margin-bottom: 10px;
}
.contact-hero__card p {
  font-size: var(--text-sm); line-height: 1.76;
  color: var(--dark-muted); margin-bottom: 22px;
}
.contact-hero__points {
  padding: 0; margin: 0; list-style: none;
  display: flex; flex-direction: column; gap: 9px;
}
.contact-hero__points li {
  font-size: var(--text-sm); color: var(--dark-muted);
  padding-left: 18px; position: relative;
}
.contact-hero__points li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--cta); font-weight: 700; font-size: 11px;
}

/* Fit section (white) */
.contact-fit {
  background: var(--light-1);
  padding: var(--pad-sm) 0; color: var(--light-text);
}
.contact-fit__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 38px;
}
.contact-fit__panel {
  background: var(--light-2);
  border: 1.5px solid var(--light-line);
  border-radius: var(--r-lg); padding: 34px 30px;
}
.contact-fit__panel h2 {
  font-family: var(--f-heading);
  font-size: 1.22rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--light-text); margin-bottom: 22px;
}
.contact-fit__list {
  padding: 0; margin: 0; list-style: none;
  display: flex; flex-direction: column; gap: 11px;
}
.contact-fit__list li {
  font-size: var(--text-sm); color: var(--light-soft);
  padding-left: 16px; position: relative; line-height: 1.55;
}
.contact-fit__list li::before {
  content: '—'; position: absolute; left: 0;
  color: var(--primary); font-size: 11px;
}
.contact-fit__steps {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px;
}
.contact-fit__steps > div {
  font-size: var(--text-sm); color: var(--light-soft); line-height: 1.5;
}
.contact-fit__steps strong {
  color: var(--primary); font-family: var(--f-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; margin-right: 8px;
}
.contact-fit__note {
  font-size: 12px; color: var(--secondary); line-height: 1.6;
  margin: 0; padding-top: 18px;
  border-top: 1px solid var(--light-line-md);
}

/* Direct channels section (gray) */
.contact-direct {
  background: var(--light-2);
  padding: var(--pad-sm) 0; color: var(--light-text);
}
.contact-direct__grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 52px; align-items: start;
}
.contact-direct__title {
  font-family: var(--f-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700;
  letter-spacing: -0.04em; color: var(--light-text); margin-bottom: 14px;
}
.contact-direct__text {
  font-size: var(--text-sm); line-height: 1.76;
  color: var(--light-soft); margin-bottom: 26px; max-width: 400px;
}
.contact-direct__cards { display: flex; flex-direction: column; gap: 11px; }

.contact-channel {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px;
  background: var(--light-1);
  border: 1.5px solid var(--light-line);
  border-radius: var(--r-md);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.contact-channel:hover {
  border-color: rgba(73,80,188,.28);
  box-shadow: var(--sh-md); transform: translateX(4px);
}
.contact-channel span {
  font-size: 11px; font-family: var(--f-ui);
  font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--secondary);
}
.contact-channel strong {
  font-size: var(--text-sm); font-weight: 700; color: var(--light-text);
}

/* Form wrap */
.contact-direct__form-wrap {
  background: var(--light-1);
  border: 1.5px solid var(--light-line-md);
  border-radius: var(--r-lg); padding: 34px 30px;
  box-shadow: var(--sh-md);
}
.contact-short-form__header { margin-bottom: 26px; }
.contact-short-form__badge {
  display: inline-flex; padding: 5px 14px;
  border-radius: var(--r-full); font-family: var(--f-ui);
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em;
  background: rgba(73,80,188,.08); border: 1px solid rgba(73,80,188,.20);
  color: var(--primary); margin-bottom: 14px;
}
.contact-short-form__header h3 {
  font-family: var(--f-heading);
  font-size: 1.28rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--light-text); margin-bottom: 6px;
}
.contact-short-form__header p {
  font-size: var(--text-sm); color: var(--light-soft); margin: 0;
}

.contact-short-form__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 22px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 13px; font-weight: 600;
  font-family: var(--f-ui); color: var(--light-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%; min-height: 50px; padding: 0 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--light-line-md);
  background: var(--light-1); color: var(--light-text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
  font-size: var(--text-sm);
}
.form-field textarea {
  min-height: 116px; padding: 13px 14px; resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--secondary-lt); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(73,80,188,.46);
  box-shadow: 0 0 0 4px rgba(73,80,188,.08);
}
.form-field select {
  appearance: none;
  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' stroke='%236E738A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-field select option { background: var(--light-1); color: var(--light-text); }

.contact-short-form__actions {
  display: flex; gap: 11px; margin-bottom: 16px; flex-wrap: wrap;
}
.contact-short-form__microcopy {
  margin: 0; color: var(--secondary); line-height: 1.65;
  font-size: 12px; font-family: var(--f-ui);
}

/* ── 22. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }

  .navbar__group {
    position: fixed;
    top: 78px; left: 0; right: 0; bottom: 0;
    background: rgba(15,17,21,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px; gap: 24px;
    z-index: 40;
    transform: translateX(100%);
    transition: transform 0.30s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    border-top: 1px solid var(--dark-line);
  }
  .navbar__group.is-open { transform: translateX(0); }

  .nav-links {
    flex-direction: column; align-items: flex-start;
    gap: 0; width: 100%;
  }
  .nav-links a {
    font-size: 1.08rem; padding: 14px 0; width: 100%;
    border-bottom: 1px solid var(--dark-line);
  }
  .nav-links a::after { display: none; }
  .lang-switch { order: -1; }
  .btn--nav { width: 100%; justify-content: center; padding: 14px 20px; }
}

@media (max-width: 1080px) {
  .hero__layout { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }

  .sistema-hero__grid,
  .proyectos-hero__grid,
  .partners-hero__grid,
  .contact-hero__grid,
  .contact-direct__grid,
  .problem-grid { grid-template-columns: 1fr; gap: 36px; }

  .partners-selection-dark__cta {
    flex-direction: column; align-items: flex-start; padding: 32px 26px;
  }
  .section-header--split { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 900px) {
  :root { --pad: 72px; --pad-sm: 48px; }

  .card-grid--value { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .partners-light__grid { grid-template-columns: 1fr; }
  .partners-selection-dark__grid { grid-template-columns: 1fr; }
  .proyectos-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-fit__grid { grid-template-columns: 1fr; }
  .partners-light-outcomes { grid-template-columns: 1fr; }
  .process-panels { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --pad: 56px; --pad-sm: 40px; }

  .hero { padding: 96px 0 56px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__highlights { flex-direction: column; gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .proyectos-hero__stats { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }

  .cta-final__actions { flex-direction: column; align-items: stretch; }
  .cta-final__actions .btn { justify-content: center; }

  .contact-short-form__grid { grid-template-columns: 1fr; }
  .contact-hero__actions .btn,
  .contact-short-form__actions .btn { width: 100%; justify-content: center; }

  .projects-cta__inner { flex-direction: column; }
  .projects-cta__actions { justify-content: flex-start; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }

  .partners-selection-dark__cta { padding: 28px 22px; }
}

/* ── 23. PROYECTOS.HTML CUSTOM CLASSES ──────────────────────── */

/* Hero de proyectos.html */
.projects-hero {
  background: var(--dark-1);
  padding: 100px 0 72px;
  color: var(--dark-text);
}
.projects-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.projects-hero__copy .eyebrow { color: var(--secondary-blue); }
.projects-hero__copy h1 {
  font-family: var(--f-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.06; letter-spacing: -0.05em;
  color: var(--dark-text); margin-bottom: 22px;
}
.projects-hero__lead {
  font-size: var(--text-base); line-height: 1.8;
  color: var(--dark-muted); max-width: 520px; margin-bottom: 14px;
}
.projects-hero__micro {
  font-size: var(--text-sm); color: var(--dark-soft); margin: 0;
}
.projects-hero__visual {
  position: relative; min-height: 420px;
  border-radius: var(--r-lg);
  background: var(--dark-2);
  border: 1px solid rgba(73,80,188,.20);
  overflow: hidden;
}
.projects-hero__visual::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(73,80,188,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73,80,188,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.projects-hero__visual-overlay {
  position: relative; z-index: 1;
}
.projects-hero__visual-badge {
  display: block;
  font-family: var(--f-ui); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--secondary-blue); margin-bottom: 8px;
}
.projects-hero__visual-overlay p {
  font-size: 12px; color: var(--dark-soft); font-family: var(--f-ui);
}

/* project-card extra elements */
.project-card__badge {
  position: absolute; top: 14px; right: 14px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 11px; font-family: var(--f-ui);
  font-weight: 700; letter-spacing: 0.07em;
  background: rgba(15,17,21,.72);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--dark-text);
  backdrop-filter: blur(8px);
}
/* On light bg */
.proyectos-main .project-card__badge {
  background: rgba(255,255,255,.82);
  border-color: rgba(15,17,21,.12);
  color: var(--light-text);
}

.project-card__topline {
  display: flex; align-items: baseline;
  gap: 10px; flex-wrap: wrap;
}
.project-card__type {
  font-size: 12px; font-family: var(--f-ui); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary);
  margin: 0;
}
.section--dark .project-card__type { color: var(--secondary-blue); }

.project-card__location {
  font-size: 12px; font-family: var(--f-ui);
  color: var(--secondary); margin: 0;
}
.section--dark .project-card__location { color: var(--dark-soft); }

/* projects-toolbar wrapper (no bg) */
.projects-toolbar { margin-bottom: 32px; }

/* projects-filters (the filter container – note plural used in proyectos.html) */
.projects-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px;
}
.projects-filters .projects-filter {
  border: 1.5px solid var(--light-line-md);
  background: transparent; color: var(--light-soft);
  padding: 8px 18px; border-radius: var(--r-full);
  font-size: 13px; font-family: var(--f-ui); font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.projects-filters .projects-filter:hover,
.projects-filters .projects-filter.is-active {
  background: rgba(73,80,188,.08);
  border-color: rgba(73,80,188,.28); color: var(--primary);
}

/* projects-grid--premium */
.projects-grid--premium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-bottom: 48px;
}

/* project info grid (inside project card) */
.project-card__info-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-top: 4px;
}
.project-card__info-block h4 {
  font-family: var(--f-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--secondary); margin-bottom: 8px;
}
.section--dark .project-card__info-block h4 { color: var(--dark-soft); }

.project-card__info-block ul {
  padding: 0; margin: 0; list-style: none;
  display: flex; flex-direction: column; gap: 5px;
}
.project-card__info-block ul li {
  font-size: 12px; color: var(--light-soft);
  padding-left: 12px; position: relative;
  line-height: 1.4;
}
.project-card__info-block ul li::before {
  content: '·'; position: absolute; left: 0;
  color: var(--primary); font-weight: 700;
}
.section--dark .project-card__info-block ul li { color: var(--dark-muted); }
.section--dark .project-card__info-block ul li::before { color: var(--secondary-blue); }

/* project card actions */
.project-card__actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--light-line);
  margin-top: auto;
}
.section--dark .project-card__actions { border-top-color: var(--dark-line); }
.project-card__actions .btn { padding: 10px 18px; font-size: 13px; }

/* projects-cta__box — 2-column premium layout */
.projects-cta__box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px; align-items: center;
}
.projects-cta__copy .eyebrow { color: var(--secondary-blue); margin-bottom: 14px; }
.projects-cta__copy h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.65rem, 2.8vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.045em; line-height: 1.12;
  color: var(--dark-text); margin-bottom: 16px;
}
.projects-cta__copy p {
  font-size: var(--text-sm); color: var(--dark-muted);
  line-height: 1.82; max-width: 480px; margin-bottom: 32px;
}
.projects-cta__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.projects-cta__metrics {
  display: flex; flex-direction: column; gap: 28px;
}
.pcm-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2px;
  border-radius: 14px; overflow: hidden;
}
.pcm-item {
  background: rgba(73,80,188,.07);
  border: 1px solid rgba(73,80,188,.14);
  padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 6px;
  transition: background var(--ease);
}
.pcm-item:hover { background: rgba(73,80,188,.12); }
.pcm-item__num {
  font-family: var(--f-heading); font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.05em; line-height: 1.05;
  color: var(--dark-text);
}
.pcm-item__label {
  font-family: var(--f-ui); font-size: 11px; font-weight: 500;
  color: var(--dark-soft); line-height: 1.5;
}
.projects-cta__footnote {
  font-family: var(--f-ui); font-size: 11px; font-weight: 500;
  color: var(--dark-soft); line-height: 1.6;
  letter-spacing: 0.01em;
  padding-top: 4px;
  border-top: 1px solid rgba(73,80,188,.12);
}
/* legacy eyebrow fallback */
.projects-cta__box .eyebrow { color: var(--secondary-blue); margin-bottom: 14px; }
.projects-cta__box h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.65rem, 2.8vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.045em; color: var(--dark-text); margin-bottom: 16px;
}
.projects-cta__box > div > p {
  font-size: var(--text-sm); color: var(--dark-muted); max-width: 480px;
}

/* Responsive overrides for proyectos page */
@media (max-width: 1080px) {
  .projects-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .projects-grid--premium { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .projects-grid--premium { grid-template-columns: 1fr; }
  .project-card__info-grid { grid-template-columns: 1fr; }
  .projects-cta__box { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   24. EYEBROW MODIFIERS
   ============================================================ */
.eyebrow--gold {
  color: var(--gold);
}
.eyebrow--gold::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ============================================================
   25. CASA BUGAMBILIAS — FEATURED PROPERTY SECTION
   ============================================================ */

/* cb-featured-section is no longer a standalone section —
   the card lives inside .proyectos-main grid with grid-column:1/-1 */
.cb-featured-section {
  background: var(--dark-1);
  padding: var(--pad) 0;
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid rgba(201,169,110,0.07);
}

/* When cb-featured-card is inside the light proyectos-main grid,
   ensure its text stack renders against its own dark background */
.proyectos-main .cb-featured-card h2,
.proyectos-main .cb-featured-card p,
.proyectos-main .cb-featured-card strong {
  color: inherit;
}

.cb-featured-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  min-height: 540px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.10);
  box-shadow: 0 32px 80px rgba(0,0,0,0.32);
  position: relative;
  transition: box-shadow 0.6s ease;
}
.cb-featured-card:hover {
  box-shadow: 0 40px 100px rgba(0,0,0,0.40), 0 0 0 1px rgba(201,169,110,0.18);
}

/* Media side */
.cb-featured__media {
  position: relative;
  background-color: #1A1208;
  background-image: url('assets/casa-bugambilias/fachada.jpg');
  background-size: cover;
  background-position: center;
  min-height: 540px;
  overflow: hidden;
}
.cb-featured__media-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15,17,21,0.08) 0%,
    rgba(15,17,21,0.12) 45%,
    rgba(26,29,36,0.55) 72%,
    rgba(26,29,36,0.97) 100%
  );
}
.cb-featured__media::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(15,17,21,0.35) 100%
  );
  z-index: 1;
}

/* Warm gradient overlay when no image — visible as fallback */
.cb-featured__media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    135deg,
    rgba(45,30,10,0.0) 0%,
    rgba(45,30,10,0.0) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Gold badge */
.cb-featured__badge {
  position: absolute;
  top: 24px; left: 24px;
  z-index: 4;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  background: rgba(15,17,21,0.62);
  border: 1px solid rgba(201,169,110,0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.cb-featured__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: pulseDot 2.6s ease infinite;
}
.cb-featured__badge > span:last-child {
  font-size: 10px;
  font-family: var(--f-ui);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Content body */
.cb-featured__body {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--dark-2);
  color: var(--dark-text);
}

.cb-featured__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-family: var(--f-ui);
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.90;
}
.cb-featured__kicker::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--gold);
  opacity: 0.45;
  flex-shrink: 0;
}

.cb-featured__title {
  font-family: var(--f-heading);
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.05em;
  color: var(--dark-text);
  margin-bottom: 22px;
}

.cb-featured__quote {
  font-family: var(--f-heading);
  font-size: 1.0rem;
  line-height: 1.58;
  letter-spacing: -0.02em;
  color: rgba(240,242,248,0.62);
  font-style: italic;
  border-left: 2px solid rgba(201,169,110,0.25);
  padding-left: 18px;
  margin-bottom: 22px;
}

.cb-featured__description {
  font-size: var(--text-sm);
  line-height: 1.82;
  color: var(--dark-muted);
  margin-bottom: 30px;
}

/* 4-col spec strip */
.cb-featured__specs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 30px;
}
.cb-spec {
  padding: 16px 14px;
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.02);
  transition: background var(--ease);
}
.cb-spec:last-child { border-right: none; }
.cb-spec:hover { background: rgba(255,255,255,0.04); }
.cb-spec strong {
  font-family: var(--f-heading);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--dark-text);
  line-height: 1;
}
.cb-spec span {
  font-size: 9px;
  font-family: var(--f-ui);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-soft);
}

/* Footer row: price + CTAs */
.cb-featured__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.cb-featured__price {
  display: flex; flex-direction: column; gap: 3px;
}
.cb-featured__price > span {
  font-size: 9px;
  font-family: var(--f-ui);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dark-soft);
}
.cb-featured__price strong {
  font-family: var(--f-heading);
  font-size: 1.52rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1.1;
}
.cb-featured__price small {
  font-size: 0.6em;
  font-weight: 600;
  color: var(--dark-muted);
  letter-spacing: 0.06em;
}
.cb-featured__actions {
  display: flex; gap: 10px;
  flex-wrap: wrap; align-items: center;
}

/* Discover CTA — warm gold button */
.btn--discover {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(201,169,110,0.16), rgba(201,169,110,0.07));
  border: 1.5px solid rgba(201,169,110,0.30);
  color: var(--gold);
  font-size: 13px; font-weight: 600;
  font-family: var(--f-body);
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease), color var(--ease);
}
.btn--discover:hover {
  background: linear-gradient(135deg, rgba(201,169,110,0.26), rgba(201,169,110,0.13));
  border-color: rgba(201,169,110,0.50);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,169,110,0.13);
  color: #E0C080;
}
.btn--discover:active { transform: translateY(0); }
.btn--discover svg {
  width: 15px; height: 15px; flex-shrink: 0;
  transition: transform var(--ease);
}
.btn--discover:hover svg { transform: translateX(3px); }

/* ============================================================
   26. CASA BUGAMBILIAS MODAL
   ============================================================ */

.cb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--dark-1);
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s cubic-bezier(0.4,0,0.2,1),
              visibility 0.42s cubic-bezier(0.4,0,0.2,1);
  -webkit-overflow-scrolling: touch;
}
.cb-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sticky topbar */
.cb-modal__topbar {
  position: sticky;
  top: 0; z-index: 10;
  background: rgba(15,17,21,0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cb-modal__topbar-brand {
  display: flex; align-items: center; gap: 14px;
}
.cb-modal__topbar-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: rgba(201,169,110,0.10);
  border: 1px solid rgba(201,169,110,0.22);
  font-size: 10px; font-family: var(--f-ui); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.cb-modal__topbar-name {
  font-family: var(--f-heading);
  font-size: 14px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark-muted);
}
.cb-modal__close {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  border: 1.5px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--dark-muted);
  font-size: 13px; font-weight: 600; font-family: var(--f-body);
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.cb-modal__close:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
  color: var(--dark-text);
}
.cb-modal__close svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── HERO ─────────────────────── */
.cb-modal__hero {
  position: relative;
  height: 88vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.cb-modal__hero-image {
  position: absolute; inset: 0;
  background-color: #2D1E0A;
  background-image: url('assets/IMG/BUGAMBILIAS-1.png');
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.cb-modal.is-open .cb-modal__hero-image {
  transform: scale(1.0);
}
.cb-modal__hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      rgba(15,17,21,0.02) 0%,
      rgba(15,17,21,0.08) 38%,
      rgba(15,17,21,0.44) 65%,
      rgba(15,17,21,0.84) 85%,
      var(--dark-1) 100%
    ),
    linear-gradient(90deg,
      rgba(15,17,21,0.22) 0%,
      transparent 60%
    );
}
.cb-modal__hero-content {
  position: relative; z-index: 2;
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
  padding-bottom: 72px;
}
.cb-modal__hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 18px;
  border-radius: var(--r-full);
  background: rgba(15,17,21,0.55);
  border: 1px solid rgba(201,169,110,0.28);
  backdrop-filter: blur(10px);
  font-size: 11px; font-family: var(--f-ui); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.cb-modal__hero-badge-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulseDot 2.6s ease infinite;
}
.cb-modal__hero-title {
  font-family: var(--f-heading);
  font-size: clamp(3.2rem, 7.5vw, 6.4rem);
  font-weight: 800;
  line-height: 0.97;
  letter-spacing: -0.058em;
  color: var(--dark-text);
  margin-bottom: 24px;
}
.cb-modal__hero-quote {
  font-family: var(--f-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.52;
  letter-spacing: -0.02em;
  color: rgba(240,242,248,0.66);
  font-style: italic;
  max-width: 560px;
}

/* ── GALLERY ──────────────────── */
.cb-modal__gallery {
  padding: 52px 0 40px;
  background: var(--dark-1);
}
.cb-gallery-mosaic {
  width: min(calc(100% - 48px), 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 10px;
  height: 520px;
}
.cb-gallery-mosaic__main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 100%;
}
.cb-gallery-mosaic__secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}
.cb-gallery-mosaic__secondary .cb-gallery-img { flex: 1; }
.cb-gallery-img {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  transition: transform 0.55s ease;
}
.cb-gallery-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.22) 100%);
  transition: opacity 0.3s ease;
}
.cb-gallery-img:hover { transform: scale(1.025); }
.cb-gallery-img:hover::after { opacity: 0; }

/* Image slots */
.cb-gallery-img--main {
  background-color: #2A1C0A;
  background-image: url('assets/IMG/BUGAMBILIAS-3.png');
}
.cb-gallery-img--sala {
  background-color: #221A10;
  background-image: url('assets/IMG/BUGAMBILIAS-4.png');
}
.cb-gallery-img--jardin {
  background-color: #121810;
  background-image: url('assets/IMG/BUGAMBILIAS-5.png');
}
.cb-gallery-img--recamara {
  background-color: #1C1812;
  background-image: url('assets/IMG/BUGAMBILIAS-2.png');
}
.cb-gallery-hint {
  width: min(calc(100% - 48px), 1240px);
  margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.cb-gallery-hint span {
  font-size: 11px; font-family: var(--f-ui); font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--dark-soft);
}

/* ── STORY ────────────────────── */
.cb-modal__story {
  padding: var(--pad) 0;
  background: var(--dark-2);
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}
.cb-story__inner {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 80px;
  align-items: start;
}
.cb-story__lead .eyebrow { color: var(--gold); }
.cb-story__lead .eyebrow::before {
  background: linear-gradient(90deg, var(--gold), transparent);
}
.cb-story__lead h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.045em;
  color: var(--dark-text);
  max-width: 400px;
  margin-top: 0;
  margin-bottom: 36px;
}
.cb-story__taglines {
  display: flex; flex-direction: column; gap: 14px;
  padding-left: 18px;
  border-left: 2px solid rgba(201,169,110,0.18);
}
.cb-story__tagline {
  font-family: var(--f-heading);
  font-size: 0.97rem;
  letter-spacing: -0.018em;
  color: rgba(240,242,248,0.45);
  font-style: italic;
  line-height: 1.48;
  margin: 0;
}
.cb-story__paragraphs {
  display: flex; flex-direction: column; gap: 22px;
}
.cb-story__paragraphs p {
  font-size: var(--text-base);
  line-height: 1.84;
  color: var(--dark-muted);
  margin: 0;
}

/* ── SPECS ────────────────────── */
.cb-modal__specs {
  padding: var(--pad) 0;
  background: var(--light-1);
  color: var(--light-text);
}
.cb-specs__intro {
  margin-bottom: 48px;
}
.cb-specs__intro .eyebrow { color: var(--primary); }
.cb-specs__intro h2 {
  font-family: var(--f-heading);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--light-text);
  margin: 0;
}
.cb-specs__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1.5px solid var(--light-line-md);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cb-spec-item {
  padding: 30px 24px;
  border-right: 1px solid var(--light-line-md);
  transition: background var(--ease);
}
.cb-spec-item:last-child { border-right: none; }
.cb-spec-item:hover { background: var(--light-2); }
.cb-spec-item__value {
  display: block;
  font-family: var(--f-heading);
  font-size: 1.75rem; font-weight: 800;
  letter-spacing: -0.048em;
  color: var(--light-text);
  line-height: 1;
  margin-bottom: 7px;
}
.cb-spec-item--price .cb-spec-item__value {
  font-size: 1.0rem;
  color: var(--primary-deep);
  letter-spacing: -0.03em;
}
.cb-spec-item__label {
  display: block;
  font-size: 9px; font-family: var(--f-ui); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--light-soft);
}

/* ── LOCATION ─────────────────── */
.cb-modal__location {
  padding: var(--pad-sm) 0;
  background: var(--dark-1);
  border-top: 1px solid var(--dark-line);
}
.cb-location__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.cb-location__text .eyebrow { color: var(--secondary-blue); }
.cb-location__address {
  font-family: var(--f-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  color: var(--dark-text);
  margin-bottom: 8px;
}
.cb-location__city {
  font-size: var(--text-sm); color: var(--dark-muted); line-height: 1.6; margin: 0;
}
.cb-location__tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px;
}
.cb-location__tag {
  display: inline-flex;
  padding: 5px 14px;
  border-radius: var(--r-full);
  font-size: 11px; font-family: var(--f-ui); font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(73,80,188,0.08);
  border: 1px solid rgba(73,80,188,0.18);
  color: var(--secondary-blue);
}
.cb-location__visual {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.cb-location__stat strong {
  display: block;
  font-family: var(--f-heading);
  font-size: 1.12rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--dark-text);
  margin-bottom: 4px; line-height: 1.2;
}
.cb-location__stat span {
  font-size: 11px; font-family: var(--f-ui); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-soft);
}

/* ── MODAL CTA ────────────────── */
.cb-modal__cta {
  padding: var(--pad) 0;
  background: var(--dark-2);
  border-top: 1px solid var(--dark-line);
  text-align: center;
}
.cb-cta__inner { max-width: 680px; margin-inline: auto; }
.cb-cta__inner .eyebrow { justify-content: center; color: var(--gold); margin-bottom: 22px; }
.cb-cta__inner .eyebrow::before { background: linear-gradient(90deg, var(--gold), transparent); }
.cb-cta__title {
  font-family: var(--f-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--dark-text); margin-bottom: 18px;
}
.cb-cta__text {
  font-size: var(--text-base); line-height: 1.78;
  color: var(--dark-muted);
  max-width: 520px; margin: 0 auto 42px;
}
.cb-cta__actions {
  display: flex; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

/* WhatsApp button */
.btn--whatsapp {
  background: #075E54;
  color: #fff;
  border: none !important;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; font-family: var(--f-body); white-space: nowrap;
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn--whatsapp:hover {
  background: #054d45;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(7,94,84,0.36);
}
.btn--whatsapp:active { transform: translateY(0); }
.btn--whatsapp svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============================================================
   27. PROYECTOS MAIN — ENHANCED CARDS
   ============================================================ */

/* Taller media for more visual weight */
.projects-grid--premium .project-card__media {
  aspect-ratio: 3/2;
}

/* Stronger hover depth */
.projects-grid--premium .project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(73,80,188,.30);
  box-shadow: 0 20px 56px rgba(73,80,188,.11), 0 6px 18px rgba(0,0,0,.07);
}

/* Better body spacing */
.projects-grid--premium .project-card__body {
  padding: 24px 26px 28px;
  gap: 12px;
}

/* h3 — stronger */
.projects-grid--premium .project-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.034em;
  line-height: 1.22;
}

/* Tags using span children */
.project-card__tags span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px; font-family: var(--f-ui);
  font-weight: 600; letter-spacing: 0.06em;
  background: rgba(73,80,188,.08);
  border: 1px solid rgba(73,80,188,.18);
  color: var(--primary);
}

/* Gold badge — exclusive/featured properties */
.project-card__badge--gold,
.proyectos-main .project-card__badge--gold {
  background: linear-gradient(135deg, #C9A96E 0%, #B8922A 100%) !important;
  border: 1px solid rgba(201,169,110,0.55) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.28);
  box-shadow: 0 2px 8px rgba(184,146,42,0.35);
  letter-spacing: 0.04em;
}

/* Price inside card */
.project-card__price {
  font-family: var(--f-heading);
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-deep);
  padding-top: 2px;
}
.project-card__price small {
  font-size: 0.60em;
  font-weight: 600;
  color: var(--light-soft);
  letter-spacing: 0.05em;
  margin-left: 2px;
}

/* Improved ghost btn on light section */
.proyectos-main .btn--ghost {
  color: var(--light-muted);
  border-color: rgba(15,17,21,0.16);
}
.proyectos-main .btn--ghost:hover {
  color: var(--primary);
  border-color: rgba(73,80,188,0.28);
  background: rgba(73,80,188,0.05);
}

/* button element inside project-card__actions (modal trigger) */
.project-card__actions button.btn {
  cursor: pointer;
  border: none;
}

/* ============================================================
   28. RESPONSIVE — NEW ELEMENTS
   ============================================================ */

@media (max-width: 1080px) {
  .cb-featured-card { grid-template-columns: 1fr; }
  .cb-featured__media {
    min-height: 380px;
  }
  .cb-featured__media-overlay {
    background: linear-gradient(
      180deg,
      transparent 55%,
      rgba(26,29,36,0.80) 80%,
      rgba(26,29,36,0.98) 100%
    );
  }
  .cb-featured__body { padding: 38px 36px; }
  .cb-featured__specs { grid-template-columns: repeat(4, 1fr); }

  .cb-specs__grid { grid-template-columns: repeat(3, 1fr); }
  .cb-location__inner { grid-template-columns: 1fr; gap: 32px; }
  .cb-story__inner { grid-template-columns: 1fr; gap: 44px; }
  .cb-story__lead h2 { max-width: 100%; }

  .cb-gallery-mosaic { height: auto; grid-template-columns: 1fr; }
  .cb-gallery-mosaic__main { aspect-ratio: 16/9; height: auto; }
  .cb-gallery-mosaic__secondary { flex-direction: row; height: auto; }
  .cb-gallery-mosaic__secondary .cb-gallery-img { aspect-ratio: 16/9; flex: 1; }
}

@media (max-width: 900px) {
  .cb-modal__topbar { padding: 13px 20px; }
  .cb-modal__topbar-name { display: none; }
  .cb-modal__hero { height: 72vh; min-height: 440px; }
  .cb-modal__hero-title { font-size: clamp(2.6rem, 8vw, 4.2rem); }
  .cb-featured__body { padding: 30px 26px; }
  .cb-featured__footer { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cb-featured__specs { grid-template-columns: repeat(2, 1fr); }
  .cb-specs__grid { grid-template-columns: repeat(2, 1fr); }
  .cb-location__visual { grid-template-columns: 1fr 1fr; }
  .cb-gallery-mosaic__secondary { flex-direction: column; }
  .cb-gallery-mosaic__secondary .cb-gallery-img { aspect-ratio: 16/9; flex: unset; width: 100%; }
}

@media (max-width: 600px) {
  .cb-featured__specs { grid-template-columns: repeat(2, 1fr); }
  .cb-specs__grid { grid-template-columns: 1fr 1fr; }
  .cb-modal__hero { height: 62vh; min-height: 380px; }
  .cb-modal__topbar { padding: 12px 16px; }
  .cb-cta__actions { flex-direction: column; align-items: stretch; }
  .cb-cta__actions .btn,
  .cb-cta__actions .btn--whatsapp { justify-content: center; width: 100%; }
  .cb-gallery-mosaic { display: flex; flex-direction: column; gap: 8px; }
  .cb-gallery-mosaic__main { aspect-ratio: 4/3; height: auto; }
  .cb-gallery-mosaic__main .cb-gallery-img { aspect-ratio: 4/3; }
  .cb-gallery-mosaic__secondary { flex-direction: row; height: auto; }
  .cb-gallery-mosaic__secondary .cb-gallery-img { aspect-ratio: 1/1; flex: 1; }
  .cb-featured__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .cb-featured__actions .btn,
  .cb-featured__actions .btn--discover { width: 100%; justify-content: center; }
}

/* ============================================================
   29. PROJECTS HERO CAROUSEL
   ============================================================ */

.ph-carousel {
  position: absolute; inset: 0;
  border-radius: inherit;
}

.ph-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.ph-slide.is-active { opacity: 1; }

.ph-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transform: scale(1.07);
  transition: transform 7s ease;
  will-change: transform;
}
.ph-slide.is-active img { transform: scale(1.0); }

/* Dark gradient so caption is always readable */
.ph-carousel__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(15,17,21,0.0) 0%,
      rgba(15,17,21,0.05) 42%,
      rgba(15,17,21,0.52) 68%,
      rgba(15,17,21,0.92) 100%
    );
}

/* Caption bar */
.ph-caption {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 18px 22px 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
}
.ph-caption__text { flex: 1; min-width: 0; }
.ph-caption__tag {
  display: inline-block;
  font-family: var(--f-ui); font-size: 10px; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  padding: 3px 9px; border-radius: var(--r-full);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  margin-bottom: 6px;
  transition: opacity 0.4s;
}
.ph-caption__name {
  font-family: var(--f-heading); font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.2;
  color: #fff; margin: 0 0 3px;
  transition: opacity 0.4s;
}
.ph-caption__loc {
  font-family: var(--f-ui); font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.50); margin: 0;
  transition: opacity 0.4s;
}

/* Caption fade-out during transition */
.ph-caption.is-transitioning .ph-caption__tag,
.ph-caption.is-transitioning .ph-caption__name,
.ph-caption.is-transitioning .ph-caption__loc { opacity: 0; }

/* Dots */
.ph-dots {
  display: flex; gap: 5px; align-items: center; flex-shrink: 0;
  padding-bottom: 4px;
}
.ph-dot {
  width: 6px; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.30);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.35s, width 0.35s;
}
.ph-dot.is-active {
  background: #fff;
  width: 20px;
}

/* Counter top-right */
.ph-counter {
  position: absolute; top: 16px; right: 18px; z-index: 3;
  font-family: var(--f-ui); font-size: 11px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.38);
  display: flex; align-items: center; gap: 4px;
  pointer-events: none;
}
.ph-counter__current {
  color: rgba(255,255,255,0.75); font-weight: 700;
}

/* ============================================================
   30. PROJECTS CTA — RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .projects-cta__box { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .projects-hero__visual { min-height: 300px; }
  .projects-cta__actions { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pcm-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   31. STATS BAND — Métricas del sistema AVANZ
   ============================================================ */

.stats-band {
  border-top: 1px solid var(--dark-line);
  border-bottom: 1px solid var(--dark-line);
}

.stats-band__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
}

.stats-band__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 36px 28px;
}

.stats-band__number {
  font-family: var(--f-heading);
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, #fff 50%, var(--secondary-blue) 160%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-band__number--gold {
  background: linear-gradient(135deg, var(--gold) 30%, #E8C87A 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-band__label {
  font-family: var(--f-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--dark-muted);
  line-height: 1.55;
  letter-spacing: 0.01em;
  max-width: 180px;
}

.stats-band__divider {
  width: 1px;
  height: 52px;
  background: linear-gradient(180deg, transparent, var(--dark-line-md), transparent);
  flex-shrink: 0;
}

/* ============================================================
   32. SYSTEM TIMELINE — Seis pasos AVANZ
   ============================================================ */

.system-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 52px;
}

.system-step {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--dark-line);
  border-radius: var(--r-md);
  padding: 32px 28px 30px;
  position: relative;
  overflow: hidden;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}

.system-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent 70%);
  opacity: 0;
  transition: opacity var(--ease);
}

.system-step:hover {
  background: rgba(73, 80, 188, 0.07);
  border-color: rgba(73, 80, 188, 0.24);
  transform: translateY(-3px);
}

.system-step:hover::before {
  opacity: 1;
}

.system-step__num {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--secondary-blue);
  margin-bottom: 14px;
  opacity: 0.8;
  display: block;
}

.system-step__content h3 {
  font-family: var(--f-heading);
  font-size: 1.04rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dark-text);
  margin-bottom: 10px;
  line-height: 1.26;
}

.system-step__content p {
  font-size: var(--text-sm);
  line-height: 1.72;
  color: var(--dark-muted);
  margin: 0;
}

.system-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.system-cta-note {
  font-size: var(--text-sm);
  color: var(--dark-soft);
  font-family: var(--f-ui);
  letter-spacing: 0.01em;
  max-width: 400px;
  text-align: center;
}

/* ============================================================
   33. TRUST / AUTORIDAD — Criterios de trabajo
   ============================================================ */

.trust-authority {
  border-top: 1px solid var(--dark-line);
}

.trust-authority__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.trust-authority__header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.trust-authority__title {
  color: var(--dark-text) !important;
  margin-bottom: 18px;
}

.trust-authority__subtitle {
  font-size: var(--text-base);
  line-height: 1.76;
  color: var(--dark-muted);
  margin: 0;
}

.trust-authority__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.trust-authority__card {
  border-radius: var(--r-lg);
  padding: 38px 34px;
  border: 1px solid var(--dark-line);
}

.trust-authority__card--fit {
  background: rgba(73, 80, 188, 0.06);
  border-color: rgba(73, 80, 188, 0.22);
}

.trust-authority__card--nofit {
  background: rgba(255, 255, 255, 0.025);
}

.trust-authority__card-label {
  display: inline-flex;
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 5px 16px;
  border-radius: var(--r-full);
}

.trust-authority__card-label--positive {
  color: var(--secondary-blue);
  background: rgba(73, 80, 188, 0.12);
  border: 1px solid rgba(73, 80, 188, 0.24);
}

.trust-authority__card-label--negative {
  color: var(--dark-soft);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-authority__card h4 {
  font-family: var(--f-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--dark-text);
  margin-bottom: 22px;
  line-height: 1.32;
}

.trust-authority__list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.trust-authority__list li {
  font-size: var(--text-sm);
  color: var(--dark-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.58;
}

.trust-authority__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--dark-soft);
  font-size: 10px;
}

.trust-authority__card--fit .trust-authority__list li::before {
  content: '✓';
  color: var(--secondary-blue);
  font-size: 11px;
  font-weight: 700;
  top: 0;
}

/* ============================================================
   34. CTA FINAL PREMIUM — Efectos visuales cinematográficos
   ============================================================ */

.cta-final-premium {
  position: relative;
  overflow: hidden;
}

.cta-final-premium__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-final-premium__glow--1 {
  position: absolute;
  top: 50%; left: 18%;
  transform: translate(-50%, -50%);
  width: 700px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(73, 80, 188, 0.11), transparent 70%);
  filter: blur(50px);
}

.cta-final-premium__glow--2 {
  position: absolute;
  top: 50%; right: 8%;
  transform: translate(50%, -50%);
  width: 500px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.07), transparent 70%);
  filter: blur(60px);
}

.cta-final-premium__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(73, 80, 188, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 80, 188, 0.032) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 25%,
    rgba(0, 0, 0, 0.55) 75%,
    transparent 100%
  );
}

/* ============================================================
   35. FOOTER MEJORADO — 3 columnas premium
   ============================================================ */

.footer-grid--wide {
  grid-template-columns: 1.7fr 0.8fr 0.8fr;
  gap: 40px;
}

.footer-card--brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand--footer {
  margin-bottom: 2px;
}

.footer-description {
  font-size: var(--text-sm);
  line-height: 1.76;
  color: var(--dark-muted);
  max-width: 360px;
  margin: 0;
}

.footer-tagline {
  font-family: var(--f-ui);
  font-size: 10px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-soft);
}

/* Ajuste adicional en el problema section */
.problem-grid__cta {
  margin-top: 28px;
}

/* ============================================================
   36. RESPONSIVE ADDITIONS — Nuevas secciones
   ============================================================ */

@media (max-width: 1080px) {
  .stats-band__inner {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .stats-band__divider { display: none; }
  .stats-band__item { padding: 28px 20px; }

  .system-timeline { grid-template-columns: 1fr 1fr; }

  .trust-authority__grid { grid-template-columns: 1fr; gap: 14px; }

  .footer-grid--wide { grid-template-columns: 1fr 1fr; }
  .footer-card--brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .system-cta-row { flex-direction: column; text-align: center; }
  .system-cta-note { max-width: 280px; }
}

@media (max-width: 600px) {
  .stats-band__inner { grid-template-columns: 1fr 1fr; }
  .system-timeline { grid-template-columns: 1fr; }
  .footer-grid--wide { grid-template-columns: 1fr; }
  .trust-authority__card { padding: 28px 22px; }
}

