:root {
  --primary-color: #0f447c;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --success-color: #9f1769;
  --warning-color: #433b90;
  --danger-color: #ef4444;
}

/* Asegurarnos de que el body ocupe toda la altura del viewport */
body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  overflow-x: clip; /* Para el manejo moderno de overflow */
}
/* css apoyos slider */
.apoyo-link {
  display: block;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.apoyo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.apoyo-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  background: rgba(83, 162, 226, 0.582);
  color: #fff;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.apoyo-link:hover .apoyo-overlay,
.apoyo-link:focus .apoyo-overlay {
  opacity: 1;
}

.apoyo-link:hover .apoyo-img {
  transform: scale(1.04);
}

.apoyo-sin-enlace .apoyo-overlay {
  display: none;
}
/* ESTILOS ICONOS HEADER AYUNTAMIENTO */
.floating-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
/* IMAGEN BOLETINES */
.boletines-img {
    display: block;
    margin: 20px auto;
    width: 100%;
    max-width: 280px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.boletines-img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}
/* ESTILOS MODAL PRESIDENTE    */
/* --- Modal Fondo y Transición --- */
#modal-presidente .modal-content {
  background: linear-gradient(90deg, #a1a8ae 0%, #7fb2ff 100%);
  border: none;
  border-radius: 0;
  padding: 0;
  animation: fadeInModal 0.5s ease-in-out;
}

/* EFECTOS MODAL HISTORIA */
/* ===== Fondo del modal ===== */

.resena-modal-content {
  background: linear-gradient(to right, #7fb2ff, #a1a8ae);
  position: relative;
  min-height: 100dvh;
  overflow-y: auto;
}

/* Barra que se queda pegada arriba, dentro del flujo del modal */
.resena-close-bar {
  position: sticky;
  top: 0;
  z-index: 2000;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem;
  pointer-events: none; /* para que no bloquee clics debajo, excepto el botón */
}

.resena-close-btn {
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.resena-close-btn:hover,
.resena-close-btn:active {
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
}

/* ===== Body del modal ===== */
.resena-body{
    width:100%;
    padding:2rem 1rem 2.5rem;
}

/* ===== Título y subtítulo responsivos ===== */
.resena-title {
  font-family: "Avigea";
  font-size: clamp(1.8rem, 6vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  word-wrap: break-word;
  padding: 0 0.5rem;
}
.resena-subtitle {
  color: #fff1d4;
  font-weight: 200;
  font-family: "NexaBold";
  font-size: clamp(1.1rem, 4vw, 2rem);
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

/* ===== Tarjetas ===== */
.resena-card {
  border-radius: 20px;
  overflow: hidden;
}
.resena-card-header {
  background-color: #0f447c;
}
.resena-icon {
  width: 90px;
  height: 90px;
  max-width: 100%;
}
.resena-card-title {
  font-family: "NexaBold";
  font-size: clamp(1rem, 3vw, 1.5rem);
}
.resena-card-body {
  background-color: #f8f9fa;
}
.resena-card-text {
  line-height: 1.7;
  color: #000;
  font-size: 0.95rem;
  font-family: "NexaBold";
}
.resena-card-footer {
  margin-top: 1rem;
}
.resena-footer-text {
  font-family: "NexaBold";
  color: #000;
}
/* EFECTO FLIP PARA IMAGEN ALCALDE MODAL */
.spinner-container {
  width: 300px;
  height: 300px;
  position: relative;
  margin: 0 auto;
}

.spinner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2%;
}

/* ISOTIPO: gira y desaparece */
.front {
  animation: spinOut 2.8s ease forwards;
}

/* PRESIDENTE: entra después del giro */
.back {
  opacity: 0;
  animation: spinIn 2.8s ease forwards;
}

/* Animaciones */
/* ISOTIPO */
.front {
  animation: spinOut 2.2s ease forwards;
}

/* PRESIDENTE */
#galeria-presidentes {
  margin-left: 3vw;
}
.back {
  opacity: 0;
  animation: spinIn 2.2s ease forwards;
}

/* Animaciones sincronizadas */
@keyframes spinOut {
  0% {
    transform: rotate(0deg);
    opacity: 1;
  }
  70% {
    transform: rotate(360deg);
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes spinIn {
  0% {
    opacity: 0;
    transform: rotate(360deg);
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: rotate(0deg);
  }
}

/* MENU */
.navmenu {
  position: sticky;
  /* mantiene el sticky */
  top: 0;
  z-index: 1020;
  /* por encima del contenido */

  background-image: linear-gradient(
    to right,
    #6f6f6fff 0%,
    #ffff 25%,
    #6f6f6fff 50%,
    #ffff 75%,
    #6f6f6fff 100%
  );
  background-size: 100% 5px;
  background-position: bottom;
  background-repeat: no-repeat;

  padding-bottom: 10px;
  background-color: #fff;
  /* fondo sólido para que la sombra resalte */
}

.navmenu::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10px;
  /* altura de la sombra */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: -1;
  /* para que la sombra quede detrás del navbar y no interfiera */
}

#menu {
  font-size: clamp(12px, 0.9vw, 16px);
  font-family: "NexaBold";
}

#menu li {
  white-space: nowrap;
  padding-top: 15px;
  padding-bottom: 15px;
}

#conteneormenu {
  padding-right: 1.9vw;
  margin-top: -0.1vw;
}

#menu .nav-link {
  position: relative;
  padding-bottom: 5px;
  /* espacio para la línea */
}

