/* Home — variation-specific styles */

/* ===== Shared home bits ===== */
.home-hero {
  min-height: 100vh;
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
}

/* ---------- V1 Editorial ---------- */
.hero-v1 {
  background: var(--warm-white);
  padding-top: calc(var(--header-h) + 32px);
  padding-bottom: 16px;
}
.hero-v1 .inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: stretch; }
.hero-v1 .title-block { padding-top: 0; min-width: 0; }
.hero-v1 .hero-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(44px, 6vw, 136px); line-height: 0.94; letter-spacing: -0.03em; overflow-wrap: break-word; hyphens: manual; }
.hero-v1 .hero-title em { font-style: italic; color: var(--verde-oscuro); }
.hero-v1 .hero-sub { margin-top: 24px; max-width: 44ch; font-size: 19px; color: var(--ink-soft); line-height: 1.55; }
.hero-v1 .hero-meta { display: flex; gap: 48px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-v1 .hero-meta .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.hero-v1 .hero-meta .v { font-family: var(--font-display); font-weight: 300; font-size: 28px; letter-spacing: -0.01em; }
.hero-v1 .image-stack { position: relative; height: 100%; }
.hero-v1 .image-stack .main { position: absolute; inset: 0; }
.hero-v1 .image-stack .main img { width: 100%; height: 100%; object-fit: cover; }

/* Hero photo — warm editorial tone to match Meet Brokers palette */
.hero-v1 .hero-photo img {
  filter: saturate(0.78) contrast(1.04) brightness(1.02);
}
.hero-v1 .hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(89,97,86,0.0) 55%, rgba(28,28,26,0.18) 100%),
    linear-gradient(135deg, rgba(212,175,108,0.10), rgba(89,97,86,0.06));
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-v1 .hero-photo .img-tag { z-index: 2; }
@media (max-width: 1100px) {
  .hero-v1 .inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-v1 .title-block { padding-top: 24px; }
  .hero-v1 .image-stack { max-width: 520px; aspect-ratio: 4/5; height: auto; min-height: 0; }
}
@media (max-width: 720px) {
  .home-hero { min-height: auto; }
  .hero-title { font-size: clamp(30px, 8vw, 40px); line-height: 1.16; }
  .hero-title .word { overflow: visible; }
}
.hero-v1 .image-stack .corner-tag {
  position: absolute; right: -20px; top: 40px;
  background: var(--carbon); color: var(--warm-white);
  padding: 12px 18px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em;
  transform: rotate(90deg); transform-origin: right top;
}

