/* =========================================================
   Full Home Renovations — ajustes responsive (Indexia, oct-2026)
   Se carga DESPUÉS de style.css y solo corrige layout/texto;
   no toca colores, fuentes ni animaciones del template.
   ========================================================= */

/* 1. Texto justificado → alineado a la izquierda.
      En columnas angostas el justificado abre huecos enormes
      entre palabras (móvil, tablet y las tarjetas de escritorio). */
p[style*="text-align: justify"],
p[style*="text-align:justify"],
#reviews .testimonial-text,
#reviews .testimonial-left,
.step-block p {
  text-align: left !important;
  text-justify: auto;
  hyphens: manual;
}
.step-block p { text-align: center !important; }
/* En móvil/tablet, todo párrafo o subtítulo de artículo que no esté
   centrado explícitamente se alinea a la izquierda (el justificado
   heredado del template abre huecos). */
@media (max-width: 1119px) {
  article p:not([style*="center"]),
  article h2:not([style*="center"]) { text-align: left !important; }
  .steps-row .step-block p { text-align: center !important; }
}
/* Bloques de texto apilados en móvil/tablet: altura según contenido
   (los bloques de foto, #image, conservan la suya). */
@media (max-width: 1119px) {
  .contenedor .column-block,
  .contenedor .row,
  .contenedor .small-container { height: auto !important; min-height: 0 !important; }
  .contenedor article:not(#image) {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
}

/* 2. Fila de pasos (Proposal → Enjoy): que los 6 quepan en una
      fila en escritorio y se repartan bien en tablet/móvil. */
.steps-row {
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: stretch !important;
  gap: 14px !important;
}
.step-block {
  flex: 1 1 150px !important;
  width: auto !important;
  max-width: 220px;
  min-width: 150px;
  box-sizing: border-box;
}
@media (max-width: 1119px) {
  .step-block { flex: 1 1 calc(33.333% - 14px) !important; max-width: none; }
}
@media (max-width: 760px) {
  .step-block { flex: 1 1 calc(50% - 14px) !important; }
}
@media (max-width: 480px) {
  .step-block { flex: 1 1 100% !important; }
  .step-block p { padding-left: 0 !important; padding-right: 0 !important; }
}

/* 3. Bloques de solo texto con altura fija de 100vh
      ("Our Expertise", "Free at-home consultation", "Our Commitment",
      "Why Choose Us?"): altura según contenido, con aire uniforme.
      Los bloques con foto conservan su altura original. */
.bg-pan-left article#main,
.bg-pan-left article#main2,
.block-type-9 article,
.block-type-9 .column-block,
.block-type-9 > .container > div > .column-block {
  height: auto !important;
  min-height: 0 !important;
  padding-top: 48px !important;
  padding-bottom: 40px !important;
  overflow: visible !important;
}
.bg-pan-left .column-block {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.bg-pan-left article#main h2,
.bg-pan-left article#main2 h2 { margin-top: 0; }
@media (max-width: 1119px) {
  .bg-pan-left .column-block { padding-left: 6% !important; padding-right: 6% !important; }
  .bg-pan-left article#main,
  .bg-pan-left article#main2 { max-width: none !important; }
}

/* 3b. "Free at-home consultation": los <br> dentro del <h1> heredan
       el tamaño del título (67 px cada uno) y abren huecos enormes. */
.block-type-9 h1 > br { display: none; }
.block-type-9 h1 .glow-on-hover-text { padding-top: 0 !important; display: inline-block; margin-bottom: 6px; }
.block-type-9 h1 p { margin-top: 10px; }

/* 3c. "Our Expertise" sobre foto en móvil/tablet: panel translúcido
       para que el texto se lea bien. */
@media (max-width: 1119px) {
  .bg-pan-left article#main,
  .bg-pan-left article#main2 {
    background: rgba(255, 255, 255, .86);
    border-radius: 16px;
    padding-left: 18px !important;
    padding-right: 18px !important;
    margin: 10px auto 24px;
  }
  .bg-pan-left article#main p,
  .bg-pan-left article#main2 p { padding-left: 4px !important; padding-right: 4px !important; }
}

/* 4. Texto pegado a los bordes en móvil (sección "Free at-home
      consultation" y párrafos dentro de tarjetas). */
@media (max-width: 760px) {
  .block-type-9 .column-block { padding-left: 18px !important; padding-right: 18px !important; }
  .block-type-9 p { padding-left: 0 !important; padding-right: 0 !important; }
  .contenedor .column-block { padding-left: 7% !important; padding-right: 7% !important; }
  #reviews .testimonial-text { padding: 0 18px !important; }
  #reviews .testimonial-author { padding: 0 18px; }
  .testimonial-author, h2[style*="margin-left: 40px"] { margin-left: 18px !important; margin-right: 18px !important; }
}

/* 5. Reseñas: el testimonio activo deja de ser absoluto para que
      el contenedor tome su altura real; así los puntos del slider
      ya no se encaraman sobre el nombre del cliente ni sobre la foto. */
#reviews .testimonial-slide { min-height: 0 !important; }
#reviews .testimonial-slide .testimonial.is-active { position: relative !important; }
#reviews .slider-dots { padding-top: 22px !important; }

/* 6. Fondos "fixed": iOS los ignora y en pantallas pequeñas dejan
      franjas vacías; en móvil/tablet se usan como fondo normal. */
@media (max-width: 1119px) {
  [style*="background-attachment: fixed"],
  [style*="background-attachment:fixed"] {
    background-attachment: scroll !important;
    background-position: center !important;
  }
}

/* 7. Pie de página: que "License Number" no parta el número. */
footer, .footer, #footer { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  footer p, .footer p, #footer p { line-height: 1.7; }
}

/* 8. Página About, bloque "Why Choose Us?": el espaciado está hecho
      con 13 <br>; en móvil/tablet se sustituyen por padding real. */
@media (max-width: 760px) {
  #testimonial br { display: none; }
  #testimonial { padding: 44px 0 40px; min-height: 0 !important; height: auto !important; }
  #testimonial > div > span { display: block; margin-bottom: 14px; padding-top: 0 !important; }
  #testimonial h2 { text-align: left !important; margin: 0 18px 22px !important; }
  #testimonial a { display: inline-block; margin-top: 6px; }
}