#menu .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 4px;
  /* Grosor de la línea */
  background-color: #006fd3;
  /* Color de la línea */
  transition: width 0.25s ease-in-out;
}

#menu .nav-link:hover::after {
  width: 100%;
}
/* ESTILOS VERSION MOVIL */
/* Centrar palabra MENÚ y estilo header */
.offcanvas-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  text-align: center;
}

.offcanvas {
  z-index: 9999 !important;
}

/* Botón de cierre absoluto */
.offcanvas-header .btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
}

/* Hover profesional para links */
.nav-link:hover {
  background-color: #c7e0f9;
  border-radius: 8px;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  transform: translateX(5px);
}

/* Dropdown compacto */
.dropdown-menu {
  min-width: 220px;
  border: 0;
  border-radius: 8px;
  padding: 0.2rem 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Opciones */
.dropdown-menu .dropdown-item {
  padding: 0.45rem 0.9rem;
  font-size: clamp(0.82rem, 0.9vw, 0.9rem);
  font-weight: 500;
  line-height: 1.2;
  color: #343a40;
  transition: all 0.2s ease;
}

/* Separador sutil */
.dropdown-menu li:not(:last-child) {
  border-bottom: 1px solid #f1f3f5;
}

/* Hover */
.dropdown-menu .dropdown-item:hover {
  background: #f8f9fa;
  color: #0d6efd;
}

/* Glass extremo */
.offcanvas-glass {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    -20px 0 40px rgba(0, 0, 0, 0.25),
    inset 0 0 0.5px rgba(255, 255, 255, 0.8);
}

/* Header flotante */
.offcanvas-glass .offcanvas-header {
  background: rgba(255, 255, 255, 0.59);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

/* Texto más definido */
.offcanvas-glass .offcanvas-title,
.offcanvas-glass .nav-link {
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Links tipo iOS */
.offcanvas-glass .nav-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.35s ease;
}

.offcanvas-glass .nav-link:hover {
  background: rgba(0, 123, 255, 0.12);
  padding-left: 2.8rem;
}

/* Dropdown glass */
.offcanvas-glass .dropdown-menu {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Backdrop más blur */
.offcanvas-backdrop.show {
  background-color: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

/* Botón hamburguesa azul */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(78, 77, 77, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
/* BASE DE LAS FLECHAS */
.flecha-turismo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: rgba(209, 207, 207, 0.684);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.flecha-avisos {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  background: rgba(209, 207, 207, 0.684);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
/* ICONO */
.flecha-avisos i {
  font-size: 2.2rem;
  color: #ffffff;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HOVER */
.flecha-avisos:hover {
  background: #004ba8;
}

.flecha-avisos:hover i {
  color: #ffffff;
  transform: scale(1.15);
}
/* POSICIONES */
.flecha-izquierda {
  left: -80px; /* FUERA DEL CARRUSEL */
}

.flecha-derecha {
  right: -80px; /* FUERA DEL CARRUSEL */
}

/* ICONO */
.flecha-turismo i {
  font-size: 2.2rem;
  color: #ffffff;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* HOVER */
.flecha-turismo:hover {
  background: #004ba8;
}

.flecha-turismo:hover i {
  color: #ffffff;
  transform: scale(1.15);
}

/* Animación suave al abrir */
@keyframes fadeInModal {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Cierre del Modal --- */
/* imagen del alcalde efecto spinner */
/* boton informes de gobierno */
.btn-informe-gobierno {
  background-color: #b8dcf4;
  font-family: "NexaBold", sans-serif;
  color: #0f447c;
}
.btn-informe-gobierno:hover {
  background-color: #b8dcf4;
  font-family: "NexaBold", sans-serif;
  color: #0f447c;
  text-decoration: underline;
  text-decoration-color: #76c1ff;
  text-underline-offset: 7px;
  text-decoration-thickness: 3px;
}
/* Galeria presidentes card */
.galeria-presidencial-card {
  background: linear-gradient(
    to right,
    rgba(33, 68, 120, 0.95) 0%,
    rgba(33, 68, 120, 0) 100%
  );
  border-radius: 999px 0 0 999px;
}
.galeria-presidencial-card a {
  color: #fff;
  font-family: "Avigea", sans-serif !important;
  text-decoration: none;
}
.galeria-presidencial-card a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: #76c1ff;
  text-underline-offset: 7px;
  text-decoration-thickness: 3px;
}
/* lista desplegable informes */
/* Estilo del div desplegable */
.dropdown-list {
  display: none; /* Oculto por defecto */
  margin-left: 1.3vw;
  border: none;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.29);
  width: 32%;
  box-sizing: border-box;
  font-family: "NexaBold", sans-serif;
  font-size: 1.1rem;
}

.dropdown-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown-list li {
  margin-bottom: 5px;
}

.dropdown-list li a {
  text-decoration: none;
  color: #ffffff;
}

.dropdown-list li a:hover {
  border-bottom: 3px solid #b8dcf4; /* grosor y color */
  padding-bottom: 2px; /* baja un poco la línea */
}
.dropdown-list img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
#modal-presidente {
  z-index: 1091;
}
#modal-presidente .container-close {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
#modal-presidente .reseña-card {
  background: linear-gradient(
    to left,
    rgba(33, 68, 120, 0.95) 0%,
    rgba(33, 68, 120, 0) 100%
  );
  border-radius: 0 999px 999px 0;
}

#modal-presidente .custom-close {
  pointer-events: auto;
  background-color: rgba(250, 249, 249, 0);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#modal-presidente .custom-close:hover {
  transform: scale(1.1);
}

/* --- Título del Modal --- */
#modal-presidente h1 {
  font-size: 2.8rem;
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
  font-family: "Avigea", sans-serif !important;

  margin-left: -26vw; /* Ajusta para mover a la derecha */
  margin-bottom: -5vw; /* Ajusta para mover hacia abajo */
  text-align: left;
}

/* --- Tarjeta de Imagen y Datos Personales --- */
#modal-presidente .card-img-top {
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;

  transition: transform 0.3s ease;
}

#modal-presidente .card-img-top:hover {
  transform: scale(1.02);
}

#modal-presidente .text-white p {
  font-size: 1.2rem;
  margin: 0.2rem 0;
  font-family: "NexaBold", sans-serif;
}