/* ---------- V2 Audaz (data + split) ---------- */
.hero-v2 {
  min-height: 100vh;
  background: var(--carbon);
  color: var(--warm-white);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  padding-top: 88px;
}
.hero-v2 .left { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-v2 .right { position: relative; background: #000; overflow: hidden; }
.hero-v2 .right::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,28,26,0.2), rgba(28,28,26,0.7));
  z-index: 2;
}
.hero-v2 .right img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-v2 .top-meta { display: flex; gap: 32px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,250,247,0.55); }
.hero-v2 .top-meta .live { color: var(--verde-tint); }
.hero-v2 .top-meta .live::before { content: "●"; margin-right: 6px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.hero-v2 .hero-title { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 7vw, 128px); line-height: 0.92; letter-spacing: -0.035em; }
.hero-v2 .hero-title em { font-style: italic; color: var(--verde-tint); }
.hero-v2 .hero-sub { margin-top: 24px; max-width: 52ch; color: rgba(250,250,247,0.78); font-size: 18px; line-height: 1.55; }
.hero-v2 .ticker-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(250,250,247,0.12); }
.hero-v2 .ticker-row .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250,250,247,0.5); margin-bottom: 8px; }
.hero-v2 .ticker-row .v { font-family: var(--font-display); font-weight: 300; font-size: 36px; letter-spacing: -0.015em; line-height: 1; }
.hero-v2 .ticker-row .v small { font-size: 14px; letter-spacing: 0; color: rgba(250,250,247,0.5); margin-left: 4px; }
.hero-v2 .right .featured-card {
  position: absolute; bottom: 40px; left: 40px; right: 40px; z-index: 3;
  background: rgba(250,250,247,0.94);
  color: var(--ink);
  padding: 28px 32px;
  border-radius: 2px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
.hero-v2 .right .featured-card .loc { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.hero-v2 .right .featured-card h4 { font-family: var(--font-display); font-weight: 300; font-size: 28px; line-height: 1.1; margin: 6px 0 8px; letter-spacing: -0.01em; }
.hero-v2 .right .featured-card .price { font-family: var(--font-display); font-weight: 300; font-size: 22px; }
.hero-v2 .right .featured-card .go {
  width: 48px; height: 48px; border-radius: 50%; background: var(--carbon); color: var(--warm-white);
  display: grid; place-items: center;
}
.hero-v2 .right .loc-chip {
  position: absolute; top: 32px; right: 32px; z-index: 3;
  background: rgba(28,28,26,0.6); backdrop-filter: blur(10px);
  padding: 10px 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--warm-white);
}

@media (max-width: 980px) {
  .hero-v2 { grid-template-columns: 1fr; }
  .hero-v2 .right { min-height: 420px; }
}

/* ---------- V3 Novel (tipográfico + video) ---------- */
.hero-v3 {
  min-height: 100vh;
  background: var(--carbon);
  color: var(--warm-white);
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-v3 .video-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-v3 .video-bg video, .hero-v3 .video-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-v3 .video-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(28,28,26,0.35), rgba(28,28,26,0.82) 70%);
}
.hero-v3 .big {
  position: relative; z-index: 2;
  padding: 180px 64px 100px;
}
.hero-v3 .big .hero-title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(72px, 13vw, 220px);
  line-height: 0.88; letter-spacing: -0.045em;
  max-width: 18ch;
}
.hero-v3 .big .hero-title em { font-style: italic; color: var(--verde-tint); }
.hero-v3 .big .meta { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 40px; gap: 32px; }
.hero-v3 .big .meta .sub { max-width: 42ch; color: rgba(250,250,247,0.8); font-size: 18px; line-height: 1.55; }
.hero-v3 .big .meta .side { text-align: right; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(250,250,247,0.6); line-height: 2; }
.hero-v3 .marquee {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(250,250,247,0.14);
  padding: 18px 0;
  overflow: hidden;
}
.hero-v3 .marquee-track { display: flex; gap: 56px; white-space: nowrap; animation: scrollX 40s linear infinite; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; color: rgba(250,250,247,0.75); }
.hero-v3 .marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.hero-v3 .marquee-track span::after { content: "●"; color: var(--verde-tint); }
@keyframes scrollX { to { transform: translateX(-50%); } }

@media (max-width: 720px) {
  .hero-v3 .big { padding: 140px 20px 60px; }
  .hero-v3 .big .meta { flex-direction: column; align-items: flex-start; }
  .hero-v3 .big .meta .side { text-align: left; }
}

/* ===== Search bar (shared, used in v1 + v2) ===== */
.search-bar {
  display: grid; grid-template-columns: 1.1fr 1.2fr 1.4fr auto; gap: 0;
  background: var(--warm-white);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(28,28,26,0.06);
}
.search-bar .cell { padding: 14px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.search-bar .cell label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted); }
.search-bar .cell select, .search-bar .cell input {
  background: transparent; border: 0; outline: none; font-size: 15px; font-weight: 500;
  color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.search-bar .cell input::placeholder { color: var(--ink-muted); }
.search-bar .go {
  padding: 0 28px; background: var(--verde); color: var(--warm-white);
  display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
  border-radius: 0;
}
.search-bar .go:hover { background: var(--verde-oscuro); }
@media (max-width: 720px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .go { grid-column: 1 / -1; padding: 14px; }
}

/* ===== Categories strip ===== */
.cat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); }
.cat-strip .card {
  position: relative;
  padding: 40px 32px 32px;
  background: var(--warm-white);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: background .3s;
}
.cat-strip .card .bg-img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease-out); }
.cat-strip .card .bg-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-strip .card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,28,26,0) 40%, rgba(28,28,26,0.75)); opacity: 0; transition: opacity .6s; }
.cat-strip .card:hover .bg-img { opacity: 1; }
.cat-strip .card:hover::after { opacity: 1; }
.cat-strip .card > * { position: relative; z-index: 2; transition: color .4s; }
.cat-strip .card:hover > * { color: var(--warm-white); }
.cat-strip .card .num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ink-muted); }
.cat-strip .card .name { font-family: var(--font-display); font-weight: 300; font-size: 42px; letter-spacing: -0.01em; line-height: 1; margin-top: 28px; }
.cat-strip .card .desc { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); max-width: 26ch; }
.cat-strip .card:hover .desc { color: rgba(250,250,247,0.85); }
.cat-strip .card .arrow {
  align-self: flex-start;
  margin-top: 24px; display: inline-flex; width: 36px; height: 36px; border: 1px solid currentColor; border-radius: 50%;
  align-items: center; justify-content: center;
}
@media (max-width: 880px) { .cat-strip { grid-template-columns: 1fr 1fr; } }

