*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
  /* background: linear-gradient(to bottom, #f8f9fa, #e9ecef); */
}

.stepper-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}


.unidades-text {
  position: relative;
  background-image: url('../../assets/imgs/banner_unidades.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 60vh;
  padding: 0 20px;
  overflow: hidden;
}

/* Overlay oscuro más fuerte */
.unidades-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

/* Fade hacia abajo */
.unidades-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 140px;
  background: linear-gradient(to bottom, transparent, #fbfdff);
  z-index: 2;
}

.unidades-text .container {
  position: relative;
  z-index: 5;
}

/* Título más impactante */
.unidades-text h1 {
  font-family: "Roboto", sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Subtítulo */
.unidades-text p {
  font-family: "Roboto", sans-serif;
  font-size: 1.25rem;
  color: #ffffff;
}

/* Botón */
.unidades-text .btn {
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 1.1rem;
  transition: 0.3s ease;
}

.unidades-text .btn:hover {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 576px) {
  .unidades-text {
    height: 50vh;
  }
  .unidades-text h1 {
    font-size: 1.5rem;
  }
  .unidades-text p {
    font-size: 1rem;
  }
  .unidades-text .btn {
    font-size: 1rem;
    padding: 8px 22px;
  }
}



.unidades-sec h2{
  font-family: "Roboto", "sans-serif";
  text-align: center;
}

.stepper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 2rem;
}

.step {
  text-align: center;
  position: relative;
}

.step::after {
  content: "";
  position: absolute;
  top: 16px;
  right: -40px;
  height: 2px;
  width: 60px;
  background-color: #ced4da;
  z-index: 0;
}

.step:last-child::after {
  content: none;
}

.step-number {
  background-color: #dee2e6;
  color: #6c757d;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background-color: #dfe2e6;
  color: #6c757d;
}

.step.completed .step-number {
  background-color: #4CAF50;
  color: #fff;
}

.step-label {
  font-weight: 500;
  color: #6c757d;
}
.step.completed .step-label {
  color: #2a323f;
}




.estado-btn {
  border: 2px solid #6c757d;
  background-color: white;
  color: #000;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 10px 20px;
  border-radius: 8px;
}

.estado-btn:hover {
  background-color: #f0f0f0;
  border-color: #343a40;
  color: #343a40;
}

.estado-btn.active-estado {
  background-color: #343a40;
  color: #fff;
  border-color: #343a40;
}

.filtro-btn {
  font-weight: 600;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 1rem;
  margin: 1rem;
}

.filtro-btn.btn-dark {
  background-color: #202020;
  color: #ccc;
  border-color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filtro-btn.btn-secondary {
  background-color: #001524;
  color: #fff;
  border-color: #ccc;    
  font-weight: 600;
  padding: 10px 20px;
}

.filtro-btn:hover {
  transform: scale(1.03);
}

.filtro-btn.btn-secondary:hover {
  background-color: #000c14; /* un azul más oscuro para el hover */
  color: #e5e5e5;
}



.unidades-sec{
  min-height: 70vh;
  background: linear-gradient(to bottom, #fbfdff, #dbdbdb);
    padding: 40px 20px;
}

.categoria-card {
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.categoria-card:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.categoria-card.active-card {
  background-color: #e9ecef; 
  border: 2px solid #000; 
  box-shadow: 0 0 25px rgba(50, 67, 91, 0.3);
}


.img-icon {
  width: 129px;
  height: 128px;
  object-fit: contain;
}

/*responsive for icons (ac,semi,carr)*/

@media (max-width: 576px) {
  .categoria-card {
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .categoria-card .img-icon {
    width: 80px;
    height: auto;
  }

  .categoria-card .card-title {
    font-size: 0.8rem;
  }
}

/*responsive styles for dinamics cards*/




/*otros styles*/

.unidad-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background-color: #fff;
  min-height: 420px;
  transition: transform 0.2s ease;
}

/* .unidad-card:hover {
  transform: translateY(-5px);
} */

.unidad-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.unidad-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.unidad-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.unidad-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.unidad-card-btn {
  padding: 10px 0;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.25s ease;
  width: 100%;
}

.ver-mas-btn {
  background-color: #212529;
  color: white;
}

.ver-mas-btn:hover {
  background-color: #495057;
}

.unidad-consultar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #198754;
  color: white;
  padding: 10px 0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  width: 100%;
  transition: background-color 0.25s ease;
}

.unidad-consultar-btn:hover {
  background-color: #157347;
}

#btn-cargar-mas{
  margin-bottom: 10px;
}

