/* Estilos específicos para home */

.map-layout {
  display: flex;
  gap: 110px;
  align-items: flex-start;
  margin: 24px 0;
  margin-top: 108px;
}

.container-left {
  width: 30%;
}

.container-right {
  width: 70%;
  min-height: 500px;
  border-radius: 6px;
}

/* botones verticales en la izquierda */
.buttons-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}

.buttons-list .btn {
  width: max-content;
  height: 38px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 400;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.18s ease-out;
  font-family: "Work Sans", sans-serif;
  box-shadow: 4px 4px 4px 0px #00000040;
}

.buttons-list .btn:hover {
  transform: translateX(8px) translateY(0px);
}

/* Colores específicos por botón */
.btn--popular {
  background-color: #DB4F44;
  color: #ffffff;
}

.btn--santa-cruz {
  background-color: #FF9D00;
  color: #ffffff;
}

.btn--manrique {
  background-color: #A855F7;
  color: #ffffff;
}

.btn--aranjuez {
  background-color: #30C15D;
  color: #ffffff;
}

.btn--castilla {
  background-color: #00C4C6;
  color: #ffffff;
}

.btn--doce-oct {
  background-color: #1E9DB2;
  color: #ffffff;
}

.btn--robledo {
  background-color: #49A2D6;
  color: #ffffff;
}

.btn--villa-hermosa {
  background-color: #4E4FC7;
  color: #ffffff;
}

.btn--la-america {
  background-color: #B45AE8;
  color: #ffffff;
}

.btn--laureles {
  background-color: #FB3F6B;
  color: #ffffff;
}

.btn--san-javier {
  background-color: #A98A67;
  color: #ffffff;
}

.btn--el-poblado {
  background-color: #EA3A38;
  color: #ffffff;
}

.btn--guayabal {
  background-color: #FFAB00;
  color: #ffffff;
}

.btn--belen {
  background-color: #F9E84A;
  color: #ffffff;
}

.btn--la-candelaria {
  background-color: #35C66D;
  color: #ffffff;
}

.btn--buenos-aires {
  background-color: #2CBCCF;
  color: #ffffff;
}

.btn--otro {
  background-color: #ADB5BD;
  color: #000000;
}

/* Container Right - Mapa Principal */
.map-container {
  position: relative;
  height: 750px;
  margin: 20px auto;
}

.comuna {
  position: absolute;
  height: 150px;
  width: auto;
  opacity: 0.8;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  outline: 1px solid transparent;
}

.comuna:hover {
  opacity: 1;
  transform: scale(1.02);
}

.comuna.highlighted,
.comuna.selected-comuna {
  opacity: 1;
  transform: scale(1.03);
}

/* Posicionamiento de comunas */
#popular-1 {
  top: 0px;
  left: 0px;
  height: 143.05px;
}

#manrique-2 {
  top: -10px;
  left: 130px;
  height: 153.36px;
}

#villahermosa-3 {
  top: -80px;
  left: 296px;
  height: 255.93px;
}

#buenosaires-4 {
  top: -78px;
  left: 406px;
  height: 301.8px;
}

#elpoblado-5 {
  top: 78px;
  left: 510px;
  height: 256.19px;
}

#santacruz-8 {
  top: 57px;
  left: -37px;
  height: 136.2px;
}

#aranjuez-7 {
  top: 116px;
  left: 94px;
  height: 138.59px;
}

#lacandelaria-6 {
  top: 126px;
  left: 276px;
  height: 187.29px;
}

#castilla-9 {
  top: 163px;
  left: -64px;
  height: 170.91px;
}

#doceoctubre-10 {
  top: 250px;
  left: -52px;
  height: 138.66px;
}

#robledo-11 {
  top: 275px;
  left: 52px;
  height: 373.15px;
}

#laureles-12 {
  top: 289px;
  left: 227px;
  height: 310.77px;
}

#belen-13 {
  top: 298px;
  left: 437px;
  height: 331.89px;
}

#guayabal-14 {
  top: 299px;
  left: 490px;
  height: 170.03px;
}

#laamerica-15 {
  top: 431px;
  left: 224px;
  height: 169.89px;
}

#sanjavier-16 {
  top: 425px;
  left: 191px;
  height: 271.38px;
}

#home-body {
  background-image: url(../Public/Images/background-image.png);
  background-color: #FFFFFF;
}

/* ===== NUEVOS ESTILOS PARA VISTAS DETALLADAS ===== */

