/* ───────────────────────────────────────────────────────────────
   Aclimatar — Component styles
   (nav, hero, about, services, comfort, linea blanca, etc.)
   ─────────────────────────────────────────────────────────────── */

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(25, 47, 124, 0.08), 0 6px 24px -16px rgba(0, 4, 38, 0.35);
  border-bottom: 1px solid transparent;
  transition: none;
}
[data-theme="dark"] .nav { background: rgba(11, 16, 32, 0.72); }
.nav-scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(25, 47, 124, 0.08), 0 6px 24px -16px rgba(0, 4, 38, 0.35);
  border-bottom-color: transparent;
}
[data-theme="dark"] .nav-scrolled { background: rgba(11, 16, 32, 0.92); }

.nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
/* ── LOGO ── */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo-img {
  display: block;
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: filter 0.2s;
}
.logo-tag {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-500);
  line-height: 1.3;
  max-width: 14ch;
  padding-left: 14px;
  border-left: 1px solid var(--border);
}
/* Footer / dark contexts — invert the logo to white */
.logo-dark .logo-img,
.footer .logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}
.footer .logo-tag {
  color: rgba(255,255,255,0.5);
  border-left-color: rgba(255,255,255,0.2);
}
.footer .logo-wrap { gap: 14px; }
.footer .logo-img { height: 78px; }
.nav-logo .logo-img { height: 108px; }

/* Mobile — hide the tagline line in nav */
@media (max-width: 720px) {
  .nav-logo .logo-tag { display: none; }
  .nav-logo .logo-wrap { gap: 0; }
}
.nav-logo { cursor: pointer; }


.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-700);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link.is-active { color: var(--brand-700); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -2px;
  height: 2px;
  background: var(--brand-700);
  border-radius: 2px;
}
.nav-link-hl { color: var(--brand-700); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink-700);
  cursor: pointer;
  transition: all 0.15s;
}
.nav-icon:hover { color: var(--brand-700); background: var(--brand-50); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.nav-burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink-900);
  border-radius: 2px;
}

.nav-mobile {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  padding: 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-link {
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
}
.nav-mobile-link:hover { background: var(--brand-50); color: var(--brand-700); }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
}

/* ── SECTION HEAD shared ── */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--gap-xl);
  margin-bottom: var(--gap-xl);
  flex-wrap: wrap;
}

/* ── PILL DOT ── */
.pill-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-400);
  box-shadow: 0 0 0 3px rgba(80, 135, 199, 0.2);
}

/* ── HEADLINE highlight ── */
.hl {
  color: var(--brand-700);
  font-style: normal;
}
.ital {
  font-style: italic;
  font-weight: 400;
  color: var(--brand-700);
}

