/*
Theme Name: Paseo de la Memoria
Theme URI: https://example.com/memoria
Author: Ricarso
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: memmoria
*/
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-default) !important;
}
.fondo-menu {
  background-color: var(--background-paper) !important;
  min-height: 64px;

  /* position: fixed;
  width: 100%;
  z-index: 100; */
}
a {
  color: var(--primary);
}

a:hover {
  color: var(--primary);
  font-weight: 600;
}
.fondo-paper {
  background-color: var(--background-paper);
}
.text-default {
  color: var(--texto-default);
}
.color {
  color: var(--primary);
}

.card {
  background-color: var(--background-paper);
  color: var(--texto-default);
}

#header .texto-nivel-0 {
  font-size: 13px;
  line-height: 22px;
  font-weight: 600;
  color: var(--texto-default);
}

#header .texto-nivel-1 {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: var(--texto-default);
  /* background-color: var(--primary) !important; */
}
#header .texto-nivel-1.active {
  background-color: var(--primary) !important;
}
#header .texto-nivel-1:active {
  background-color: var(--primary) !important;
}
#header .texto-nivel-1:hover {
  background-color: var(--primary) !important;
}

#header .texto-logo {
  font-size: 20px;
  line-height: 32px;
  font-weight: 600;
  color: var(--primary) !important;
}

#header .icono {
  height: 24px;
  width: 24px;
  color: var(--primary);
}

/* Bloque de Hechos */
#hechos a {
  color: var(--primary);
}

#hechos a:hover {
  color: var(--primary);
  font-weight: 600;
}

#hechos .buscador {
  background-color: #fff;
  border-radius: 8px;
  -webkit-box-shadow: 0px 1px 0px 0px var(--texto-default);
  -moz-box-shadow: 0px 1px 0px 0px var(--texto-default);
  box-shadow: 0px 1px 0px 0px var(--texto-default);
  padding-top: 8px;
  padding-bottom: 8px;
  height: 50px;
}

#hechos .buscador,
.buscador input {
  background-color: var(--background-paper);
  color: var(--texto-default);
}
[data-theme="dark"] #hechos .buscador,
.buscador input:focus {
  background-color: var(--background-paper);
  color: var(--texto-default);
}
#hechos .card {
  border-radius: 10px;
  background-color: var(--background-paper) !important;
  color: var(--texto-default);
}
#hechos .card:hover {
  /* background-color: var(--background-paper); */
  transform: scale(1.008);
}
#hechos .titulo {
  color: var(--texto-default);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
}

#hechos .resumen {
  color: var(--texto-default);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
}

#hechos .tag-grupo {
  /* border-radius: 15px; */
  background-color: #8c8670;
  color: #fff;
  /* height: 40px; */
  padding-top: 0px;
  padding-bottom: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
}

#hechos .tag {
  border-radius: 15px;
  background-color: var(--accent);
  color: #fff;
}

#hechos .tag:hover {
  border-radius: 15px;
  background-color: transparent;
  color: #8c8670;
  border-color: #8c8670;
}
.ver-mas a {
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
}

.ver-mas a:hover {
  color: var(--primary);
  font-weight: 700 !important;
}

/* #banner-mapa {
  position: relative;
  background-image: url("assets/images/banner_mapa.png");
  background-color: var(--primary);
  width: 100%;
  height: 400px;
} */

#banner-mapa {
  position: relative;
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  background: url("assets/images/banner_mapa_v1.png") center/cover no-repeat;
  background-blend-mode: overlay;
}

#banner-mapa::before {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary); /* Color semitransparente */
  opacity: 0.4;
}

#banner-mapa .mensaje {
  /* position: absolute; */
  z-index: 100;
}

#mapa-sucesos .titulo {
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: 0.1px;
}

#mapa-sucesos .tag {
  border-radius: 15px;
  background-color: var(--accent);
  color: #fff;
  font-size: 8px;
  /* scale: 0.8; */
}

#mapa-sucesos .tag:hover {
  border-radius: 15px;
  background-color: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

#mapa-sucesos .icono {
  color: var(--primary);
}
#mapa-sucesos .link {
  color: var(--texto-default);
  text-decoration: none;
}