#modal-presidente .nav__link__gob {
  font-weight: 600;
  color: #c59d5f;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
  transition: color 0.3s ease;
}

#modal-presidente .nav__link__gob:hover {
  color: #ffffff;
}
/* LOGO SECUNDARIO HEADER */
.imglogoheader {
  width: 23vw;
}
/* --- Redes Sociales --- */

.redes-presidente a {
  display: inline-block;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.redes-presidente a:hover {
  transform: scale(1.25);
}

/* --- Tarjeta de Semblanza --- */
#modal-presidente .shadow-lg {
  border-radius: 12px;
  padding: 1rem;
}

#modal-presidente .card-body h5 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f447c;
}

#modal-presidente .card-body h6 {
  font-size: 1.2rem;
  color: #c59d5f;
  margin-bottom: 1rem;
}

#modal-presidente .responsive-scroll-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-align: justify;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  max-width: 90%;
  font-family: "Nexa-Regular";
}

#modal-presidente .responsive-scroll-text::-webkit-scrollbar {
  width: 8px;
}

#modal-presidente .responsive-scroll-text::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 4px;
}

#clima-mod {
  padding: 20px 0px 0px 0px;
}
/* CARROUSEL CSS */

.temperatura {
  color: #00b1e9 !important;
  font-size: 1.4vw !important;
  font-weight: bold;
  font-family: "NexaBold", sans-serif;
}

#icon-clima {
  float: left;
  font-size: 30px;
  margin-right: 10px;
  font-family: "weathericons";
}
.clima {
  position: relative; /* Posiciona el contenedor de forma absoluta */
  top: 0.2vw; /* Espacio desde la parte inferior */
  left: 46vw; /* Espacio desde la parte derecha */
  width: 120px; /* Ajusta el ancho según lo necesites */
  background-color: rgba(
    255,
    255,
    255,
    0.7
  ); /* Fondo blanco semitransparente */
  border-radius: 20px;
  padding: 5px; /* Menos espacio interno */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
  display: flex;
  flex-direction: column; /* Apilar los elementos verticalmente */
  align-items: center; /* Centra los elementos horizontalmente */
}
.clima p {
  display: none; /* No se muestra en dispositivos con ancho <= 768px */
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}
/* 
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
} */

.bg-purple {
  background-color: #8b5cf6 !important;
}

.text-purple {
  color: #8b5cf6 !important;
}

/* SLIDER OBRAS PUBLICAS PURISIMA HOY */
.info-lateral,
.info-lateral .row,
.info-lateral .col-9,
.info-lateral .col-3 {
  height: 100%;
}
.historia-div-lateral {
  top: 20px;
  left: 1vw;
  width: 31vw;
  height: 23vh;
}
.redes-sociales-info {
  bottom: 95px;
  right: 1vw;
  width: 31vw;
  height: 23vh;
}
.obra-slider {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.obra-slide {
  position: relative; /* referencia del overlay */
  width: 100%;
  height: 100%;
}

.obra-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  position: relative;
}

.obra-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0.8rem;
  box-sizing: border-box;
  color: #fff;
  overflow: hidden;

  background: radial-gradient(
    circle at center,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.15)
  );
}
.obra-overlay h5 {
  font-size: 0.9vw;
  line-height: 1.25;
  margin: 0;
  font-weight: 600;

  max-width: 90%;
  text-align: center;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Header Animations */
.navbar {
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.navbar-brand:hover .brand-icon {
  transform: scale(1.1) rotate(5deg);
}

.brand-icon {
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

/* .nav-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width 0.3s ease;
        } */

.nav-link:hover::after {
  width: 100%;
}
/* Estilos aviso de privacidad */

#cookieConsent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #ffffff;
  color: #000000;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  /* Oculto por defecto */
  z-index: 1000;
  font-size: 14px;
  line-height: 1.5;
  width: 250px;
  /* Ancho fijo para mayor consistencia */
}

#cookieConsent a {
  color: #0056b3;
  text-decoration: none;
  font-weight: bold;
}

#cookieConsent button {
  background-color: #007aff;
  border: none;
  color: #ffffff;
  padding: 8px 12px;
  /* Ajuste del padding para que sea más compacto */
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  transition: background-color 0.3s;
  margin-top: 10px;
  width: 100%;
  /* Botón ocupa todo el ancho del contenedor */
}

#cookieConsent button:hover {
  background-color: #0051a8;
}

/* Hero Section */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Video de fondo */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Capa con gradiente */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.7) 0%,
    /* Blanco más visible abajo */ rgba(87, 183, 249, 0.8) 100%
      /* Azul semi-transparente arriba */
  );

  z-index: -1;
}

