/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GENERAL DE JUNGAPEO
   ========================================================================== */
:root {
    --morena-guinda: #73092B;
    --morena-dark: #4A0D21;
    --morena-dorado: #D4AF37;
    --morena-gold-light: #F4E0A5;
}

/* Clases de utilidad de color */
.bg-morena-guinda {
    background-color: var(--morena-guinda) !important;
}

.bg-morena-dark {
    background-color: var(--morena-dark) !important;
}

.text-morena-dorado {
    color: var(--morena-dorado) !important;
}

.border-morena-dorado {
    border-color: var(--morena-dorado) !important;
}

/* ==========================================================================
   HERO CON VIDEO DE FONDO Y OVERLAY GUINDA SEMITRANSPARENTE
   ========================================================================== */

.hero-video-section {
    position: relative !important;
    min-height: 550px;
    background: transparent !important;
    display: flex;
    align-items: center;
}

/* Video ajustado al contenedor en loop */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
}

/* Capa Guinda (#73092B) al 72% de opacidad para el difuminado institucional */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(115, 9, 43, 0.72) !important;
    z-index: 1;
}

/* Capa de contenido por encima del video y la capa guinda */
.z-2 {
    z-index: 2 !important;
}

/* ==========================================================================
   TARJETAS GENERALES Y CARDS DE CONTENIDO
   ========================================================================== */

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Botones institucionales */
.btn-warning {
    background-color: var(--morena-dorado) !important;
    border-color: var(--morena-dorado) !important;
    color: #111111 !important;
}

.btn-warning:hover {
    background-color: #b89328 !important;
    border-color: #b89328 !important;
    color: #000000 !important;
}

/* ==========================================================================
   ANIMACIONES EN SCROLL (VISIBILIDAD GARANTIZADA)
   ========================================================================== */

.scroll-animate {
    opacity: 1;
    /* Garantiza visibilidad inmediata */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.slide-in-left {
    transform: translateX(0);
}

.scroll-animate.slide-in-right {
    transform: translateX(0);
}

.scroll-animate.animated {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   HOMOLOGACIÓN DE IMÁGENES Y LOGO MINIATURA EN TARJETAS DESTACADAS
   ========================================================================== */

.card-destacado {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-destacado:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(115, 9, 43, 0.25) !important;
}

/* Contenedor con altura fija homologada */
.card-img-wrapper {
    height: 320px;
    overflow: hidden;
    position: relative;
}

/* Homologación de imágenes de fondo alineadas arriba */
.img-destacado {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Alinea hacia la parte superior */
    transition: transform 0.5s ease;
}

.card-destacado:hover .img-destacado {
    transform: scale(1.06);
}

/* Oscurecimiento suave sobre la imagen para legibilidad del texto */
.card-img-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.4) 100%);
}

.card-title-overlay {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 500;
    margin-top: 5px;
}

