/* CAROUSEL VEEDURIA */

.mcv-custom-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px; /* Ajusta según el tamaño de tu columna derecha */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.mcv-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
/* Ocultar barra de scroll en navegadores */
.mcv-carousel-track::-webkit-scrollbar {
  display: none;
}
.mcv-carousel-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mcv-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16 / 10; /* Controla la proporción de la foto de forma fija */
  height: 100%;
  overflow: hidden;
}
.mcv-carousel-slide .mcv-carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Hace la magia de rellenar sin deformar */
  object-position: center;
}
/* Barra oscura inferior para el pie de foto */

.mcv-carousel-slide:hover .mcv-carousel-caption {
  position: absolute;
  bottom: 0;
}

.mcv-carousel-caption {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  max-height: 100px;
  background: rgba(44, 53, 64, 0.9);
  color: #ffffff;
  padding: 12px 20px;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  box-sizing: border-box;
  transition: bottom 0.5s ease;
}
/* Flechas flotantes laterales */
.mcv-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  padding: 14px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background 0.3s;
  z-index: 10;

  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mcv-carousel-arrow:hover,
.mcv-carousel-arrow:focus {
  background: rgba(0, 0, 0, 0.7);
}

.mcv-carousel-arrow.prev {
  left: 20px;
}

.mcv-carousel-arrow.next {
  right: 20px;
}

/* Contenedor principal */
.mcv-grid-carousel-container {
  width: 100%;
  padding: 20px 0;
  position: relative;
}

/* El carril de las tarjetas */
.mcv-grid-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  scrollbar-width: none; /* Firefox */
  scroll-behavior: smooth;
}
.mcv-grid-track::-webkit-scrollbar {
  display: none;
} /* Chrome/Safari */

/* La Tarjeta */
.mcv-veeduria-carousel-card {
  flex: 0 0 calc(16.66% - 13px);
  min-width: 200px;
  height: 140px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

/* Responsivo */
@media (max-width: 1024px) {
  .mcv-veeduria-carousel-card {
    flex: 0 0 calc(33.33% - 10px);
  }
}
@media (max-width: 600px) {
  .mcv-veeduria-card {
    flex: 0 0 80%;
  }
}

/* Imagen y Overlay */
.mcv-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.mcv-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

/* Contenido de la tarjeta */
.mcv-card-content {
  position: relative;
  z-index: 3;
  padding: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.mcv-card-title {
  font-family: "Aleo", sans-serif;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-top: 20px;
}

/* Botón Explorar */
.mcv-card-btn {
  font-family: "Aleo", sans-serif;
  border-bottom: 1px solid #fff;
  color: #fff;
  padding: 4px 12px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 60%;
  margin: 0 auto;
}
.mcv-card-btn:hover {
  font-weight: 600;
  color: white;
}

/* Navegación Inferior */

.mcv-veeduria-carousel-separator {
  height: 2px;
  width: 40px;
  border-radius: 5px;
  background-color: #2e7d32;
}

.mcv-veeduria-carousel-grid-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}
.mcv-veeduria-carousel-nav-btn {
  padding: 0 !important;
  background: none !important;
  border: none !important;
  font-size: 24px !important;
  color: #2e7d32 !important;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
  width: 40px !important;
  height: 40px;
  display: flex !important;
  justify-content: center;
  align-items: center;
}

.mcv-veeduria-carousel-nav-btn svg {
  height: 32px;
  width: 32px;
}

.mcv-veeduria-carousel-nav-btn:hover {
  opacity: 1;
  transform: scale(1.2);
}

.mcv-map-section-container {
  font-family: "Montserrat", sans-serif;
  display: flex;
  gap: 24px;
}

/* Lienzo contenedor relativo para el mapa de capas */
.mcv-map-canvas {
  position: relative;
  width: 425px;
  height: 630px;
  aspect-ratio: 349 / 504;
}

/* Imagen base gris de fondo */
.mcv-map-base-bg {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.6; /* Se ve gris claro de fondo */
}

/* Capas independientes de regiones */
.mcv-layer-region {
  position: absolute;
  transition: all 0.25s ease-in-out;
}

.mcv-layer-region img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) brightness(90%); /* Desactivado por defecto */
  opacity: 0.4;
  transition:
    filter 0.25s,
    opacity 0.25s;
}

/* Regiones con Datos (Naranjas) */
.mcv-layer-region.is-selectable img {
  filter: none; /* Recupera su color original (naranja de tu archivo svg) */
  opacity: 1;
  cursor: pointer;
  transition: transform 0.3s ease;
}

/* Sincronización de Hover y Clics */
.mcv-layer-region.is-selectable:hover img,
.mcv-layer-region.js-hover-sync-layer img {
  z-index: 10;
  transform: scale(1.05);
  filter: brightness(85%) contrast(110%);
}

.mcv-layer-region.js-selected-layer img {
  filter: hue-rotate(330deg) saturate(160%) brightness(80%) !important;
}

/* Estilos para las etiquetas de texto de los departamentos */
.mcv-layer-label {
  position: absolute;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #333333;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
}

/* Puntos de ubicación negros del mapa */
.mcv-layer-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background-color: #3c3d3e;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
}