/* Asegura que el contenido esté por encima */
.hero-section .container {
  position: relative;
  z-index: 1;
}
.texto-hero {
  padding-top: 3vw;
}
.gradient-text {
  background: #ffffff;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Animated Buttons */
.btn-animated {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-animated:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-animated .btn-icon {
  transition: transform 0.3s ease;
}

.btn-animated:hover .btn-icon {
  transform: translateX(5px);
}
/* FONDO CONTACTO PRESIDENCIA */
.contacto {
  background-image:
    url("../assets/images/pattern/pattern.svg"),
    /* tu archivo SVG */
    linear-gradient(
        90deg,
        rgb(255, 255, 255) 0%,
        rgb(255, 255, 255) 50%,
        rgb(251, 251, 251) 100%
      );

  background-repeat: repeat, no-repeat; /* patrón se repite, degradado no */
  background-size: cover; /* tamaño del patrón y del degradado */
  background-position:
    top left,
    top left;
}
.contacto h2 {
  font-family: "Avigea", sans-serif !important;
  font-size: 3rem;

  color: #0f447c;
}
.contacto p {
  font-family: "NexaBold";
}
/* FONDO SECCION SERVICIOS */
#servicios {
  background-image:
    url("../assets/images/pattern/pattern.svg"),
    /* tu archivo SVG */
    linear-gradient(
        90deg,
        rgb(255, 255, 255) 0%,
        rgb(255, 255, 255) 50%,
        rgb(251, 251, 251) 100%
      );

  background-repeat: repeat, no-repeat; /* patrón se repite, degradado no */
  background-size: cover; /* tamaño del patrón y del degradado */
  background-position:
    top left,
    top left;
}
/* FONDO INFORMACION */
.info-turistica-bg {
  background-image:
    url("../assets/images/pattern/pattern.svg"),
    /* tu archivo SVG */
    linear-gradient(
        90deg,
        rgb(255, 255, 255) 0%,
        rgb(255, 255, 255) 50%,
        rgb(251, 251, 251) 100%
      );

  background-repeat: repeat, no-repeat; /* patrón se repite, degradado no */
  background-size: cover; /* tamaño del patrón y del degradado */
  background-position:
    top left,
    top left;
}
/* FONDO CARROUSEL LUGARES A VISITAR */
.turismo-carousel-bg {
  width: 100vw; /* ancho real de pantalla */
  max-width: 100vw;
  min-height: 23vw; /* altura flexible */
  margin-left: 50%;
  transform: translateX(-50%); /* centra perfecto */
  padding: 5rem 0;
  overflow: hidden;
  display: flex;
  align-items: center; /* CENTRADO VERTICAL */
  justify-content: center; /* CENTRADO HORIZONTAL */
  background-image:
    url("../assets/images/pattern/pattern.svg"),
    linear-gradient(
      90deg,
      rgba(0, 111, 217, 0.79) 0%,
      rgba(222, 95, 245, 0.84) 100%
    );

  background-repeat: repeat, no-repeat;
  background-size: cover;
  background-position:
    top left,
    center;
}

/* Stats Section */
.stats-section {
  background-image:
    url("../assets/images/pattern/pattern.svg"),
    linear-gradient(90deg, #a1a8ae 0%, #a1a8ae 50%, #7fb2ff 100%);

  background-repeat: repeat, no-repeat;
  background-size: cover;
  background-position:
    top left,
    top left;
}

.stat-card {
  transition: all 0.3s ease;
  font-family: "Avigea", sans-serif !important;
}

.stat-card:hover {
  transform: scale(1.05);
}

.stat-number {
  font-size: 3rem !important;
  color: white !important;
  font-family: "Avigea", sans-serif !important;
}

/* Service Cards */
.service-card {
  transition: all 0.5s ease;
  border: none;
  height: 100%;
  border: 2px solid #d6d3d3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* sombra ligera */
  border-radius: 8px; /* opcional, bordes ligeramente redondeados */
  font-family: "NexaBold", sans-serif !important;
}

.service-card:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(12deg);
}

/* DESTACADOS SECTION */
.destacados-section {
  background-image:
    url("../assets/images/pattern/pattern.svg"),
    linear-gradient(90deg, #7fb2ff 0%, #a1a8ae 50%, #a1a8ae 100%);

  background-repeat: repeat, no-repeat;
  background-size: cover;
  background-position:
    top left,
    top left;
  position: relative;
  overflow: hidden;
  font-family: "NexaBold", sans-serif !important;
}

.destacados-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.destacados-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.destacados-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.5s ease;
}

.destacados-card:hover::before {
  left: 100%;
}

.destacados-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.destacados-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  transition: all 0.4s ease;
}

.destacados-card:hover .destacados-icon {
  transform: scale(1.2) rotate(360deg);
}

.destacados-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.tab-content-animated {
  min-height: 300px;
  transition: all 0.3s ease;
}

