/* ==============================
   SUBCAT HOVER PRO VERSION
============================== */

.subcat-card{
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 550px;
}

/* IMAGEN BASE (SIEMPRE FIJA) */
.cat-front{
  position: relative;
  height: 100%;
  min-height: 550px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
    align-items: center;
}

.cat-front::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.6));
}

/* Línea izquierda */
.cat-bar{
  position:absolute;
  left:0;
  top:0;
  height:100%;
  width:22px;
  background: var(--bar);
  z-index: 3;
}

/* Texto */
.cat-front-content{
  position: relative;
  z-index: 4;
  padding: 0px 80px;
  max-width: 580px;
  color:#fff;
}

.cat-title{
  font-size: 46px;
  font-weight: 800;
  margin-bottom: 18px;
}

.cat-desc{
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

/* ==============================
   PANEL HOVER (DESLIZA DESDE DERECHA)
============================== */

.cat-back{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50%;
  background: var(--bar);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  z-index: 5;
}

/* ANIMACIÓN */
.subcat-card:hover .cat-back{
  transform: translateX(0);
}

/* ==============================
   PRODUCT MINI CARDS
============================== */

.prod-mini-card{
  background:#fff;
  border-radius: 25px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  box-shadow: 1px 3px 10px 0 rgba(50, 50, 50, 0.25);
  transition: transform .25s ease;
}

.prod-mini-card:hover{
  transform: translateY(-3px);
}

.prod-mini-media{
  border-radius: 18px;
  overflow:hidden;
  height: 180px;
}

.prod-mini-media img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.prod-mini-title{
  color:#0C26A3;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px 0;
  text-align: center;
}

.prod-mini-desc{
  margin: 0 0 14px 0;
  color:#5B5E6C;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.btn-propiedades{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  padding: 0 28px;
  border-radius: 999px;
  background: #0C26A3;
  color:#fff;
  font-weight: 500;
  
  transition: all .25s ease;
  width: 100%;
}

.btn-propiedades:hover{
  background:#071763;
  color:#fff;
  text-decoration:none;
}
.desc-dond{
  color:#fff;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1200px){
  .cat-back{ width: 65%; }
}

@media (max-width: 991px){
  .cat-back{
    width: 100%;
  }




  .prod-mini-card{
    grid-template-columns: 1fr;
  }

  .prod-mini-media{
    height: 180px;
  }
}








.btn-ver-mobile:hover{

    transform:scale(1.05);

}

@media(max-width:991px){

    .cat-back{
        display:none;
    }

    .subcat-card:hover .cat-back{
        transform:none;
    }

}



@media(max-width:991px){

    

    .modal-subcat-mobile .modal-header{

        border:none;

        padding:25px 25px 10px;

    }

   

  

}


@media (max-width: 600px){

      .cat-title {
        font-size: 20px;
        font-weight: 600;
    }
  .cat-desc {
    font-size: 13px;
    line-height: 1.4;
}
.cat-bar{
      width: 15px;
}
    .cat-front-content {
        padding: 30px 15px 30px 35px;
    }
    .btn-ver-mobile{

    width:40px;
    height:40px;

    border-radius:50%;
      
      border: none;

    background:var(--bar);

            margin-left: auto;

    margin-top:15px;

    transition:.3s ease;

}
.btn-ver-mobile i{

   color: white;

    font-size:25px;

}
.cat-front, .subcat-card{
border-radius: 15px;
    min-height:250px;
}
.modal-subcat-mobile .modal-content{
 background: var(--bar);
        border-radius:18px;
        border:none;

    }
      .modal-subcat-mobile .modal-body{

                padding: 0px 25px 10px;

    }

     .modal-subcat-mobile .modal-title{
font-size: 25px;
        color:white;
        font-weight:500;

    }
     .modal-subcat-mobile .close {
    float: right;
    font-size: 35px;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: none;
    opacity: .5;
    padding: 0px !important;
    opacity: 1 !important;
}
}