/* Ocultar capas deshabilitadas por completo si quieres el mapa limpio */
.mcv-layer-region.is-disabled {
  display: none;
}

.mcv-map-section {
  display: flex;
  gap: 32px;
}

.mcv-list-title {
  font-size: 24px;
  font-weight: 700;
  color: #1c2562;
  margin: 0 0 30px;
}

.mcv-list-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: #1c2562;
  margin-bottom: 10px;
}

.mcv-regions-list {
  font-weight: 600;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mcv-regions-list li {
  cursor: pointer;
  padding: 5px 0;
}

.mcv-regions-list li:hover {
  font-weight: 600;
  list-style: none;
  color: #ef7c00;
}

.mcv-content-column {
  background: white;
  flex: 1;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0px 4px 10px -3px rgb(0 0 0 / 20%);
}

.mcv-meta-preview-img {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.mcv-meta-preview-img img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.mcv-dynamic-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
}

.mcv-dynamic-text {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 10px;
}

.mcv-actions-container {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.mcv-card-btn-dynamic {
  font-size: 16px;
  font-weight: 600;
  background: #0aa15c;
  color: #fff;
  padding: 8px 24px;
  text-decoration: none !important;
  border-radius: 20px;
  display: flex;
  gap: 6px;
}

.mcv-card-btn-dynamic:hover {
  color: #fff;
  background: #087e49;
}

.mcv-card-btn-back {
  background: #fbfbfb;
  color: #000000;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 20px;
  position: absolute;
  top: 30px;
  right: 30px;
  display: flex;
}

.mcv-card-btn-back:hover {
  background: #d8d8d8;
  color: #000000;
}

/* BOTON DE SELECCION DE VEEDURIAS */

/* Contenedor del selector */
.mcv-selector-wrapper {
  position: relative;
  display: inline-block;
  font-family: sans-serif;
  user-select: none;
  margin-bottom: 15px;
}

/* El botón / disparador principal */
.mcv-selector-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f4f9f6; /* Fondo verde muy claro */
  color: #00a859; /* Tu color verde corporativo */
  padding: 10px 16px;
  border-radius: 20px; /* Bordes bien redondeados */
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.mcv-selector-trigger:hover {
  background-color: #e8f5ed;
}

/* Animación del icono flecha */
.mcv-selector-trigger .mcv-chevron {
  transition: transform 0.2s ease;
}
.mcv-selector-wrapper.is-open .mcv-chevron {
  transform: rotate(180deg);
}

/* Lista desplegable (Oculta por defecto) */
.mcv-selector-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  min-width: 220px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 6px 0;
  margin: 0;
  list-style: none;
  z-index: 999;
  display: none; /* Controlado mediante JS/CSS */
}

/* Mostrar cuando se añade la clase con jQuery */
.mcv-selector-wrapper.is-open .mcv-selector-dropdown {
  display: block;
}

/* Elementos de la lista */
.mcv-selector-dropdown li a {
  display: block;
  padding: 10px 16px;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.mcv-selector-dropdown li a:hover {
  background-color: #f1f5f9;
  color: #00a859;
}

/* Estilo para la región que está visualizándose actualmente */
.mcv-selector-dropdown li.active a {
  background-color: #e8f5ed;
  color: #00a859;
  font-weight: bold;
}

/* ESTILSO PARA LA LINEA DE TEIEMPO */

/* Contenedor General */
.mcv-timeline-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  font-family: "Open Sans", sans-serif;
  overflow: hidden;
}

/* Eje Cronológico */
.mcv-timeline-axis-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;

  padding: 30px 10px;
}

.mcv-timeline-line-track {
  position: relative;
  flex-grow: 1;
  height: 4px;
  background-color: #d1d5db;
  margin: 0 20px;
}

.mcv-timeline-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%; /* Manejado dinámicamente por JS */
  background-color: #1e293b;
  transition: width 0.3s ease;
}

.mcv-timeline-nodes-container {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
}

/* Nodos individuales */
.mcv-timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.mcv-node-year-label {
  position: absolute;
  top: -30px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.mcv-node-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcv-timeline-node.active .mcv-node-dot {
  background-color: #9ca3af;
  transform: scale(1.2);
}

/* Botones de Navegación */
.mcv-timeline-nav {
  padding: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #1e293b;
  color: #ffffff;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.mcv-timeline-nav:hover {
  background-color: #334155;
}

/* Área de Tarjetas Deslizables */
.mcv-timeline-cards-slider {
  width: 100%;
  overflow-x: hidden;
  padding: 10px 0;
}

.mcv-timeline-cards-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.mcv-timeline-card-item {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
  box-sizing: border-box;
  transition: opacity 0.3s;
}

/* Ajustes Responsivos para Tablets y Móviles */
@media (max-width: 992px) {
  .mcv-timeline-card-item {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }
}
@media (max-width: 640px) {
  .mcv-timeline-card-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Estilo estricto de la Tarjeta (Réplica exacta de la imagen) */
.mcv-card-logro-inner {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mcv-card-logro-media {
  height: 200px;
  overflow: hidden;
}

.mcv-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mcv-card-logro-body {
  font-family: "Montserrat", sans-serif;
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  height: 250px;
  overflow-y: auto;
}

.mcv-card-logro-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px 0;
}

.mcv-card-logro-description {
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