.tab-pane {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.tab-pane.active {
  opacity: 1;
  transform: translateY(0);
}
/* News Section */
.news-section {
  padding: 80px 0;

  min-height: 100vh;
  background-image:
    url("../assets/images/pattern/pattern.svg"),
    /* tu archivo SVG */
    linear-gradient(
        90deg,
        rgb(255, 255, 255) 0%,
        rgb(255, 255, 255) 50%,
        rgb(251, 251, 251) 100%
      );

  background-repeat: repeat, no-repeat; /* patrón se repite, degradado no */
  background-size: auto, cover; /* tamaño del patrón y del degradado */
  background-position:
    top left,
    top left;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-family: "Avigea", sans-serif;
  font-weight: 300;
  background-color: #0f447c;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #000000;
  max-width: 600px;
  margin: 0 auto;
  font-weight: 600;
}
/* Carousel header acceso directos*/
.carouselmain-container {
  position: relative;

  overflow: hidden;

  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding-left: 0.3vw; /* padding mínimo uniforme */
  padding-right: 0.3vw;
  margin-left: 1vw;
  margin-right: 1vw;
  margin-top: -1vw;
}

/* quitar fondo del slide */
.carouselmain-container .carousel-item {
  background-color: transparent;
  padding: 10px 0;
}

.carouselmain-container .carousel-item img {
  width: 100%;
  height: 23vh;
  /* Menos alto */
  object-fit: cover;
  /* Mantiene proporción */
}
.carouselmain-container .carousel-item .row {
  padding-left: 0.2rem;
  padding-right: 0.2rem;
}
/* Botones del carrusel: tamaño y posición */
.carouselmain-container .carousel-control-prev,
.carouselmain-container .carousel-control-next {
  width: 8%; /* área de clic más grande */
  opacity: 1; /* que siempre se vean */
}

.carouselmain-container .carousel-control-prev-icon,
.carouselmain-container .carousel-control-next-icon {
  width: 4rem; /* agrandar ícono */
  height: 4rem;
}

/* Si usas iconos personalizados (Bootstrap Icons) */
.carouselmain-container .carousel-control-prev span i,
.carouselmain-container .carousel-control-next span i {
  font-size: 4rem !important; /* aumenta tamaño real del ícono */
  color: rgb(204, 202, 202);
}

/* Moverlos más hacia el borde */
.carouselmain-container .carousel-control-prev {
  left: -10px; /* puedes aumentar a -20, -30, etc */
}

.carouselmain-container .carousel-control-next {
  right: -10px;
}

/* Carousel */
.carousel-container {
  position: relative;
  margin-bottom: 80px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
  height: 40vw;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 111, 217, 0.7) 0%,
    /* inicio: sombra intensa */ rgba(0, 111, 217, 0.5) 30%,
    rgba(0, 0, 0, 0) 100% /* termina suavemente transparente */
  );
}

.slide-content {
  position: absolute;
  top: 22vw;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: column; /* organiza los hijos en columna */
  align-items: center; /* centra horizontalmente todos los elementos */
  text-align: center; /* asegura que los textos también se centren */
  gap: 0.8rem; /* espacio vertical entre elementos */
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.badge {
  background: #2563eb;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  opacity: 0.9;
  font-family: "NexaBold", sans-serif !important;
  font-weight: 600;
}

.slide-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  text-align: center; /* 🔑 centrado horizontal */
  font-family: "NexaBold";
}

.slide-excerpt {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 800px;
  text-align: center; /* 🔑 centra el texto horizontalmente */
  margin: 0 auto; /* opcional, asegura centrado si es un bloque */
  font-family: "NexaBold" !important;
  font-weight: 300;
}

/* Navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(209, 207, 207, 0.684);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.carousel-nav:hover {
  background: #0f447c;
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
  left: 20px;
}

.carousel-nav.next {
  right: 20px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.indicator.active {
  background: #2563eb;
  width: 32px;
  border-radius: 6px;
}

/* Additional Sections Grid */
.additional-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.section-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
  color: white;
  text-align: center;
}

.section-card:hover {
  transform: scale(1.05);
}

.boletines-card {
  background: #07367893;
  padding: 50px 40px;
}

.facebook-card {
  background: #07367893;
  padding: 50px 40px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px;
  font-size: 2.5rem;
}

.card-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: "NexaBold";
}

.card-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
  font-family: "NexaBold";
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.2s;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: #2563eb;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Facebook Embed Placeholder */
.facebook-embed {
  width: 100%;
  max-width: 400px; /* opcional */
  margin: 0 auto;
}

.facebook-embed iframe {
  width: 100% !important;
}

.facebook-placeholder {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.6);
}

.facebook-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

/* Call to Action */
.cta-section {
  text-align: center;
}

.cta-text {
  color: #6b7280;
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.btn-gradient {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  padding: 15px 40px;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}
/* ICONOS REDES SOCIALES */
.redes-sociales {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 2px 0px; /* vertical horizontal */
}

.redes-sociales a {
  width: 33.333%;
  display: flex;
  justify-content: center;
  align-items: center;
  line-height: 0;
}

.icono-social {
  width: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  /* ICONO REDES SOCIALES */
  .icono-social {
    width: 30px;
    height: 30px;
  }

  /* evitar scrolleo horizontal */
  html,
  body {
    overflow-x: hidden;
  }
  /* icono informes */
  .dropdown-list img {
    width: 15px;
    height: 15px;
  }
  /* Lista deplegable informes */
  .dropdown-list {
    display: none; /* Oculto por defecto */
    margin-left: 6vw;
    border: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.29);
    width: 50%;
    box-sizing: border-box;
    font-family: "NexaBold", sans-serif;
    font-size: 1rem;
  }
  /* h1 presidente */
  #modal-presidente h1 {
    font-size: 1.3rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #ffffff;
    font-family: "Avigea", sans-serif !important;

    margin-left: 1vw; /* Ajusta para mover a la derecha */
    margin-bottom: -5vw; /* Ajusta para mover hacia abajo */
    text-align: left;
  }
  /* Imagen presidente */
  #modal-presidente .card-img-top {
    max-height: 180px; /* más pequeña que antes */
    width: auto; /* mantiene proporción */
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
  }

  /* Reseña presidente */
  #modal-presidente .responsive-scroll-text {
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    max-width: 80%;
    font-family: "Nexa-Regular";
  }
  #modal-presidente .reseña-card {
    background: linear-gradient(
      to left,
      rgba(33, 68, 120, 0.95) 0%,
      rgba(33, 68, 120, 0) 100%
    );
    border-radius: 0 50px 50px 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .carousel-wrapper {
    height: 400px;
  }

  .slide-content {
    padding: 30px 20px;
  }

  .slide-title {
    font-size: 1.75rem;
  }

  .slide-excerpt {
    font-size: 1rem;
  }

  .additional-sections {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .boletines-card,
  .facebook-card {
    padding: 40px 30px;
  }

  .card-title {
    font-size: 1.5rem;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-nav.prev {
    left: 10px;
  }

  .carousel-nav.next {
    right: 10px;
  }
}
.contact-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.contact-icon {
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1);
}