/* ===== Listings card (shared) ===== */
.prop-card { display: flex; flex-direction: column; gap: 16px; }
.prop-card .media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--crema); }
.prop-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.prop-card:hover .media img { transform: scale(1.05); }
.prop-card .media .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--carbon); color: var(--warm-white);
  padding: 5px 9px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
}
.prop-card .media .badge.offmarket { background: var(--carbon); color: var(--warm-white); }
.prop-card .media .fav {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(250,250,247,0.92); color: var(--ink);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s;
}
.prop-card:hover .fav { opacity: 1; transform: none; }
.prop-card .media .meta-ov {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: end; gap: 12px;
  color: var(--warm-white);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
}
.prop-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(28,28,26,0.55)); pointer-events: none; }
.prop-card .body .loc { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ink-muted); text-transform: uppercase; }
.prop-card .body h3 { font-family: var(--font-display); font-weight: 300; font-size: 24px; line-height: 1.15; letter-spacing: -0.005em; margin: 8px 0 10px; }
.prop-card .body .price { font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.prop-card .body .specs { margin-top: 12px; display: flex; gap: 18px; font-size: 13px; color: var(--ink-muted); }
.prop-card .body .specs span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Map mock ===== */
.map-mock {
  position: relative;
  background: #e9e3d4;
  background-image:
    linear-gradient(120deg, #ece6d6 0%, #e0dac5 100%),
    repeating-linear-gradient(45deg, rgba(89,97,86,0.05) 0 2px, transparent 2px 24px);
  background-blend-mode: multiply;
  border-radius: 2px;
  overflow: hidden;
}
.map-mock::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 40% 30% at 35% 40%, rgba(89,97,86,0.12), transparent 70%),
    radial-gradient(ellipse 30% 25% at 70% 60%, rgba(89,97,86,0.1), transparent 70%);
}
.map-mock .roads {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.8) 49.5%, rgba(255,255,255,0.8) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 29.5%, rgba(255,255,255,0.6) 29.5%, rgba(255,255,255,0.6) 30.5%, transparent 30.5%),
    linear-gradient(0deg, transparent 69.5%, rgba(255,255,255,0.6) 69.5%, rgba(255,255,255,0.6) 70.5%, transparent 70.5%),
    linear-gradient(90deg, transparent 24.5%, rgba(255,255,255,0.55) 24.5%, rgba(255,255,255,0.55) 25.5%, transparent 25.5%),
    linear-gradient(90deg, transparent 79.5%, rgba(255,255,255,0.55) 79.5%, rgba(255,255,255,0.55) 80.5%, transparent 80.5%);
}
.map-mock .water {
  position: absolute; top: -10%; right: -5%; width: 40%; height: 55%;
  background: radial-gradient(ellipse at center, #c4d9e2 0%, #b0cbd8 70%);
  transform: rotate(-18deg);
  opacity: 0.9;
}
.map-mock .pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--verde); border: 2px solid var(--warm-white);
  box-shadow: 0 0 0 6px rgba(89,97,86,0.15);
  transform: translate(-50%, -50%);
  transition: transform .3s;
}
.map-mock .pin.dorado { background: var(--carbon); box-shadow: 0 0 0 6px rgba(0,0,0,0.18); }
.map-mock .pin:hover { transform: translate(-50%, -50%) scale(1.3); }
.map-mock .pin .tip {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--carbon); color: var(--warm-white);
  padding: 6px 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.map-mock .pin:hover .tip { opacity: 1; }
.map-mock .label {
  position: absolute; font-family: var(--font-display); font-weight: 300; font-size: 18px; letter-spacing: -0.01em; color: var(--verde-oscuro);
}