.text-shadow-dark {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Tamaños para la insignia/logo miniatura */
.logo-card-wrapper {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px !important;
}

.logo-card {
    max-height: 48px;
    object-fit: contain;
}

.hover-gold {
    transition: color 0.2s ease;
}

.hover-gold:hover {
    color: var(--morena-dorado) !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}


/* Animación de entrada para la card */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sección principal */
.gabinete-section {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Card Contenedora con animación Fade-Up */
.gabinete-card {
  width: 100%;
  max-width: 600px;
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  /* Aplicar animación de entrada */
  animation: fadeInUp 1s ease-out forwards;
}

.gabinete-title {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Visor del Slider */
.gabinete-slider-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
}

/* Riel del Slider con transición suave */
.gabinete-slider-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

/* Elemento individual del Slider */
.gabinete-item {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

/* Marco atractivo para cada imagen */
.gabinete-frame {
  overflow: hidden; /* Corta lo que sobresalga */
}

.gabinete-frame img {
  object-fit: cover;
  object-position: bottom; /* Empuja la imagen hacia abajo para ocultar la parte superior */
  height: 110%; /* Ajusta el alto para realizar el recorte */
  margin-top: -27%; /* Desplaza la parte superior fuera del marco */
}

/* Contador de diapositivas */
.gabinete-counter {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
  font-weight: 600;
}


/* Sección General con imagen de fondo */
.municipio-section {
  width: 100%;
  min-height: 100vh;
  background: url('../img/Guayaba.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* Card Principal Opaca con Cristal Transparente */
.municipio-card {
  width: 100%;
  max-width: 900px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #2b1820;
}

.municipio-subtitle {
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4a1f2d;
}

.municipio-title {
  font-size: 3rem;
  margin: 5px 0 0 0;
  color: #3b111e;
  font-weight: 800;
}

.municipio-tagline {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 30px;
  color: #4a2835;
}

/* Acordeón / Toggles */
.accordion-container {
  text-align: left;
}

.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  margin-bottom: 5px;
  transition: background 0.3s ease;
}

.accordion-item summary {
  padding: 15px 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  color: #2e1822;
  transition: all 0.3s ease;
}

.accordion-item summary::-webkit-details-marker {
  display: none;
}

/* Cuadro con el signo '+' */
.accordion-item summary .icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  background-color: #1e293b;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 4px;
  margin-right: 15px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Efectos HOVER */
.accordion-item summary:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #000;
  padding-left: 15px;
}

.accordion-item summary:hover .icon {
  background-color: #4a1f2d;
  transform: scale(1.1);
}

/* Animación cuando el toggle está abierto */
.accordion-item[open] summary .icon {
  transform: rotate(45deg);
  background-color: #6b213c;
}

/* Contenido desplegable */
.accordion-content {
  padding: 15px 10px 20px 49px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1c1117;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 8px 8px;
}

.timeline-list {
  padding-left: 20px;
}

.timeline-list li {
  margin-bottom: 8px;
}

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Tabla de Presidentes */
.presidents-table {
  width: 100%;
  border-collapse: collapse;
}

.presidents-table th, .presidents-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.presidents-table th {
  background: rgba(0, 0, 0, 0.05);
  font-weight: bold;
}

/* Sección General con desvanecimiento superior e inferior */
.municipio-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Pseudoelemento para la imagen de fondo con la máscara de degradado */
.municipio-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/Guayaba.jpg') no-repeat center center/cover;
  z-index: 1;

  /* Máscara de degradado: transparente arriba/abajo y visible al centro */
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

/* Asegurar que la card quede sobre el fondo */
.municipio-card {
  position: relative;
  z-index: 2;
}

/* Estado inicial: Invisible y desplazado hacia abajo */
.reveal-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Estado activo: Se activa al hacer scroll */
.reveal-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Retardo opcional para la segunda tarjeta en vistas de escritorio */
.card-facebook.reveal-scroll {
  transition-delay: 0.15s;
}

/* Animación de entrada */
@keyframes fadeInUpRedes {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contenedor Principal */
.redes-section {
  width: 100%;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.redes-container {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  align-items: center;
}

/* Estilo Base de las Cards */
.redes-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: fadeInUpRedes 0.8s ease-out forwards;
}

/* Hover interactivo para dar dinamismo */
.redes-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

/* Card Mensaje */
.badge-redes {
  display: inline-block;
  background: #4a1f2d;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.redes-title {
  font-size: 2rem;
  color: #1a1a1a;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.redes-description {
  color: #555555;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.logo-redes {
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo-redes:hover {
  transform: scale(1.05);
}

/* Card Facebook Centrada */
.card-facebook {
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centra horizontalmente */
  justify-content: center; /* Centra verticalmente */
  text-align: center;
  padding: 25px;
}

.fb-iframe-wrapper {
  width: 100%;
  max-width: 380px;        /* Coincide con el ancho configurado en el iframe */
  margin: 0 auto;          /* Centra el contenedor del iframe */
  display: flex;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.fb-iframe-wrapper iframe {
  display: block;
  margin: 0 auto;          /* Asegura el centrado exacto del iframe dentro del contenedor */
}

/* Botón Síguenos en Facebook */
.btn-siguenos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #1877f2; /* Azul oficial de Facebook */
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.35);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  margin-bottom: 25px;
}

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

/* Efectos Hover / Focus */
.btn-siguenos:hover {
  background-color: #1464cc;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px rgba(24, 119, 242, 0.45);
  color: #ffffff;
}

.btn-siguenos:hover .fb-icon {
  transform: rotate(-10deg) scale(1.1);
}

/* Efecto Click / Active */
.btn-siguenos:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 3px 10px rgba(24, 119, 242, 0.3);
}

/* Sección Presidenta con Fondo General */
.presidenta-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Imagen de fondo con desvanecimiento superior e inferior */
.presidenta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/presidenta.jpeg') no-repeat center center/cover;
  background-attachment: fixed; /* Efecto parallax */
  z-index: 1;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

/* Card Semitransparente Blanca */
.presidenta-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 750px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 24px;
  padding: 45px 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 
              inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  text-align: center;
  color: #1a1a1a;
}

.presidenta-subtitle {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 3px;
  font-weight: 800;
  text-transform: uppercase;
  color: #4a1f2d;
  margin-bottom: 5px;
}

.presidenta-role {
  display: block;
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b213c;
  margin-bottom: 8px;
}

.presidenta-name {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111111;
  margin-bottom: 25px;
  line-height: 1.2;
}

.presidenta-bio {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333333;
  text-align: justify;
  margin-bottom: 25px;
}

/* Ocultar inicialmente el texto extendido */
.bio-extended {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.5s ease, margin-top 0.4s ease;
  margin-top: 0;
}

.bio-extended.open {
  max-height: 300px;
  opacity: 1;
  margin-top: 15px;
}

/* Botón Saber Más */
.btn-saber-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #4a1f2d;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(74, 31, 45, 0.3);
  transition: all 0.3s ease;
}

.btn-saber-mas:hover {
  background-color: #6b213c;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(74, 31, 45, 0.4);
}

.btn-saber-mas svg {
  transition: transform 0.4s ease;
}

.btn-saber-mas.active svg {
  transform: rotate(180deg);
}

/* ==========================================================================
   SECCIÓN CONTÁCTANOS (Degradado Superior)
   ========================================================================== */
.contacto-section {
  width: 100%;
  padding: 80px 20px 20px 20px; /* Reducido abajo para juntar bloques */
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.contacto-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

/* Tarjetas */
.contacto-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

/* Card 1: Información */
.card-info {
  text-align: center;
  max-width: 850px;
}

.contacto-subtitle {
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: #4a1f2d;
  text-transform: uppercase;
}

.contacto-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1a1a;
  margin: 10px 0 15px 0;
}

.contacto-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 30px;
}