.form-control:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
  border-color: transparent;
}

.btn {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Animation for the underline */
@keyframes drawLine {
  0% {
    stroke-dasharray: 0 100;
  }
  100% {
    stroke-dasharray: 100 0;
  }
}

.text-primary svg path {
  stroke-dasharray: 0 100;
  animation: drawLine 2s ease-in-out infinite alternate;
}
/* Imagen presidente */
.card-img-top {
  border-radius: 2%; /* Hace que la imagen sea circular */
  height: 300px;
  width: 300px; /* Asegúrate de que la imagen tenga un ancho igual a la altura */
  object-fit: cover; /* Mantiene la proporción de la imagen */
}

/* TURISMO SECTION - PARALLAX EFFECTS */

/* Sección de Turismo con efecto Parallax */
.turismo-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #fff;
}

/* Fondo parallax con video */
.parallax-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  will-change: transform;
  transform: translateY(0);
}

.parallax-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}
.parallax-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.9) 100%
  );
  z-index: 1;
}
/* Overlay elegante */
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.267)
  );
}
/* Contenido */
.turismo-content {
  position: relative;
  z-index: 10;
  padding: 120px 0;
}
.turismo-content h3 {
  font-family: "Avigea", sans-serif;
  font-weight: 300;
}

.turismo-content p {
  font-family: "NexaBold";
  font-weight: 600;
}
.turismo-card {
  background: linear-gradient(
    90deg,
    rgba(80, 108, 148, 0.85) 0%,
    rgba(80, 108, 148, 0.8) 50%,
    rgba(70, 98, 138, 0.8) 100%
  );

  border: 1px solid rgba(80, 108, 148, 0.9);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* mantiene el orden vertical */
  justify-content: center; /* centra vertical */
  align-items: center; /* centra horizontal */
  text-align: center; /* centra texto */
}

.turismo-card h4 {
  font-family: "Avigea", sans-serif;
  font-weight: 300;
  font-size: 3rem;
}
.turismo-card h6 {
  font-family: "Avigea", sans-serif;
  font-weight: 300;
  font-size: 1.5rem;
}
.turismo-card p {
  font-family: "NexaBold";
}

.turismo-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.turismo-card:hover::before {
  transform: translateX(100%);
}

.turismo-card:hover {
  transform: translateY(-20px) rotateY(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.turismo-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  transition: all 0.5s ease;
}

.turismo-card:hover .turismo-icon {
  transform: scale(1.3) rotate(360deg);
}
.turismo-card-informacion {
  position: relative; /* necesario para pseudo-elementos */
  overflow: hidden;
  border-radius: 1rem; /* ajusta según tu tarjeta */
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    /* blanco muy suave esquina superior izquierda */ rgba(43, 122, 183, 0.4)
      20%,
    /* azul un poco más oscuro */ rgba(43, 122, 183, 0.4) 80%,
    /* azul predominante */ rgba(255, 255, 255, 0.05) 100%
      /* blanco muy suave esquina inferior derecha */
  );

  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
/* Destello superior izquierdo */
.turismo-card-informacion::before {
  content: "";
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.6) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Destello inferior derecho */
.turismo-card-informacion::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.5) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.turismo-card-informacion h4 {
  font-family: "Avigea", sans-serif;
  font-weight: 300;
  font-size: 3rem;
  color: #fff;
}
.turismo-card-informacion h6 {
  font-family: "Avigea", sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
}
.turismo-card-informacion p {
  font-family: "NexaBold";
  font-size: 1rem;
}

.turismo-card-informacion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.turismo-card-informacion:hover::before {
  transform: translateX(100%);
}

.turismo-card-informacion:hover {
  transform: translateY(-20px) rotateY(5deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.turismo-card-informacion:hover .turismo-icon {
  transform: scale(1.3) rotate(360deg);
}

.floating-elements-turismo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-shape {
  position: absolute;
  opacity: 0.1;
  animation: floatShape 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.floating-shape:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes floatShape {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg) scale(1);
  }
  33% {
    transform: translateY(-30px) rotate(120deg) scale(1.1);
  }
  66% {
    transform: translateY(-15px) rotate(240deg) scale(0.9);
  }
}

.turismo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1; /* ⬅ CUADRADO */
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  font-family: "NexaBold";

  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.25),
    0 4px 6px rgba(0, 0, 0, 0.1);
}

