/* ============================================================
   CANTI MEDIA — FOIL + LOCK v4 (capa aditiva, no toca el CSS base)
   v7 (2026-11-01, ronda 2 PageSpeed): foil-tile en WebP con fallback JPG (image-set).
   v3 corrige lo que Canti marco en el preview v2: en las superficies
   GRANDES la textura se repetia y se veia muy arrugada, tapando el
   texto. Ahora esas superficies usan la LAMINA COMPLETA del kit
   (sin repetir) SUAVIZADA: foil-real.jpg (lamina 1600 fundida hacia
   su propio oro mediano + desenfoque leve + contraste reducido).
   Las superficies chicas (botones, badges) conservan la textura
   viva del tile: ahi no se repite y se ve rica.
   Assets (misma carpeta): foil-tile.jpg, foil-real.jpg, foil-dim.jpg,
   black-deep.jpg, black-surface.jpg — del Brand Kit oficial.
   ============================================================ */

/* ---------- 1) CANDADO HORIZONTAL ---------- */
html, body { overflow-x: clip; }
body { overscroll-behavior-x: none; }
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

/* ---------- 2) NEGRO CON TEXTURA DE FOIL ---------- */
body {
  background-image: url("black-deep.jpg");
  background-size: 512px 512px;
}
.demo, .pricing, .header, footer {
  background-image: url("black-deep.jpg");
  background-size: 512px 512px;
}
.services {
  background-image: url("black-surface.jpg");
  background-size: 512px 512px;
}

/* ---------- 3) BLOQUES DORADOS CHICOS: TEXTURA VIVA ---------- */
.button, .cta, .hero-caption, .language button.active,
.price-badge, .chat-mark, .message.user, .kicker::before {
  background-image: url("foil-tile.jpg");
  background-image: image-set(url("foil-tile.webp") type("image/webp"), url("foil-tile.jpg") type("image/jpeg"));
  background-size: 420px 420px;
  background-position: center;
}

/* ---------- 4) SUPERFICIES GRANDES: LAMINA SUAVE SIN REPETIR ---------- */
.final, .same-business {
  background-image: url("foil-zoom.jpg");
  background-size: cover;
  background-position: center;
}
.final a { color: #0b0b0d; font-weight: 600; }

/* ---------- 5) PANELES CON TINTE -> FOIL ATENUADO ---------- */
.answer-block {
  background-image: url("foil-dim.jpg") !important;
  background-size: 420px 420px;
}
.chat-result {
  background-image: url("foil-dim.jpg");
  background-size: 420px 420px;
}

/* ---------- 6) LETRAS DE ACENTO CON FOIL (recorte de texto) ---------- */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em, h1 em, h2 em,
  .kicker, .overline, .outcome b, .pipe-num, .demo-point b,
  .case-identity > span, .case-work > span,
  .service-link, .svc-more, .blogstrip-all, .hero-proof b, .chat-reset {
    background-image: url("foil-tile.jpg");
    background-image: image-set(url("foil-tile.webp") type("image/webp"), url("foil-tile.jpg") type("image/jpeg"));
    background-size: 320px 320px;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* ---------- 7) SUPERFICIES DORADAS/CLARAS: SIN RECORTE (correccion 23-oct) ----------
   Dentro de bloques dorados (.final, .same-business, .hero-caption) o claros
   (.problem), el acento va en su color solido de diseno: con la lamina
   recortada se volvia invisible sobre el fondo dorado. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .final em, .final .gold, .final .kicker, .final .overline,
  .same-business em, .same-business .gold,
  .hero-caption em, .hero-caption b, .hero-caption .kicker, .hero-caption .overline {
    background-image: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #0b0b0d;
    color: #0b0b0d;
  }
  .problem em, .problem .gold, .problem .kicker, .problem .overline {
    background-image: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: #856a16;
    color: #856a16;
  }
}
