/* ==============================
   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;
}

/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 1200px){
  .cat-back{ width: 65%; }
}

@media (max-width: 991px){
  .cat-back{
    width: 100%;
  }

  .cat-front-content{
    padding: 70px 30px 40px 40px;
  }

  .cat-title{
    font-size: 34px;
  }

  .prod-mini-card{
    grid-template-columns: 1fr;
  }

  .prod-mini-media{
    height: 180px;
  }
}