/* =========================================================
   PARCHE RESPONSIVE — RESTORE / RESTAURACIÓN BMS
   Agrega este archivo DESPUÉS del CSS principal de la página.
========================================================= */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

/* Evita que cualquier elemento del hero se salga de la pantalla */
.hero,
.hero-restore,
.restore-hero,
.banner-restore,
.hero-content,
.hero-contenido,
.restore-content,
.restore-contenido {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Imágenes y videos nunca deben superar el ancho disponible */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Botones y textos flexibles */
.hero a,
.hero-restore a,
.restore-hero a,
.banner-restore a,
.hero .btn,
.hero-restore .btn,
.restore-hero .btn,
.banner-restore .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* Corrección general del título */
.hero h1,
.hero-restore h1,
.restore-hero h1,
.banner-restore h1,
.hero-title,
.titulo-hero,
.restore-title {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
}

/* Corrección del párrafo */
.hero p,
.hero-restore p,
.restore-hero p,
.banner-restore p,
.hero-description,
.descripcion-hero {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-wrap: break-word;
}

/* =========================
   TABLET Y CELULAR
========================= */

@media (max-width: 768px) {

  .hero,
  .hero-restore,
  .restore-hero,
  .banner-restore {
    min-height: auto !important;
    height: auto !important;
    padding: 58px 16px 70px !important;
    background-position: center center !important;
    overflow: hidden !important;
  }

  .hero-content,
  .hero-contenido,
  .restore-content,
  .restore-contenido {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    transform: none !important;
  }

  .hero h1,
  .hero-restore h1,
  .restore-hero h1,
  .banner-restore h1,
  .hero-title,
  .titulo-hero,
  .restore-title {
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px auto 20px !important;
    padding: 0 !important;
    font-size: clamp(36px, 11vw, 58px) !important;
    line-height: .98 !important;
    letter-spacing: 0 !important;
    text-align: center !important;
  }

  .hero p,
  .hero-restore p,
  .restore-hero p,
  .banner-restore p,
  .hero-description,
  .descripcion-hero {
    width: 100% !important;
    max-width: 560px !important;
    padding: 0 4px !important;
    margin: 0 auto 26px !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }

  .hero .actions,
  .hero .acciones,
  .hero-buttons,
  .botones-hero,
  .restore-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 14px !important;
  }

  .hero .btn,
  .hero-restore .btn,
  .restore-hero .btn,
  .banner-restore .btn,
  .hero .boton,
  .hero-restore .boton,
  .restore-hero .boton {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }
}

/* =========================
   IPHONE Y TELÉFONOS PEQUEÑOS
========================= */

@media (max-width: 480px) {

  .hero,
  .hero-restore,
  .restore-hero,
  .banner-restore {
    padding: 48px 14px 58px !important;
  }

  .hero h1,
  .hero-restore h1,
  .restore-hero h1,
  .banner-restore h1,
  .hero-title,
  .titulo-hero,
  .restore-title {
    font-size: clamp(31px, 10.5vw, 46px) !important;
    line-height: 1.02 !important;
  }

  .hero p,
  .hero-restore p,
  .restore-hero p,
  .banner-restore p,
  .hero-description,
  .descripcion-hero {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
}

/* ===== SECCIÓN MARCAS RESTORE BMS ===== */
.marcas-bms {
  padding: 90px 0;
  background: #f4f4f4
}

.marcas-bms .titulo-seccion p {
  max-width: 720px;
  margin: 12px auto 0;
  color: #555;
  line-height: 1.7
}

.marcas-bms__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px
}

.marca-bms {
  min-width: 0;
  min-height: 260px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid #dfe5df;
  border-radius: 18px;
  color: #111;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .10);
  text-decoration: none;
  transition: .25s ease
}

.marca-bms:hover {
  transform: translateY(-7px);
  border-color: #07ff1c;
  box-shadow: 0 18px 40px rgba(7, 255, 28, .14)
}

.marca-bms__logo {
  width: 120px;
  height: 95px;
  margin-bottom: 14px;
  display: grid;
  place-items: center
}

.marca-bms__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain
}

.marca-bms h3 {
  margin: 0 0 5px;
  font-size: 22px
}

.marca-bms span {
  color: #666;
  font-size: 13px
}

.marca-bms strong {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00c719;
  font-size: 13px
}

@media(max-width:1050px) {
  .marcas-bms__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .marcas-bms {
    padding: 65px 0
  }

  .marcas-bms__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
  }

  .marca-bms {
    min-height: 210px;
    padding: 18px 12px
  }

  .marca-bms__logo {
    width: 92px;
    height: 72px
  }

  .marca-bms h3 {
    font-size: 18px
  }
}

@media(max-width:430px) {
  .marcas-bms__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px
  }

  .marca-bms {
    min-height: 185px;
    border-radius: 14px
  }

  .marca-bms__logo {
    width: 78px;
    height: 60px
  }

  .marca-bms h3 {
    font-size: 16px
  }

  .marca-bms span,
  .marca-bms strong {
    font-size: 11px
  }
}

.marcas-bms__grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(130px,1fr));
    gap:35px;
    justify-items:center;
    align-items:center;
}

.logo-marca{
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.3s;
}

.logo-marca img{
    width:110px;
    height:70px;
    object-fit:contain;
    filter:grayscale(0%);
    transition:.3s;
}

.logo-marca:hover img{
    transform:scale(1.15);
    filter:drop-shadow(0 0 18px #00ff40);
}