/* Estilos generales */
.soluciones-section {
  background-color: #f8fafc;
}

.section-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  text-align: justify;
}

/* Diseño de cards */
.solucion-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  background: white;
  height: 100%;
  position: relative;
  border: 1px solid #e2e8f0;
}

.solucion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Icono superior */
.card-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 1.2rem;
  color: white;
}

/* Colores por segmento */
.residential-card .card-icon { background-color: #3b82f6; } /* Azul */
.government-card .card-icon { background-color: #6366f1; } /* Índigo */
.commercial-card .card-icon { background-color: #10b981; } /* Verde */
.industrial-card .card-icon { background-color: #f59e0b; } /* Ámbar */
.health-card .card-icon { background-color: #ef4444; } /* Rojo */
.rural-card .card-icon { background-color: #84cc16; } /* Lima */

/* Imagen */
.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid #e2e8f0;
}

/* Cuerpo de la card */
.card-body {
  padding: 20px;
}

.card-title {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 15px;
  font-weight: 100;
}

.card-features {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.card-features li {
  padding: 5px 0;
  font-size: 0.95rem;
  color: #ced5e0;
}

.card-features i {
  margin-right: 8px;
  font-size: 0.9rem;
}

/* Botón */
.btn-card {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background-color: #012a65;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.btn-card:hover {
  background-color: #e9a838;
  color: white;
}

.btn-card i {
  margin-left: 5px;
  transition: transform 0.3s;
}

.btn-card:hover i {
  transform: translateX(3px);
}


/* Estilos mejorados para modales impactantes */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 2px solid #e9a838;
}

.modal-header {
  background: linear-gradient(135deg, #2c3e50 0%, #1a1a1a 100%);
  color: white;
  padding: 20px 30px;
  border-bottom: none;
  position: relative;
}

.modal-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #e9a838 0%, #f8d56b 100%);
}

.modal-title {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.modal-title::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: #e9a838;
  margin-right: 12px;
  border-radius: 50%;
}

.modal-body {
  padding: 30px;
  background-color: #f8fafc;
}

.modal-body h6 {
  font-weight: 700;
  margin-top: 25px;
  color: #2c3e50;
  font-size: 1.1rem;
  position: relative;
  padding-left: 15px;
}

.modal-body h6::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 70%;
  background-color: #e9a838;
  border-radius: 3px;
}

.modal-body ul {
  padding-left: 25px;
  list-style-type: none;
}

.modal-body ul li {
  margin-bottom: 12px;
  color: #495057;
  position: relative;
  padding-left: 30px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.modal-body ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #e9a838;
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-footer {
  border-top: none;
  padding: 20px 30px;
  background-color: #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.btn-close {
  filter: invert(1);
  opacity: 0.8;
  transition: all 0.3s;
}

.btn-close:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.btn-secondary {
  background-color: #64748b;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background-color: #475569;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #e9a838 0%, #f8d56b 100%);
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(233, 168, 56, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d8962b 0%, #f5c747 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(233, 168, 56, 0.4);
  color: #1a1a1a;
}

/* Efecto de aparición mejorado */
.modal.fade .modal-dialog {
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease-out;
}

.modal.show .modal-dialog {
  transform: translateY(0) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .modal-body {
    padding: 20px;
  }
  
  .modal-header, .modal-footer {
    padding: 15px 20px;
  }
  
  .modal-title {
    font-size: 1.3rem;
  }
}

.btn-secondary {
  background-color: #6c757d;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.btn-primary {
  background-color: #e9a838;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #d8962b;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(233, 168, 56, 0.3);
}

.modal-footer {
  display: flex;
  justify-content: space-between;
}

.modal-footer .btn {
  margin: 0 5px;
}