/* Diferenciales Section Styles */
.diferenciales {
  background-color: #2d2e32;
  position: relative;
}

.diferenciales-bg-image {
  position: absolute;
  top: 20%;
  left: 85%;
  width: 50%;
  height: 100%;
  background-image: url('../img/D_BLANCO.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.1;
}

@media (max-width: 991px) {
  .diferenciales-bg-image {
    left: 0;
    width: 100%;
    background-position: center center;
    opacity: 0.05;
  }
}

.diferenciales-title {
  text-align: center;
  margin-bottom: 10px;
}

.diferenciales-title h2 {
  font-size: 4rem;  
  color: #fff; /* Assuming dark background */
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.diferenciales-underline {
  width: 400px;
  height: 2px;
  background-color: #ac815e;
  margin: 0 auto;
}

.diferenciales-title p {
  color: #FFF; /* Gold accent */
  font-size: 1.1rem; 
  position: relative;
  display: inline-block;  
  margin-top: 1rem;
}


/* Card Structure */
.diff-card {
  background-color: #2a2a2a; /* Dark gray background */
  border-radius: 8px;
  overflow: hidden;
  height: 100%; /* Ensures all cards match row height */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.diff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.diff-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 60%; /* Aspect ratio control */
  overflow: hidden;
  flex-shrink: 0; /* Prevent image shrinking */
}

.diff-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.diff-image-wrapper .diff-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 1.2rem;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.diff-content {
  padding: 25px;
  flex: 1; /* Fills remaining space */
  display: flex;
  flex-direction: column;
}

.diff-content h3 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  min-height: 3.2rem; /* Enforce 2 lines height approx for alignment */
  display: flex;
  align-items: center;
  justify-content: center;
}

.diff-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.diff-list li {
  padding: 12px 15px;
  margin-bottom: 8px;
  border-radius: 4px;
  color: #ccc;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-left: 3px solid transparent;
}

.diff-list li.active {
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-left-color: #e6c884; /* Gold accent highlight */
}

.diff-list li i {
  color: #e6c884;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .diferenciales-title h2 {
    font-size: 2.5rem;
  }
  
  .diff-content h3 {
    min-height: auto; /* Reset fixed height on mobile where columns stack */
    margin-bottom: 15px;
  }
  
  .diff-card {
    height: auto; /* Auto height on mobile */
  }
}

@media (max-width: 576px) {
  .diferenciales-title h2 {
    font-size: 2rem;
  }
  
  .diff-content {
    padding: 20px;
  }
}