/* Botones de Acción */
.contacto-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-email {
  background-color: #4a1f2d;
  color: #ffffff;
}

.btn-email:hover {
  background-color: #6b213c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(74, 31, 45, 0.3);
}

.btn-emergency {
  background-color: #d9534f;
  color: #ffffff;
}

.btn-emergency:hover {
  background-color: #c9302c;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(217, 83, 79, 0.35);
}

/* Card 2: Formulario */
.card-form {
  max-width: 850px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.form-wrapper {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.form-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}


/* ==========================================================================
   SECCIÓN CONVOCATORIAS Y ANUNCIOS (Degradado Continuo)
   ========================================================================== */
.convocatorias-section {
  width: 100%;
  padding: 20px 20px 80px 20px; /* Inicia exacto donde termina la anterior */
  /* Inicia exactamente con #e9ecef (donde finaliza .contacto-section) */
  background: linear-gradient(180deg, #e9ecef 0%, #dee2e6 100%);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.convocatorias-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Card Contenedora */
.convocatorias-card {
  width: 100%;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  border-radius: 24px;
  padding: 45px 35px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
  box-sizing: border-box;
}

.badge-convocatorias {
  display: inline-block;
  background: #4a1f2d;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.convocatorias-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.convocatorias-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555555;
  max-width: 750px;
  margin: 0 auto 35px auto;
}

/* Marco para el iframe de Google Apps Script */
.iframe-wrapper {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.iframe-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ==========================================================================
   SECCIÓN VISITA JUNGAPEO
   ========================================================================== */
.visita-section {
  width: 100%;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--morena-dark) 0%, var(--morena-guinda) 100%);
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.visita-container {
  max-width: 1100px;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* Card Principal en Tono Rosa Elegante */
.visita-card {
  width: 100%;
  background: #FFF0F5; /* Rosa suave (LavenderBlush / Rosa Pastel) */
  border-radius: 24px;
  padding: 50px 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--morena-dorado);
  text-align: center;
  box-sizing: border-box;
}

.visita-badge {
  display: inline-block;
  background-color: var(--morena-guinda);
  color: var(--morena-gold-light);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 50px;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-transform: uppercase;
  border: 1px solid var(--morena-dorado);
}

.visita-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--morena-dark);
  margin-bottom: 18px;
}

.visita-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333333;
  max-width: 850px;
  margin: 0 auto 25px auto;
}

/* Etiquetas destacadas */
.visita-highlights {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.highlight-item {
  background: #FFE4E1; /* Rosa claro cálido */
  color: var(--morena-dark);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 30px;
  border: 1px solid #F08080;
}

/* Sub-card del Mapa */
.mapa-card-wrapper {
  background: #ffffff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(115, 9, 43, 0.12);
  border: 1px solid rgba(115, 9, 43, 0.15);
}

.mapa-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--morena-dark);
  margin-bottom: 18px;
}

.mapa-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mapa-frame iframe {
  display: block;
  width: 100%;
}

/* ==========================================================================
   SECCIÓN COLABORADORES Y ENLACES INSTITUCIONALES
   ========================================================================== */
.colaboradores-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #ffffff; /* Color claro para generar el contraste */
  border-top: 4px solid var(--morena-dorado); /* Divisor con el dorado institucional */
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.colaboradores-container {
  max-width: 1100px;
  width: 100%;
  text-align: center;
}

.colaboradores-badge {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--morena-guinda);
  text-transform: uppercase;
  margin-bottom: 5px;
}

.colaboradores-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 35px;
}

/* Grilla adaptable de 5 tarjetas */
.colaboradores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: center;
  justify-content: center;
}

/* Cards de Colaboradores */
.colaborador-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 20px;
  height: 110px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.colaborador-img-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.colaborador-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(20%); /* Suaviza los tonos inicialmente */
  transition: filter 0.3s ease, transform 0.3s ease;
}

/* Efectos HOVER */
.colaborador-card:hover {
  background: #ffffff;
  transform: translateY(-5px);
  border-color: var(--morena-dorado);
  box-shadow: 0 10px 25px rgba(115, 9, 43, 0.12);
}

.colaborador-card:hover img {
  filter: grayscale(0%); /* Restaura los colores originales al pasar el cursor */
  transform: scale(1.06);
}