/* NIVEL 2: Vista Detallada de Comuna */
#detailed-map-views {
  width: 100%;
  max-width: 1400px;
  margin: 108px auto 24px;
  padding: 0 20px;
}

.detailed-map-view {
  display: none;
}

.btn-back-main {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  font-family: "Work Sans", sans-serif;
  cursor: pointer;
  border-radius: 3px;
  margin-bottom: 30px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-back-main:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.detailed-content {
  display: flex;
  gap: 80px;
  align-items: center;
  justify-content: center;
}

.detailed-map-image {
  flex: 0 0 auto;
}

.detailed-map-image img {
  max-height: 600px;
  width: 350px;
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
}

.points-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 400px;
}

.point-of-interest {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.point-of-interest:hover {
  transform: translateX(8px);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.25);
}

.point-marker {
  width: 24px;
  height: 24px;
  background-color: #DB4F44;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.point-label {
  font-family: "Work Sans", sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #333;
}

/* NIVEL 3: Vista de Contenido de Punto */
#point-content-views {
  width: 100%;
  max-width: 1200px;
  margin: 108px auto 24px;
  padding: 0 40px;
}

.point-content {
  display: none;
}

.btn-back-to-map {
  background-color: #333;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 18px;
  font-family: "Work Sans", sans-serif;
  cursor: pointer;
  border-radius: 3px;
  margin-bottom: 30px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.btn-back-to-map:hover {
  background-color: #555;
  transform: translateY(-2px);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.point-article {
  background: #fff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-family: "Work Sans", sans-serif;
}

.point-article h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #333;
}

.point-article p {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}

.point-article img {
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Estado activo del botón */
.buttons-list .btn.active {
  transform: translateX(8px);
  box-shadow: 6px 6px 8px 0px #00000060;
}

/* Responsive */
@media (max-width: 1024px) {
  .detailed-content {
    flex-direction: column;
    gap: 40px;
  }

  .detailed-map-image img {
    max-height: 400px;
  }

  .points-list {
    max-width: 100%;
  }

  .map-layout {
    flex-direction: column;
    gap: 40px;
  }

  .container-left,
  .container-right {
    width: 100%;
  }
}

.ubicacion-1 {
  width: max-content;
  position: absolute;
  right: 300px;
  top: -55px;
  color: #A2845E;
  text-decoration: underline;
  font-weight: 600;
}

.ubicacion-2 {
  width: max-content;
  position: absolute;
  left: -80px;
  bottom: 260px;
  color: #A2845E;
  text-decoration: underline;
  font-weight: 600;
}

.ubicacion-3 {
  width: max-content;
  position: absolute;
  right: 255px;
  bottom: 128px;
  color: #A2845E;
  text-decoration: underline;
  font-weight: 600;
}

.ubicacion-4 {
  width: max-content;
  position: absolute;
  left: -4px;
  bottom: 30px;
  color: #A2845E;
  text-decoration: underline;
  font-weight: 600;
}

.ubicacion-5 {
  width: max-content;
  position: absolute;
  left: 250px;
  bottom: -20px;
  color: #A2845E;
  text-decoration: underline;
  font-weight: 600;
}


/* Contenido puntos de comuna */


/* Texto introductorio destacado */
.intro-text {
  color: #4a90e2 !important;
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.6;
  font-weight: 600;
}

/* Texto del cuerpo principal */
.body-text {
  line-height: 1.8;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}

/* Nombre del autor */
.author-name {
  color: #666;
  font-size: 0.85rem;
  margin-top: 20px;
  margin-bottom: 5px;
}

/* Citas de fuentes */
.source-cite {
  color: #4a90e2 !important;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Títulos de sección */
.section-title {
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
}

/* Texto de poemas */
.poem-text {
  line-height: 1.8;
  margin-bottom: 12px;
  color: #333;
  font-weight: 600;
}

/* Grid de contenido de puntos */

/* Galería de imágenes en grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 30px 0;
}

.gallery-item {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Responsive para tablets */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    height: 300px;
  }
}

/* Responsive para móviles */
@media (max-width: 480px) {
  .gallery-grid {
    gap: 10px;
  }

  .gallery-item {
    height: 250px;
  }
}

.video-link {
  color: #4a90e2;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.video-link:hover {
  opacity: 0.7;
}


/* Aviso de seleccion */

.aviso-seleccion {
  background-color: #f8f9fa;
  padding: 10px 19px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  align-items: center;
}

.aviso-seleccion img {
  height: 33px;
}

.aviso-texto {
  font-weight: 600;
  font-style: SemiBold;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0%;

}