/* ── HERO LIFESTYLE ── */
.hero {
  padding-top: 120px;
  padding-bottom: var(--gap-2xl);
  background:
    radial-gradient(80% 60% at 50% 0%, var(--brand-50) 0%, transparent 70%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

/* ── HERO VIDEO — full-bleed background video + overlaid copy ── */
.hero-video {
  min-height: 88vh;
  display: flex;
  align-items: center;
  margin-top: 120px;
  padding-top: 72px;
  padding-bottom: var(--gap-2xl);
  background: var(--brand-900);
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(95deg,
      rgba(0, 2, 26, 0.58) 0%,
      rgba(0, 4, 38, 0.36) 40%,
      rgba(0, 8, 50, 0.14) 72%,
      rgba(0, 8, 50, 0.06) 100%),
    linear-gradient(0deg, rgba(0, 2, 26, 0.32) 0%, transparent 42%);
}
.hero-video .container-wide {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-video-copy {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-video-copy h1 {
  color: #fff;
  margin: 0;
  text-shadow: 0 2px 30px rgba(0, 2, 26, 0.35);
}
.hero-video-copy h1 .hl {
  color: var(--brand-300);
}
.hero-video-copy .lede {
  color: rgba(255, 255, 255, 0.86);
  max-width: 50ch;
}
.eyebrow-light {
  color: var(--brand-300) !important;
}
@media (max-width: 720px) {
  .hero-video { min-height: 78vh; }
  .hero-video-scrim {
    background:
      linear-gradient(0deg,
        rgba(0, 2, 26, 0.9) 0%,
        rgba(0, 4, 38, 0.55) 50%,
        rgba(0, 8, 50, 0.4) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-bg { display: none; }
  .hero-video {
    background:
      linear-gradient(95deg, var(--brand-900), var(--brand-700)),
      url('photos/hero-chiller-carrier.webp') center/cover;
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr;
  gap: var(--gap-2xl);
  align-items: center;
  padding-top: 40px;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 { margin-top: 8px; }
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
}
.hero-trust-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--brand-700);
  line-height: 1;
}
.hero-trust-lbl {
  font-size: 12.5px;
  color: var(--ink-500);
  margin-top: 6px;
  line-height: 1.35;
}

.hero-visual { position: relative; min-height: 440px; }
.hero-stage { position: relative; height: 100%; display: flex; align-items: center; }
.hero-image-main {
  position: relative;
  aspect-ratio: 4 / 4.4;
  max-width: 430px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mock-interior {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.mock-wall {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #E8DECB 0%, #DCC9AC 70%, #C8B594 100%);
}
.mock-sofa {
  position: absolute;
  bottom: 14%;
  left: 12%;
  right: 12%;
  height: 28%;
  background: linear-gradient(180deg, #5A6B7A 0%, #3F4E5B 100%);
  border-radius: 18px 18px 6px 6px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}
.mock-sofa::before, .mock-sofa::after {
  content: '';
  position: absolute;
  top: 22%;
  width: 24%;
  height: 60%;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
}
.mock-sofa::before { left: 10%; }
.mock-sofa::after  { right: 10%; }
.mock-ac {
  position: absolute;
  top: 12%;
  right: 14%;
  width: 30%;
  height: 9%;
  background: linear-gradient(180deg, #FAFAFA 0%, #E5E8EC 100%);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12), inset 0 -2px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: flex-end;
  padding: 0 8px 6px;
}
.mock-ac::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 8%;
  right: 8%;
  height: 30%;
  background: rgba(0,0,0,0.1);
  border-radius: 0 0 6px 6px;
}
.mock-ac-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}
.mock-plant {
  position: absolute;
  bottom: 14%;
  right: 5%;
  width: 8%;
  height: 36%;
  background: linear-gradient(180deg, #2D5F3F 0%, #1A3A26 60%, #1A1A1A 100%);
  clip-path: polygon(20% 100%, 0% 70%, 30% 40%, 10% 10%, 50% 0%, 90% 10%, 70% 40%, 100% 70%, 80% 100%);
}

.hero-card {
  position: absolute;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-soft);
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 200px;
}
.hero-card-1 {
  left: -32px;
  bottom: 24%;
}
.hero-card-2 {
  right: -16px;
  top: 16%;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.hc-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hc-title { font-size: 13.5px; font-weight: 600; color: var(--ink-900); line-height: 1.2; }
.hc-sub   { font-size: 12px; color: var(--ink-500); margin-top: 2px; }
.hc-badge { font-size: 11.5px; font-weight: 600; color: var(--brand-700); }
.hc-stars { color: #F5B82E; display: flex; gap: 1px; margin: 2px 0; }
.hc-text  { font-size: 12px; color: var(--ink-500); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--gap-xl); }
  .hero-visual { min-height: 420px; }
  .hero-card-1 { left: 12px; }
  .hero-card-2 { right: 12px; }
}

/* ── HERO SPLIT ── */
.hero-split { padding-top: 140px; }
.hero-split-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--gap-2xl);
  align-items: end;
  margin-bottom: var(--gap-xl);
}
.hero-split-h {
  font-size: clamp(56px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  font-weight: 650;
}
.hero-split-stage { position: relative; }
.hero-image-wide {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-split-stats {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-split-stats .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 650;
  color: var(--brand-700);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-split-stats .lbl {
  font-size: 12px;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.hairline-v {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── BRAND STRIP ── */
.brand-strip {
  margin-top: var(--gap-2xl);
  padding: 32px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.brand-strip-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: center;
  margin-bottom: 24px;
  font-weight: 600;
}
.brand-strip-item {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-400);
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.brand-strip-item:hover { opacity: 1; color: var(--ink-700); }

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--gap-2xl);
  align-items: center;
}
.about-copy { display: flex; flex-direction: column; gap: 16px; }
.about-copy h2 { margin: 8px 0 8px; }
.about-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.about-point {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.about-point:last-child { border-bottom: 0; }
.about-point-num {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--brand-400);
  font-weight: 600;
  padding-top: 3px;
}
.about-point-t { font-weight: 600; font-size: 16px; color: var(--ink-900); }
.about-point-d { font-size: 14.5px; color: var(--ink-500); margin-top: 4px; }

.about-visual {
  position: relative;
  min-height: 540px;
}
.about-collage {
  position: relative;
  height: 100%;
  min-height: 540px;
}
.about-img-1 {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.about-photo {
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-img-2 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.about-badge {
  position: absolute;
  top: auto;
  bottom: 6%;
  left: 0;
  background: var(--brand-700);
  color: #fff;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
}
.about-badge-lbl {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
  font-weight: 500;
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 460px; }
}

/* ── KPI BAR ── */
.kpi-bar {
  padding: 32px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-lg);
}
.kpi-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi-num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: var(--brand-700);
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.kpi-suffix { font-size: 16px; color: var(--ink-500); font-weight: 500; letter-spacing: 0; }
.kpi-lbl { font-size: 14px; color: var(--ink-500); max-width: 24ch; }

@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── SERVICES ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-md);
}
.service-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.service-img {
  aspect-ratio: 4 / 3.2;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-100, #eee);
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.92);
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.service-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.service-body h3 { font-size: 19px; }
.service-body p { font-size: 14.5px; flex: 1; }
.service-body .arrow-link { margin-top: 4px; }

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ── COMFORT / LIFESTYLE ── */
.comfort-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}
.comfort-bg {
  position: relative;
  aspect-ratio: 21 / 10;
  border-radius: 0;
  display: flex;
  align-items: flex-end;
}
.comfort-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,18,40,0.7) 100%);
}
.comfort-overlay {
  position: relative;
  z-index: 2;
  padding: 56px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comfort-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
}
.comfort-feature {
  padding: 32px;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.comfort-feature:last-child { border-right: 0; }
.cf-icon { font-size: 22px; }
.cf-title { font-weight: 600; font-size: 15.5px; color: var(--ink-900); }
.cf-desc { font-size: 14px; color: var(--ink-500); }

@media (max-width: 960px) {
  .comfort-overlay { padding: 32px; }
  .comfort-features { grid-template-columns: repeat(2, 1fr); }
  .comfort-feature:nth-child(2) { border-right: 0; }
  .comfort-feature:nth-child(-n+2) { border-bottom: 1px solid var(--border-soft); }
}

/* ── LÍNEA BLANCA PREVIEW ── */
.lb-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}
.lb-cat-card {
  position: relative;
  background: var(--bg-soft);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(.3,.7,.4,1);
  overflow: hidden;
  font-family: inherit;
}
.lb-cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-50), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.lb-cat-card:hover {
  border-color: var(--brand-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.lb-cat-card:hover::before { opacity: 1; }
.lb-cat-icon {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-700);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}
.lb-cat-meta { flex: 1; position: relative; z-index: 1; }
.lb-cat-name {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink-900);
}
.lb-cat-count {
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 4px;
}
.lb-cat-arrow {
  color: var(--ink-400);
  position: relative;
  z-index: 1;
  transition: all 0.2s;
}
.lb-cat-card:hover .lb-cat-arrow {
  color: var(--brand-700);
  transform: translate(2px, -2px);
}

@media (max-width: 960px) {
  .lb-cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lb-cat-grid { grid-template-columns: 1fr; }
}

/* ── WHY TRUST ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--gap-2xl);
}
.why-head { display: flex; flex-direction: column; gap: 16px; }
.why-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-soft);
}
.why-item:first-child { padding-top: 0; }
.why-item:last-child { border-bottom: 0; }
.why-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 650;
  color: var(--brand-400);
  letter-spacing: -0.02em;
  line-height: 1;
}
.why-item h3 { margin-bottom: 8px; }
.why-item p { font-size: 15px; }

@media (max-width: 960px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
}

/* ── BRANDS & CLIENTS — logo grids ── */
.brands-section,
.clients-section {
  position: relative;
}
.clients-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.brands-head {
  max-width: 720px;
  margin: 0 auto var(--gap-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.brands-head .eyebrow { justify-content: center; }
.brands-head h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.brands-lede {
  color: var(--ink-500);
  font-size: 16px;
  line-height: 1.55;
  max-width: 56ch;
}

.logo-grid {
  display: grid;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.logo-grid-brands  { grid-template-columns: repeat(5, 1fr); }
.logo-grid-clients { grid-template-columns: repeat(5, 1fr); }

.logo-tile {
  position: relative;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
  min-height: 140px;
  transition: background .25s ease, transform .25s ease;
}
.logo-tile-sm {
  min-height: 120px;
  padding: 20px;
}
.logo-tile:hover {
  background: #ffffff;
}

/* AmCham logo is portrait/tall — contain shrinks it vs. the landscape
   logos. Scale it up so it reads at the same visual size. */
.logo-tile-amcham .logo-tile-slot image-slot {
  transform: scale(1.35);
  transform-origin: center;
}

/* Force the image-slot's inner frame to stay white so transparent PNGs
   render on a clean white field instead of inheriting the tile bg. */
.logo-tile-slot image-slot::part(frame) {
  background: #ffffff;
}

/* ── Clients carousel — infinite auto-scroll ─────────────────────────── */
.clients-marquee {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  /* Soft fade on the edges so logos enter/exit gracefully */
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.clients-marquee-track {
  display: flex;
  gap: 1px;
  background: var(--border-soft);
  width: max-content;
  animation: clients-scroll 90s linear infinite;
}
.clients-marquee:hover .clients-marquee-track {
  animation-play-state: paused;
}
.logo-tile-marquee {
  flex: 0 0 auto;
  width: 200px;
  min-height: 120px;
  padding: 20px;
  cursor: pointer;
}
@keyframes clients-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .clients-marquee-track { animation: none; }
  .clients-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
@media (max-width: 720px) {
  .logo-tile-marquee { width: 160px; min-height: 110px; padding: 16px; }
  .clients-marquee-track { animation-duration: 60s; }
}

.logo-tile-slot {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-tile-sm .logo-tile-slot { }

.logo-tile-slot image-slot {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.logo-tile-meta {
  text-align: center;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.logo-tile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.logo-tile-sm .logo-tile-name { font-size: 13.5px; }
.logo-tile-sub {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  font-weight: 500;
}

@media (max-width: 1100px) {
  .logo-grid-brands  { grid-template-columns: repeat(3, 1fr); }
  .logo-grid-clients { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .logo-grid-brands  { grid-template-columns: repeat(2, 1fr); }
  .logo-grid-clients { grid-template-columns: repeat(2, 1fr); }
  .logo-tile { min-height: 120px; padding: 16px; }
}

/* Dark mode — keep logos in their original color (tile bg stays white) */

/* ── PROJECTS ── */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 384px;
  gap: var(--gap-md);
}
.proj-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.proj-card-0 { grid-column: span 7; }
.proj-card-1 { grid-column: span 5; }
.proj-card-2 { grid-column: span 5; }
.proj-card-3 { grid-column: span 7; }
.proj-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.proj-card:hover .proj-img { transform: scale(1.03); }
.proj-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.proj-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.proj-meta h3 { color: #fff; font-size: clamp(20px, 1.7vw, 26px); }
.proj-meta .pill { background: rgba(255,255,255,0.92); color: var(--brand-700); }

@media (max-width: 960px) {
  .proj-card-0, .proj-card-1, .proj-card-2, .proj-card-3 { grid-column: span 12; }
  .proj-grid { grid-auto-rows: 320px; }
}


/* ── CONTACT ── */
.contact {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--gap-2xl);
  align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 16px; }
.contact-info {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-lbl {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 6px;
}
.contact-info-val {
  font-size: 16px;
  color: var(--ink-900);
  font-weight: 500;
}
a.contact-info-link {
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s;
}
a.contact-info-link:hover { color: var(--brand-700); }
.contact-info-maps {
  display: block;
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--brand-700);
}

.contact-form {
  background: var(--surface);
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: -0.005em;
}
.cf-field input, .cf-field textarea, .cf-field select {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  outline: none;
  transition: all 0.15s;
  resize: none;
}
.cf-field input:focus, .cf-field textarea:focus, .cf-field select:focus {
  border-color: var(--brand-500);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(80, 135, 199, 0.18);
}
.cf-fine {
  font-size: 12.5px;
  color: var(--ink-500);
  text-align: center;
  margin-top: 4px;
}
.cf-fine a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; }
.cf-field input.cf-invalid {
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.05);
}
.cf-field input.cf-invalid:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.16);
}
.cf-error {
  font-size: 13px;
  color: #c0392b;
  margin: -2px 0 2px;
}
.cf-error a { color: #c0392b; text-decoration: underline; text-underline-offset: 2px; }
.cf-success {
  font-size: 13px;
  color: #1f8a5b;
  font-weight: 600;
  margin: -2px 0 2px;
}
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; }
.careers-submit[disabled] { opacity: 0.6; cursor: progress; }

/* ── Estado de confirmación del formulario ── */
.contact-sent {
  align-items: center;
  text-align: center;
  justify-content: center;
  gap: 14px;
  min-height: 360px;
}
.contact-sent-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 4px;
}
.contact-sent-icon svg { width: 30px; height: 30px; }
.contact-sent h3 {
  font-size: 22px;
  font-weight: 650;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.contact-sent p {
  font-size: 15px;
  color: var(--ink-600);
  max-width: 38ch;
  line-height: 1.55;
}
.contact-sent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}
.contact-sent-reset {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-top: 2px;
}
.contact-sent-reset:hover { color: var(--brand-600); }

@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .cf-row-2 { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}

/* ── FOOTER ── */
.footer {
  background: var(--brand-900);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--gap-xl);
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tag { color: rgba(255,255,255,0.5); }
.footer-brand p { color: rgba(255,255,255,0.7); font-size: 14.5px; }
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
}
.footer-linkedin:hover { color: #fff; }

.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; }
.footer-col a.footer-email { white-space: nowrap; font-size: 13px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
}
.footer-bottom-right { display: flex; gap: 24px; }
.footer-bottom a { color: rgba(255,255,255,0.6); cursor: pointer; }

/* ── WhatsApp floating button ── */
.wa-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(7, 94, 84, 0.55), 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: wa-pop 0.4s ease both;
}
.wa-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px -6px rgba(7, 94, 84, 0.6), 0 3px 10px rgba(0,0,0,0.22);
}
.wa-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: wa-ring 2.4s ease-out infinite;
}
@keyframes wa-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@keyframes wa-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 720px) {
  .wa-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab, .wa-fab::before { animation: none; }
}
.footer-bottom a:hover { color: #fff; }

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--gap-lg); }
  .footer-bottom { flex-direction: column; gap: 14px; }
}