/* ===== Off-market stat block ===== */
.stat-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.stat-block .big-num { position: relative; }
.stat-block .big-num .watermark {
  position: absolute; top: -40px; right: -40px;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(180px, 22vw, 400px); line-height: 0.9;
  color: rgba(250,250,247,0.04);
  pointer-events: none; user-select: none;
}
.stat-block .big-num .num { font-family: var(--font-display); font-weight: 300; font-size: clamp(140px, 18vw, 320px); line-height: 0.9; letter-spacing: -0.04em; color: var(--verde-tint); }
.stat-block .big-num .rule { height: 1px; background: var(--verde-tint); margin-top: 20px; }
.stat-block .big-num .lbl { margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(250,250,247,0.65); }

@media (max-width: 900px) { .stat-block { grid-template-columns: 1fr; gap: 48px; } }

/* ===== Market insights / neighborhood guides ===== */
.ng-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ng-card { position: relative; aspect-ratio: 3/4; overflow: hidden; cursor: pointer; }
.ng-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.ng-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(28,28,26,0.85)); }
.ng-card:hover img { transform: scale(1.06); }
.ng-card .info { position: absolute; left: 20px; right: 20px; bottom: 20px; color: var(--warm-white); z-index: 2; }
.ng-card .info h4 { font-family: var(--font-display); font-weight: 300; font-size: 32px; letter-spacing: -0.01em; line-height: 1; margin: 0 0 6px; }
.ng-card .info .meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(250,250,247,0.78); }
@media (max-width: 880px) { .ng-grid { grid-template-columns: 1fr 1fr; } }

/* ===== Brands rail ===== */
.brands-rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands-rail .b {
  padding: 24px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  min-height: 104px;
  font-family: var(--font-display); font-weight: 300; font-size: 22px; letter-spacing: -0.005em;
  color: var(--ink-soft);
  transition: background .25s;
}
.brands-rail .b img {
  max-width: 100%;
  max-height: 52px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1) contrast(0.85);
  opacity: 0.55;
  transition: filter .35s ease, opacity .35s ease;
}
.brands-rail .b:hover { background: var(--warm-white); }
.brands-rail .b:hover img { filter: grayscale(0) contrast(1); opacity: 1; }
/* dark variant on dark surfaces */
.surface-dark .brands-rail,
.brands-rail.brands-on-dark { border-color: rgba(250,250,247,0.12); }
.surface-dark .brands-rail .b,
.brands-rail.brands-on-dark .b { border-color: rgba(250,250,247,0.12); }
.surface-dark .brands-rail .b img,
.brands-rail.brands-on-dark .b img { filter: grayscale(1) brightness(0) invert(1); opacity: 0.55; }
.surface-dark .brands-rail .b:hover img,
.brands-rail.brands-on-dark .b:hover img { opacity: 1; }
.surface-dark .brands-rail .b:hover,
.brands-rail.brands-on-dark .b:hover { background: rgba(250,250,247,0.04); }

.brands-rail .brands-cta { background: var(--warm-white); }
.brands-rail .brands-cta:hover { background: var(--ink); color: var(--warm-white) !important; }
.brands-rail .brands-cta:hover span { color: var(--dorado) !important; }

/* ===== Brands cycler (compact rotating grid) ===== */
.brands-cycler { display: flex; flex-direction: column; align-items: stretch; }
.brands-cycler .bc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin-left: auto;
  width: 100%;
  max-width: 460px;
}
.brands-cycler .bc-cell {
  aspect-ratio: 1.6 / 1;
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.brands-cycler .bc-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: opacity .55s ease, transform .55s ease;
}
.brands-cycler .bc-cell.fading img { opacity: 0; transform: translateY(-8px); }
.brands-cycler .bc-cell.entering img { opacity: 0; transform: translateY(8px); }
.brands-cycler .bc-meta {
  margin-top: 28px;
  text-align: right;
}
.brands-cycler .bc-meta .mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.brands-cycler .bc-meta p { margin-left: auto; }

@media (max-width: 960px) {
  .brands-cycler .bc-grid { max-width: 100%; gap: 24px 28px; }
}

