/* ===============================
   ZONA 2 - INSTALACIÓN
================================ */

.zone-instalacion {
  background:
    linear-gradient(
      to right,
      rgba(255,255,255,0.96) 40%,
      rgba(255,255,255,0.75)
    ),
    url('../img/bg/instalacion-bg.jpg') right center / cover no-repeat;

  padding: 20px 0;
}

/* CONTENEDOR PRINCIPAL */
.zone-instalacion-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ================= BLOQUE SUPERIOR ================= */

.instalacion-top h2 {
  font-size: 32px;
  color: #1f2d3d;
  margin-bottom: 20px;
}

/* GRID DE CARDS */
.instalacion-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 70px;
}

/* CARD */
.instalacion-card {
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.instalacion-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(0,0,0,0.12);
}

/* IMAGEN CARD */
.card-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.instalacion-card:hover .card-image img {
  transform: scale(1.05);
}

/* CUERPO */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-body h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.card-body p {
  font-size: 14px;
  line-height: 1.4;
  color: #444;
}

/* BOTÓN */
.btn-productos {
  margin-top: auto;
  display: inline-block;
  background-color: #8B1E1E;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.25s ease;
}

.btn-productos:hover {
  background-color: #7a1818;
}

/* ================= BLOQUE DISTRIBUIDORES ================= */

.instalacion-bottom {
  background: rgba(255,255,255,0.92);
  border-radius: 18px;
  padding: 55px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);

  position: relative;
  overflow: hidden;
}

.instalacion-bottom h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.instalacion-bottom p {
  margin-bottom: 25px;
  color: #444;
}

/* FORMULARIO */
.instalacion-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.instalacion-form select,
.instalacion-form input {
  padding: 12px;
  min-width: 200px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.btn-buscar {
  background: #8b1c1c;
  color: white;
  border: none;
  padding: 12px 24px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
}

/* ================= RESULTADO + MAPA GRID ================= */

.resultado-mapa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* RESULTADOS */
.resultado-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* MAPA */
#mapa-distribuidores {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.10);
}

/* ================================================= */
/* FONDO DECORATIVO DISTRIBUIDORES (MAPA + PRODUCTOS) */
/* ================================================= */

/* MAPA MÉXICO ARRIBA */
.instalacion-bottom::before {
  content: "";
  position: absolute;

  top: 35px;
  right: 90px;

  width: 320px;
  height: 220px;

  background: url("../img/mapa-mexico.png") no-repeat center;
  background-size: contain;

  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

/* PRODUCTOS ABAJO DERECHA */
.instalacion-bottom::after {
  content: "";
  position: absolute;

  bottom: -40px;
  right: 0px;

  width: 2000px;
  height: 760px;

  background: url("../img/productos-fondo.png") no-repeat;
  background-size: contain;
  background-position: bottom right;

  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

/* FADE + MÁRMOL SUAVE */
.instalacion-bottom .fade-overlay {
  position: absolute;
  inset: 0;

  background:
    url("../img/bg/marmol-suave.jpg") center/cover no-repeat,
    linear-gradient(
      to right,
      rgba(255,255,255,0.20) 45%,
      rgba(255,255,255,0.20) 75%,
      rgba(255,255,255,0.00) 100%
    );

  z-index: 1;
  pointer-events: none;
}

/* CONTENIDO ENCIMA */
.instalacion-bottom > * {
  position: relative;
  z-index: 2;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {

  .instalacion-cards {
    grid-template-columns: 1fr 1fr;
  }

  .instalacion-bottom {
    padding: 35px;
  }

  .resultado-mapa-grid {
    grid-template-columns: 1fr;
  }

  #mapa-distribuidores {
    height: 340px;
  }

  .instalacion-bottom::before {
    opacity: 0.20;
    right: -60px;
    transform: scale(0.85);
  }

  .instalacion-bottom::after {
    opacity: 0.35;
    right: -120px;
    transform: scale(0.90);
  }

}
.cotizador-form select,
.cotizador-form input{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #dbe2ea;
  font-size:14px;
  margin-bottom:12px;
}

.cotizador-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn-cotiza{
  flex:1;
  padding:12px;
  border:none;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}

.btn-cotiza.whatsapp{
  background:#16a34a;
  color:white;
}

.btn-cotiza.correo{
  background:#003f88;
  color:white;
}

.btn-cotiza:hover{
  opacity:.9;
}
/* =============================== */
/* FIX COTIZADOR ZONE (RESET TOTAL) */
/* =============================== */

.cotizador-zone{
  background:#ffffff !important;
  padding:40px 35px !important;
  border-radius:22px;
  box-shadow:0 18px 50px rgba(0,0,0,.08);
  position:relative;
  overflow:hidden;
}

/* Elimina cualquier overlay viejo */
.cotizador-zone .fade-overlay{
  display:none !important;
}

/* Grid estable */
.cotizador-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:28px;
  align-items:start;
}

/* Caja mapa limpia */
.cobertura-box{
  background:#f8fafc;
  border-radius:18px;
  padding:18px;
  text-align:left;
}

/* Imagen mapa controlada */
.mapa-mexico{
  width:100%;
  height:200px;
  object-fit:cover;
  object-position:top center;
  border-radius:16px;
  display:block;
  margin-bottom:12px;
}

/* Responsive */
@media(max-width:900px){
  .cotizador-grid{
    grid-template-columns:1fr;
  }

  .mapa-mexico{
    height:180px;
  }
}