#mapa-sucesos .fondo-mapa, #galeria-sucesos .fondo-galeria {
  background-color: var(--background-paper);
  border-radius: 4px;
}

#mapa-sucesos .filtro {
  padding: 8px;
  width: 100% !important;
  border: 1px solid lightgrey;
  border-radius: 4px;
  color: var(--texto-default);
  background-color: var(--background-paper);
  text-decoration: none;
  /* background-color: var(--primary); */
}
#mapa-sucesos .dropdown-item.active {
  background-color: var(--primary);
}
#mapa-sucesos .dropdown-item:active {
  background-color: var(--primary);
}
#mapa-sucesos .dropdown-item:hover {
  background-color: var(--primary);
}

#mapa-sucesos .ver-ubicacion:hover {
  cursor: pointer;
  scale: 1.5;
}
#mapa-sucesos .map-button {
  position: absolute;
  top: 10px;
  right: 20px;
  /* padding: 10px; */
  z-index: 400;
}
#mapa-sucesos .map-cards {
  position: absolute;
  top: 80px;
  width: 85%;

  justify-self: anchor-center;

  /* right: 20px; */
  /* padding: 10px; */
  z-index: 400;
}
.leaflet-popup-content {
  margin: 0 !important;
}

#footer .texto {
  font-size: 16px;
  font-weight: 600;
}
#footer .link-red-social {
  color: var(--texto-default);
}

#footer .link-red-social {
  color: var(--texto-default);
  font-weight: 600;
}

/* Paginación  */

.custom-pagination .page-item.active .page-link {
  background-color: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.custom-pagination .page-item .page-link {
  background-color: var(--background-default);
  color: var(--texto-default);

  border-color: var(--primary);
}

/* Responsive  */

/* Estilo para dispositivos más grandes que 767px */
.ocultar-en-movil {
  display: block;
}

@media only screen and (max-width: 767px) {
  .ocultar-en-movil {
    display: none;
    /* Oculta el elemento en pantallas más pequeñas */
  }
}

/* Estilo para dispositivos más grandes que 767px */
.mostrar-en-movil {
  display: none;
  /* Oculta el elemento*/
}

@media only screen and (max-width: 767px) {
  .mostrar-en-movil {
    display: block;
    /* Muestra el elemento en pantallas más pequeñas */
  }
}

/* Leaflet */
[data-theme="dark"] .leaflet-layer,
.leaflet-control-zoom-in,
.leaflet-control-zoom-out,
.leaflet-control-attribution {
  filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-popup-content-wrapper {
  background-color: var(--background-paper) !important;
}

/* Estilos de las tarjetas */
.card-img-top-wrapper {
  width: 100%;
  height: 320px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  transition: transform 0.3s ease;
  background: #f8f9fa;
}

.card-img-top {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.card-img-top-wrapper:hover .card-img-top {
  transform: scale(1.05);
}  
/* Items de la galería */
.gallery-item {
  flex: 0 0 auto;
  width: calc(100% - 30px);
  padding: 0 15px;
}

@media (min-width: 576px) {
  .gallery-item {
    width: calc(50% - 30px);
  }
}

@media (min-width: 768px) {
  .gallery-item {
    width: calc(33.333% - 30px);
  }
}

@media (min-width: 992px) {
  .gallery-item {
    width: calc(25% - 30px);
  }
}
/* Contenedor principal */
.gallery-container {
  position: relative;
  overflow: hidden;
  padding-bottom: 20px;
}

/* Wrapper de la galería */
.gallery-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

/* Contenedor de scroll */
.gallery-scroll {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Para Firefox */
  padding: 10px 0;
}

.gallery-scroll::-webkit-scrollbar {
  display: none; /* Para Chrome/Safari */
}

/* Fila con scroll horizontal */
.flex-nowrap {
  flex-wrap: nowrap;
  margin: 0 -15px;
}

/* Flechas de navegación */
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
}

.gallery-arrow-prev {
  left: 15px;
}

.gallery-arrow-next {
  right: 15px;
}

.gallery-wrapper:hover .gallery-arrow {
  opacity: 1;
  visibility: visible;
}

.gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}  
.btn-rounded {
  border-radius: 50px;
}