@media (max-width: 960px) {
  .brands-rail { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 600px) {
  .brands-rail { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Press logos ===== */
.press-logos { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: center; }
.press-logos .p { font-family: var(--font-display); font-weight: 300; font-size: 24px; letter-spacing: 0.01em; color: var(--ink-muted); opacity: 0.7; }

/* ===== Testimonial card ===== */
.testi { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.testi .quote { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.testi .quote::before { content: "“"; font-size: 1.4em; display: inline-block; color: var(--verde); margin-right: 4px; }
.testi .meta-block { display: flex; flex-direction: column; gap: 6px; }
.testi .meta-block .who { font-weight: 500; }
.testi .meta-block .role { color: var(--ink-muted); font-size: 14px; }
.testi .metrics { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi .metrics .m .v { font-family: var(--font-display); font-weight: 300; font-size: 40px; letter-spacing: -0.01em; line-height: 1; color: var(--verde-oscuro); }
.testi .metrics .m .k { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }

/* with portrait variant */
.testi-with-portrait { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.testi-portrait { margin: 0; position: relative; }
.testi-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.25) contrast(1.05) brightness(0.96) sepia(0.06);
  display: block;
}
.testi-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(50,60,52,0) 60%, rgba(50,60,52,0.18) 100%);
  pointer-events: none;
}
.testi-portrait figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.testi-with-portrait .testi-content { padding-top: 4px; }

/* logo variant — same footprint as portrait, but no photo treatment */
.testi-portrait--logo .brand-tile {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #F5F1EA;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.testi-portrait--logo .brand-tile img {
  width: 39%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  filter: none;
  display: block;
}
.testi-portrait--logo::after { display: none; }

@media (max-width: 880px) {
  .testi-portrait--logo .brand-tile { aspect-ratio: 3 / 2; }
}

@media (max-width: 880px) {
  .testi { grid-template-columns: 1fr; }
  .testi-with-portrait { grid-template-columns: 1fr; gap: 32px; }
  .testi-portrait img { aspect-ratio: 3 / 2; }
}

/* ===== Casos reales — carrusel compacto ===== */
.cases-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.cases-nav { display: flex; gap: 8px; }
.cases-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: var(--font-mono);
}
.cases-arrow:hover { background: var(--ink); color: var(--warm-white); border-color: var(--ink); }
.cases-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.cases-arrow:disabled:hover { background: transparent; color: var(--ink); border-color: var(--line); }

.cases-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.cases-track::-webkit-scrollbar { display: none; }

.case-card {
  scroll-snap-align: start;
  background: var(--warm-white);
  border: 1px solid var(--line);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s;
  min-width: 0;
}
.case-card:hover { border-color: var(--ink-soft); }

.case-card__logo {
  height: 44px;
  display: flex;
  align-items: center;
}
.case-card__logo img {
  max-height: 100%;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(0.85);
}

.case-card__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  flex: 1;
}

.case-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.case-card__metrics > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.case-card__metrics .v {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--verde-oscuro);
  white-space: nowrap;
}
.case-card__metrics .v small { font-size: 13px; color: var(--ink-soft); }
.case-card__metrics .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.case-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.case-card__foot .who { font-weight: 500; font-size: 14px; color: var(--ink); }
.case-card__foot .zone {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (max-width: 1100px) {
  .cases-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
@media (max-width: 700px) {
  .cases-track { grid-auto-columns: 88%; }
  .case-card__metrics { grid-template-columns: 1fr 1fr; }
  .case-card__metrics > div:last-child { grid-column: 1 / -1; }
}

/* ===== Newsletter ===== */
.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.newsletter .h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(44px, 5.5vw, 96px); line-height: 0.95; letter-spacing: -0.03em; }
.newsletter .h2 em { font-style: italic; color: var(--verde-tint); }
.newsletter .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.newsletter input { background: transparent; border: 0; border-bottom: 1px solid rgba(250,250,247,0.3); padding: 14px 0; color: inherit; font-size: 16px; outline: none; }
.newsletter input::placeholder { color: rgba(250,250,247,0.45); }
.newsletter input:focus { border-color: var(--verde-tint); }
.newsletter .fine { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.04em; color: rgba(250,250,247,0.5); margin-top: 24px; }
@media (max-width: 880px) { .newsletter { grid-template-columns: 1fr; gap: 32px; } .newsletter .form-row { grid-template-columns: 1fr; gap: 16px; } }

/* ===== Final CTA ===== */
.final-cta {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end;
  padding: 120px 0;
}
.final-cta .h { font-family: var(--font-display); font-weight: 300; font-size: clamp(56px, 7.5vw, 140px); line-height: 0.9; letter-spacing: -0.035em; }
.final-cta .h em { font-style: italic; color: var(--verde-tint); }
@media (max-width: 880px) { .final-cta { grid-template-columns: 1fr; } }
