/* =========================================================
   Butcher & Chef — HOME (page 144) · MOBILE LAYER
   Scope ...... body.tbh-portada · max-width 767px
   Purpose .... stop the 2–4vw type scale from shrinking the
                page into 4–11px text on phones.
   Revert ..... remove the enqueue in functions.php (or
                delete this file) — nothing else changes.
   ========================================================= */

@media (max-width: 767px) {

  /* ---------- 1. GUTTERS ----------------------------------
     Elementor stacks containers 10px at a time (375→355→335→315).
     Keep one real gutter at the outer edge, flatten the rest. */
  body.tbh-portada [data-elementor-type="wp-page"] > .e-con,
  body.tbh-portada [data-elementor-type="wp-page"] > .elementor-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  body.tbh-portada [data-elementor-type="wp-page"] .e-con .e-con,
  body.tbh-portada [data-elementor-type="wp-page"] .e-con .elementor-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* ---------- 2. HERO ------------------------------------
     Full-height image, but text must sit on a scrim so it
     stays readable over the burger photo. */
  body.tbh-portada .elementor-element-6a1e311a,
  body.tbh-portada .elementor-element-9a19a2e {
    min-height: 92vh !important;
    min-height: 92svh !important;
    padding: 28px 20px !important;
    position: relative;
  }
  body.tbh-portada .elementor-element-6a1e311a::before,
  body.tbh-portada .elementor-element-9a19a2e::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.30) 0%,
      rgba(0, 0, 0, 0.08) 38%,
      rgba(0, 0, 0, 0.62) 100%
    );
  }
  body.tbh-portada .elementor-element-6a1e311a > *,
  body.tbh-portada .elementor-element-9a19a2e > * {
    position: relative;
    z-index: 1;
  }

  /* Hero headline — was 11.25px in a 148px column */
  body.tbh-portada .elementor-element-77ef6b90,
  body.tbh-portada .elementor-element-08b77d0 {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* Los tamanos de letra viven en Elementor como clamp(): crecen con la
     pantalla entre un minimo y un maximo. Aqui solo interlineado y color. */
  body.tbh-portada .elementor-element-77ef6b90 .elementor-heading-title,
  body.tbh-portada .elementor-element-08b77d0 .elementor-heading-title {
    line-height: 1.18 !important;
    letter-spacing: 0.005em !important;
    text-wrap: balance;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  }

  /* Hero subline */
  body.tbh-portada .elementor-element-2f46a637 .elementor-heading-title,
  body.tbh-portada .elementor-element-dedbde8 .elementor-heading-title {
    line-height: 1.55 !important;
    color: #eceff3 !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  }

  /* ---------- 3. SECTION HEADINGS ------------------------- */
  body.tbh-portada .elementor-element-2efb01f2 .elementor-heading-title,
  body.tbh-portada .elementor-element-24fa64d5 .elementor-heading-title {
    line-height: 1.4 !important;
    text-wrap: balance;
  }

  /* ---------- 4. PRODUCT BLOCKS ---------------------------
     Cada especialidad lleva la clase .tbh-producto (Elementor >
     Avanzado > Clases CSS): una especialidad nueva hereda estas reglas. */
  body.tbh-portada [data-elementor-type="wp-page"] .tbh-producto .elementor-heading-title {
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  body.tbh-portada [data-elementor-type="wp-page"] .tbh-producto .elementor-widget-text-editor p {
    line-height: 1.7;
    color: #cfd4da;
  }

  /* ---------- 5. BODY COPY -------------------------------- */
  body.tbh-portada .elementor-element-66102123 p {
    line-height: 1.75 !important;
    color: #d7dbe0 !important;
  }

  /* ---------- 6. BUTTONS ---------------------------------- */
  body.tbh-portada [data-elementor-type="wp-page"] .elementor-widget-button .elementor-button {
    min-height: 52px;
    padding: 14px 26px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.03em;
  }

  /* ---------- 7. FOOTER ------------------------------------
     El pie es global: su maqueta y sus tamanos viven en style.css. */

  /* ---------- 8. SAFETY NET -------------------------------
     Solo las imagenes de la pagina: el pie (bloque 140) es global y
     define sus propios tamanos en style.css. */
  body.tbh-portada [data-elementor-type="wp-page"] img {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Saltos de línea de la presentación que solo dan forma al texto en
   escritorio (dentro de una frase): en pantallas estrechas cortaban las
   frases por la mitad. Los que separan frases se mantienen. */
@media (max-width: 1024px) {
  body.tbh-portada .tbh-br-desktop {
    display: none;
  }
}
