.container-result {
  width: 100%;
  padding: 30px 50px;
  max-width: 1400px;
  margin: 0 auto;
}

/* === CAROUSEL E IMÁGENES === */
.carousel {
  max-width: 100%;
  height: 400px; /* Altura aumentada para mejor visualización */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 20px;
}

.carousel-inner {
  height: 100%;
}

.carousel-item {
  height: 100%;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Muestra la imagen completa */
  object-position: center;
  background: #f8f9fa;
}

/* Estilo para título debajo del carousel */
.text-gradient {
  background: linear-gradient(135deg, #846584, #a687a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* === LAYOUT PRINCIPAL === */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 30px;
  width: 100%;
  margin-top: 30px;
}

/* === SECCIÓN DEL MAPA MEJORADA === */
.map {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.mapChart {
  height: 450px !important; /* Altura optimizada */
  width: 100%;
  border-radius: 12px;
}

/* Panel de controles mejorado */
.tamBuffer {
  position: absolute;
  top: 55px;
  left: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.tamBuffer p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.form-check-inline {
  margin-right: 15px;
}

.form-check-input:checked {
  background-color: #846584;
  border-color: #846584;
}

.form-check-label {
  font-size: 13px;
  font-weight: 500;
  color: #555;
}

#floating-panel .btn {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 500;
}

#tituloMap {
  padding: 13px;
}



/* === GRÁFICAS MEJORADAS === */
#educationChart, #populationPyramidChart, #socioeconomicChart {
  max-height: 380px !important;
  min-height: 380px !important;
  width: 100% !important;
  border-radius: 8px;
} 

/* === DATOS PRINCIPALES MEJORADOS === */
.lista-datos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
  justify-content: center;
  align-content: start;
  height: 100%;
}

.lista-datos div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 15px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 120px;
}

.lista-datos div:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.lista-datos i {
  font-size: 28px !important;
  margin: 0 0 10px 0;
  height: auto;
  opacity: 0.8;
}

.lista-datos div p {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #666;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.lista-datos div h6 {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: center;
}

/* === DETALLES DEL PREDIO === */
.row h3 {
  color: #333;
  font-weight: 700;
  margin-bottom: 25px;
  border-bottom: 3px solid #846584;
  padding-bottom: 10px;
}

.row h5 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 18px;
}

.row p {
  line-height: 1.6;
  color: #555;
  font-size: 14px;
}

.row p strong {
  color: #333;
  font-weight: 600;
}

/* === MODALES === */
.modal-body-canvas {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  height: 500px;
  width: 100%;
}

.modal-footer p {
  font-size: 12px;
  color: #666;
}





.modal-content {
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* === LISTAS === */
.lista {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.lista .info {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  font-size: 14px;
}

.lista .info:last-child {
  border-bottom: none;
}

.offcanvas-header h5 {
  margin: auto !important;
}

#lugares-cercanos {
  padding: 20px;

  h6 {
    margin-top: 10px;
    background: #54b48c !important;
    color: white;
    text-align: center;
    border-radius: 15px;
  }

  ul{    
    list-style-type: none;
    padding-left: 0;
    margin: 0;
  }

  li{
    list-style-type: none;
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 14px;
  }
}

.card-header, .offcanvas-header {
  background-color: #846584;
  padding: 13px;
}

/* === ANIMACIONES === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}



/* === MEJORAS VISUALES ADICIONALES === */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* === COLORES DE ICONOS MEJORADOS === */
.fa-users { color: #3498db; }
.fa-home { color: #27ae60; }
.fa-building { color: #17a2b8; }
.fa-balance-scale { color: #f39c12; }
.fa-money-check-alt { color: #6f42c1; }
.fa-money-bill-wave { color: #20c997; }

/* === RESPONSIVIDAD === */
@media (max-width: 1200px) {
  .container-result {
    padding: 20px 30px;
  }
  
  .columns {
    grid-gap: 20px;
  }
}

@media (max-width: 768px) {
  .columns {
    grid-template-columns: 1fr;
    grid-gap: 25px;
  }
  
  .tamBuffer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  
  .tamBuffer > div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .lista-datos {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-gap: 15px;
  }
  
  .lista-datos div {
    min-height: 100px;
    padding: 15px 10px;
  }
  
  .carousel {
    height: 250px;
  }
  
  .mapChart {
    height: 350px !important;
  }
  
  .dat-tab-content {
    min-height: 400px;
    max-height: 400px;
  }
  
  #educationChart, #populationPyramidChart, #socioeconomicChart {
    max-height: 320px !important;
    min-height: 320px !important;
  }
}

@media ( max-width: 580 ) {

  #educationChart, #populationPyramidChart, #socioeconomicChart {
  max-height: 150px !important;
  min-height: 150px !important;
  width: 50% !important;
  border-radius: 8px;
  } 
}

@media (max-width: 480px) {
  .container-result {
    padding: 15px 20px;
  }
  
  .lista-datos {
    grid-template-columns: 1fr 1fr;
  }
  
  .carousel {
    height: 200px;
  }
  
  .mapChart {
    height: 300px !important;
  }
}