/* OPCIONAL: hover efecto “flotante” */
.gallery-item:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 8px 12px rgba(0, 0, 0, 0.2);
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(42, 52, 255, 0.8) 0%,
    rgba(175, 106, 255, 0.8) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.gallery-item:hover::before {
  opacity: 1;
}
.jardin-hidalgo {
  background-image: url("../assets/images/turismo/JARDIN_HIDALGO.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}

.museo-hermenegildo {
  background-image: url("../assets/images/turismo/MUSEO_HERMENEGILDO.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}

.jardin-nieve {
  background-image: url("../assets/images/turismo/NIEVE_EN_JARDIN.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}

.parroquia-jalpa {
  background-image: url("../assets/images/turismo/PAROQUIA_SEÑOR_DE_LA_MISERICORDIA.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}

.plaza-jalpa {
  background-image: url("../assets/images/turismo/PLAZA_PRINCIPAL_JALPA.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}

.cañada-camping {
  background-image: url("../assets/images/turismo/RESERVA_CAÑADA.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}
.cañada-templo {
  background-image: url("../assets/images/turismo/TEMPLO_Y_CASCO_DE_EX_HACIENDA.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}
.enchiladas {
  background-image: url("../assets/images/turismo/TRADICIONALES_ENCHILADAS.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}
.museo-mascara {
  background-image: url("../assets/images/turismo/VISITA_MUSEO_DE_LA_MASCARA.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}
.hacienda-cañada {
  background-image: url("../assets/images/turismo/HACIENDA_CAÑADA.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}
.ruta-ciclista {
  background-image: url("../assets/images/turismo/DESTINO_CICLISTA.jpeg");
  background-size: cover; /* Ajusta la imagen para cubrir todo el contenedor */
  background-position: center; /* Centra la imagen dentro del contenedor */
  background-repeat: no-repeat; /* Evita que se repita la imagen */
}
.gallery-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* News Carousel */
.news-carousel {
  position: relative;
}

.carousel-item {
  transition: transform 0.5s ease;
}

.news-card {
  transition: all 0.3s ease;
  border: none;
  overflow: hidden;
}

.news-card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.news-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.news-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Contact Cards */
.contact-card {
  text-align: center;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  background: linear-gradient(
    90deg,
    rgba(80, 108, 148, 0.85) 0%,
    rgba(80, 108, 148, 0.8) 50%,
    rgba(70, 98, 138, 0.8) 100%
  );
}
.contact-card h5 {
  color: #ffff;
  font-family: "Avigea", sans-serif;
  font-weight: 300;
  font-size: 1.4rem;
}
.contact-card p {
  color: #ffff;
  font-family: "NexaBold";
  font-size: 1rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
  transform: scale(1.1) rotate(12deg);
}

/* Modal Animations */
.modal.fade .modal-dialog {
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.show .modal-dialog {
  transform: scale(1);
}

/* Footer */
.footer {
  background-image: url("../assets/images/pattern/pattern.svg");
  background-repeat: repeat;
  background-position: top left;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #022b5c92;
  z-index: 1;
}

.footer > * {
  position: relative;
  z-index: 2;
}
.footer-container {
  max-width: 1000px; /* ancho controlado */
  margin: 0 auto; /* centrado horizontal */
  padding: 60px 20px; /* espacio interno */
}

.footer-link {
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  transform: translateX(5px);
  color: #60a5fa !important;
}

/* Mobile Menu Animation */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
  cursor: pointer;
  margin-right: 3.3rem;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #333;
  border-radius: 1px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.3s ease-in-out;
}

.hamburger span:nth-child(1) {
  top: 0px;
}
.hamburger span:nth-child(2) {
  top: 8px;
}
.hamburger span:nth-child(3) {
  top: 16px;
}

.hamburger.active span:nth-child(1) {
  top: 8px;
  transform: rotate(135deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.hamburger.active span:nth-child(3) {
  top: 8px;
  transform: rotate(-135deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* facebook widget */
  .facebook-embed {
    width: 100%;
    max-width: 400px; /* opcional */
    margin: 0 auto;
    margin-left: -17px;
  }
  .stat-number {
    font-size: 2rem;
  }
  .hero-section {
    min-height: 60vh;
  }
  .turismo-content {
    padding: 50px 0;

    /* Fondo translúcido */
    background: rgba(255, 255, 255, 0.12);

    /* Desenfoque del contenido detrás */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);

    /* Borde tipo cristal */
    border: 1px solid rgba(255, 255, 255, 0.18);

    /* Sombra suave */
    box-shadow:
      0 8px 32px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
  /* Galeria de fotos sitios de interes */
  .gallery-item {
    width: 100%;
    border-radius: 12px;
  }
  /* Stats Section */

  .stats-section {
    min-height: auto;
    background-image:
      url("../assets/images/pattern/pattern.svg"),
      /* tu archivo SVG */
        linear-gradient(
          90deg,
          rgba(161, 168, 174, 1) 0%,
          rgba(161, 168, 174, 1) 50%,
          rgba(127, 178, 255, 1) 100%
        );

    background-repeat: repeat, no-repeat; /* patrón se repite, degradado no */
    background-size: 3091px, cover;
    background-position:
      top left,
      top left;
  }

  #cookieConsent {
    position: fixed;
    bottom: 15px;
    left: 10px;
    right: 10px;
    background-color: #ffffff;
    color: #333333;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    /* Oculto por defecto */
    z-index: 1000;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
  }

  #cookieConsent a {
    color: #007aff;
    text-decoration: none;
    font-weight: bold;
  }

  #cookieConsent button {
    background-color: #007aff;
    border: none;
    color: #ffffff;
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 14px;
    transition: background-color 0.3s;
    margin-top: 10px;
  }

  #cookieConsent button:hover {
    background-color: #0051a8;
  }

  .clima {
    position: static;
    max-width: 100%;

    margin: 0 auto;

    background: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .clima p {
    display: none; /* No se muestra en dispositivos con ancho <= 768px */
  }
  .redes-sociales-movil {
    bottom: 8vw; /* más equilibrado */
  }
  .imglogoheader {
    display: none;
  }
  .temperatura {
    color: #00b1e9 !important;
    font-size: 5vw !important;
    font-weight: bold;
    font-family: "NexaBold", sans-serif;
  }

  .news-section {
    padding: 80px 0;

    min-height: 100vh;
    background-image:
      url("../assets/images/pattern/pattern.svg"),
      /* tu archivo SVG */
        linear-gradient(
          90deg,
          rgb(255, 255, 255) 0%,
          rgb(255, 255, 255) 50%,
          rgb(251, 251, 251) 100%
        );

    background-repeat: repeat, no-repeat; /* patrón se repite, degradado no */
    background-size: cover; /* tamaño del patrón y del degradado */
    background-position:
      top left,
      top left;
  }
  .turismo-carousel-bg {
    height: 80vw;
  }

  .carousel-inner .row {
    flex-wrap: nowrap;
  }

  .carousel-item .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .gallery-item {
    height: 260px; /* altura consistente */
    border-radius: 12px;
  }

  .gallery-overlay {
    padding: 1rem;
  }

  .gallery-overlay h5 {
    font-size: 1.1rem;
  }

  .gallery-overlay p {
    font-size: 0.9rem;
  }

  /* Flechas */
  .flecha-turismo {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }

  .flecha-izquierda {
    left: 8px;
  }

  .flecha-derecha {
    right: 8px;
  }
}

/* Animation delays */
.animate-delay-1 {
  animation-delay: 0.1s;
}
.animate-delay-2 {
  animation-delay: 0.2s;
}
.animate-delay-3 {
  animation-delay: 0.3s;
}
.animate-delay-4 {
  animation-delay: 0.4s;
}
@media (min-width: 768px) and (max-width: 991.98px) and (orientation: portrait) {
  .carouselmain-container {
    position: relative;

    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding-left: 0.3vw; /* padding mínimo uniforme */
    padding-right: 0.3vw;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-top: 20vh;
  }
}
/* ===== Ajustes específicos para móviles pequeños ===== */
@media (max-width: 576px) {
  .resena-icon {
    width: 70px;
    height: 70px;
  }
  .resena-card-text {
    font-size: 0.9rem;
  }
  .resena-body {
    padding: 0.5rem 0.5rem 2rem;
  }
}
@media (min-width: 768px) and (max-width: 991.98px) {
  .redes-sociales-info {
    bottom: 20px; /* más equilibrado */
    right: 2vw; /* un poco más separado del borde */
    width: 37vw; /* más ancho en tablet */
    max-height: 240px; /* límite para que no se deforme */
  }
  .historia-div-lateral {
    top: 20px;
    left: 1vw;
    width: 37vw;
    max-height: 240px;
  }
  #menu {
    font-size: 0.8vw;
    font-family: "NexaBold";
  }
  .carouselmain-container {
    position: relative;

    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding-left: 0.3vw; /* padding mínimo uniforme */
    padding-right: 0.3vw;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-top: 8vw;
  }
}

/* TABLETS HORIZONTAL */
@media (min-width: 992px) and (max-width: 1440px) {
  #modal-presidente .text-white p {
    font-size: 1rem;
    margin: 0.2rem 0;
    font-family: "NexaBold", sans-serif;
  }
  .dropdown-menu {
    min-width: 150px;

    padding: 0.35rem 0;
  }

  .dropdown-menu .dropdown-item {
    padding: 0.8rem 1rem;
    font-size: 0.8rem;
    line-height: 0.5;
  }

  .clima {
    position: relative;
    top: 0.2vw;
    left: 45vw;
    width: 120px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .carouselmain-container {
    position: relative;

    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding-left: 0.3vw; /* padding mínimo uniforme */
    padding-right: 0.3vw;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-top: 5vw;
  }
  .redes-sociales-info {
    bottom: 5vw; /* más equilibrado */
  }
  #icon-clima {
    float: left;
    font-size: 1.2rem;
    margin-right: 10px;
    font-family: "weathericons";
  }
  .carouselmain-container {
    position: relative;

    overflow: hidden;

    background-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding-left: 0.3vw; /* padding mínimo uniforme */
    padding-right: 0.3vw;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-top: 3vh;
  }
  /* Reseña presidente */
  #modal-presidente .responsive-scroll-text {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.6;
    text-align: justify;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 10px;
    max-width: 80%;
    font-family: "Nexa-Regular";
  }
  .dropdown-list {
    display: none; /* Oculto por defecto */
    margin-left: 1.3vw;
    border: none;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.29);
    width: 35%;
    box-sizing: border-box;
    font-family: "NexaBold", sans-serif;
    font-size: 0.8rem;
  }
  #menu {
    font-size: 0.85vw;
    font-family: "NexaBold";
  }
  .turismo-carousel-bg {
    height: 30vw;
  }
}

@media (min-width: 1441px) and (max-width: 1919px) {
  .imglogoheader {
    width: 25vw;
  }
  .clima {
    margin-top: 1.3vw;
    width: 150px;
    left: 44.6vw;
  }
}
@media (min-width: 1920px) {
  .imglogoheader {
    width: 25vw;
  }
  .clima {
    left: 46vw;
    margin-top: 1.6vw;
    width: 150px;
  }
}
