/* Personalización de colores del header */
#sp-header {
  background: linear-gradient(
    130deg,
    #1d71b8,
    #003595
  ); /* Puedes ajustar los colores */
}

/* Color del título de los artículos */

/* Fondo del footer */
#sp-footer,
#sp-bottom {
  background: #f1ebd5; /* Color de fondo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 60px; /* Altura fija */
  color: #ffffff;
}

/* Color de los enlaces 
    a {
    color: #274c7f;
    }
    a:hover {
    color:rgb(109, 31, 102);
    }*/

/* Configuración del footer */

/* Ajustes del escudo y marca gráfica */
#sp-footer .footer-logo {
  height: 60px; /* Tamaño del logo */
}

/* Estilizar el texto */
#sp-footer .footer-text {
  font-family: "Arial", sans-serif;
  font-style: italic;
  font-size: 18px;
  text-align: center;
  color: #000;
}

/* Asegurar que el ancho es responsive */
@media screen and (max-width: 768px) {
  #sp-footer {
    flex-direction: column;
    height: auto;
    text-align: center;
  }
}
.sp-megamenu-parent > li > a {
  color: #ffffff;
}

.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active:hover > a {
  color: #eddba6;
}
.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: #eddba6e6;
  background-position-x: 0%;
  background-position-y: 0%;
  background-repeat: repeat;
  background-attachment: scroll;
  background-image: none;
  background-size: auto;
  background-origin: padding-box;
  background-clip: border-box;
  box-shadow: 0 3px 5px 0 rgba(0, 0, 0, 0.2);
  padding: 10px 15px 10px 15px;
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
  border-bottom-right-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
}


.sp-megamenu-parent .sp-mega-group > li > a {
  color: #003595;
}
.sp-header-topbar {
  background: linear-gradient(90deg, #1d71b8, #003595);
  height: 40px;
}
.sp-page-title {
  text-align: center;
  padding: 0px;
  padding-top: 10px;
  padding-right: 5px;
  padding-bottom: 10px;
  padding-left: 0px;
  height: 100%;
}
.sp-sussum {
  bottom: 0; /* Se asegura de que quede pegado abajo */
  left: 0; /* Ajusta el div desde la izquierda */
  max-width: 100%; /* Hace que ocupe todo el ancho */
  text-align: center; /* Centra el contenido */
  background: #eddba6; /* Color de fondo */
  color: #274c7f; /* Color del texto */
  padding: 10px 0; /* Espaciado */
  height: 60px;
  z-index: 1000; /* Asegura que quede sobre otros elementos */
}

.sp-copyright {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
  align-items: center; /* Centra verticalmente */
  text-align: center;
}

.img-fluid {
  max-width: 100%;
  height: 400px; /* Altura máxima */
  object-fit: cover;
}

@media screen and (max-width: 768px) {
  .img-fluid {
    height: 150px; /* Reduce la altura en móviles */
  }
}

.sppb-img-responsive {
  height: auto;
  max-width: 90%;
  object-fit: contain; /* Para que la imagen no se distorsione */
  display: block;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .sppb-img-responsive {
    height: 150px; /* Reduce la altura en móviles */
    max-width: 90%;
  }
}
/* Ajustar imágenes dentro de artículos */

/* From Uiverse.io by Nawsome */ /* Estilo general del preloader */
.sp-pre-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #e8e8e8; /* Fondo semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* Asegura que esté por encima de otros elementos */
}

/* Estilo del loader */
.loader {
  --background: linear-gradient(
    135deg,
    #29abe2,
    #1d71b8
  ); /* Usando el azul institucional */
  --shadow: rgba(39, 94, 254, 0.28); /* Se mantiene como está */
  --text: #8a7520; /* Color dorado oscuro para el texto */
  --page: #f1ebd5; /* Color suave para las páginas */
  --page-fold: #d6cfb1; /* Color ligeramente más oscuro para el pliegue de la página */
  --duration: 3s;
  width: 200px;
  height: 140px;
  position: relative;
}

.loader:before,
.loader:after {
  --r: -6deg;
  content: "";
  position: absolute;
  bottom: 8px;
  width: 120px;
  top: 80%;
  box-shadow: 0 16px 12px var(--shadow);
  transform: rotate(var(--r));
}

.loader:before {
  left: 4px;
}

.loader:after {
  --r: 6deg;
  right: 4px;
}

.loader div {
  width: 100%;
  height: 100%;
  border-radius: 13px;
  position: relative;
  z-index: 1;
  perspective: 600px;
  box-shadow: 0 4px 6px var(--shadow);
  background-image: var(--background);
}

.loader div ul {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.loader div ul li {
  --r: 180deg;
  --o: 0;
  --c: var(--page);
  position: absolute;
  top: 10px;
  left: 10px;
  transform-origin: 100% 50%;
  color: var(--c);
  opacity: var(--o);
  transform: rotateY(var(--r));
  -webkit-animation: var(--duration) ease infinite;
  animation: var(--duration) ease infinite;
}

.loader div ul li:nth-child(2) {
  --c: var(--page-fold);
  -webkit-animation-name: page-2;
  animation-name: page-2;
}

.loader div ul li:nth-child(3) {
  --c: var(--page-fold);
  -webkit-animation-name: page-3;
  animation-name: page-3;
}

.loader div ul li:nth-child(4) {
  --c: var(--page-fold);
  -webkit-animation-name: page-4;
  animation-name: page-4;
}

.loader div ul li:nth-child(5) {
  --c: var(--page-fold);
  -webkit-animation-name: page-5;
  animation-name: page-5;
}

.loader div ul li svg {
  width: 90px;
  height: 120px;
  display: block;
}

.loader div ul li:first-child {
  --r: 0deg;
  --o: 1;
}

.loader div ul li:last-child {
  --o: 1;
}

.loader span {
  display: block;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 20px;
  text-align: center;
  color: var(--text);
}

/* Animaciones para cada "página" */
@keyframes page-2 {
  0% {
    transform: rotateY(180deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  35%,
  100% {
    opacity: 0;
  }
  50%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-3 {
  15% {
    transform: rotateY(180deg);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
  65%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-4 {
  30% {
    transform: rotateY(180deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  65%,
  100% {
    opacity: 0;
  }
  80%,
  100% {
    transform: rotateY(0deg);
  }
}

@keyframes page-5 {
  45% {
    transform: rotateY(180deg);
    opacity: 0;
  }
  65% {
    opacity: 1;
  }
  80%,
  100% {
    opacity: 0;
  }
  95%,
  100% {
    transform: rotateY(0deg);
  }
}
#roadmap-container {
  --roadmap-primary: #3949ab;
  --roadmap-secondary: #1a237e;
  --roadmap-accent: #17af30;
  --roadmap-card-bg: #ffffff;
  --roadmap-text: #333;
  --roadmap-text-light: #555;
  --roadmap-table-bg: #e8eaf6;
  --roadmap-table-header: #3949ab;
  --roadmap-table-row: #f5f7fa;
}

#roadmap-container {
  font-family: "Inter", sans-serif;
  background: var(--roadmap-light-bg);
  color: var(--roadmap-text);
  padding: 20px;
}

#roadmap-container h1 {
  text-align: center;
  color: var(--roadmap-secondary);
  margin-bottom: 40px;
  font-size: 2em;
}

#roadmap-container section {
  background: var(--roadmap-card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
}

#roadmap-container .roadmap-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(
    90deg,
    var(--roadmap-primary),
    var(--roadmap-secondary)
  );
  color: white;
  font-size: 1.3em;
  font-weight: 600;
}

#roadmap-container .roadmap-header i {
  margin-right: 10px;
}

#roadmap-container .content {
  padding: 20px;
}

#roadmap-container ul {
  list-style: none;
}
#roadmap-container li {
  display: flex;
  align-items: flex-start;
  margin: 15px 0;
}
#roadmap-container li i {
  color: var(--roadmap-accent);
  margin-right: 12px;
  font-size: 1.2em;
  margin-top: 4px;
}
#roadmap-container li a {
  color: var(--roadmap-secondary);
  font-weight: 600;
  text-decoration: none;
}
#roadmap-container li a:hover {
  text-decoration: underline;
}
#roadmap-container .time {
  font-size: 0.9em;
  color: var(--roadmap-text-light);
  margin-left: 28px;
  font-style: italic;
  margin-top: 4px;
}
#roadmap-container .note {
  background: var(--roadmap-table-bg);
  border-left: 4px solid var(--roadmap-primary);
  padding: 12px 18px;
  margin-top: 20px;
  border-radius: 4px;
  color: var(--roadmap-text-light);
}
#roadmap-container .estimate-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
#roadmap-container .estimate-table th,
#roadmap-container .estimate-table td {
  padding: 12px 15px;
  text-align: left;
}
#roadmap-container .estimate-table th {
  background: var(--roadmap-table-header);
  color: white;
  font-weight: 600;
}
#roadmap-container .estimate-table tr:nth-child(even) {
  background: var(--roadmap-table-row);
}
#roadmap-container .estimate-table tr:hover {
  background: var(--roadmap-light-bg);
}
#roadmap-container footer {
  text-align: center;
  margin-top: 50px;
  font-size: 0.9em;
  color: var(--roadmap-text-light);
}
.sp-page-title .sp-page-title-sub-heading {
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  margin-top: 5px;
  max-width: 99%;
}
.article-header {
  color: #c9a227;
}
#sp-title {
  background: #8a7520;
}

@media (max-width: 1199px) {
  /* Ocultar menú de escritorio */
  .sp-megamenu-parent {
    display: none !important;
  }

  /* Forzar visibilidad del botón hamburguesa */
  .offcanvas-menu-toggler {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 9999 !important;
    position: relative; /* o absolute si no aparece */
  }

  /* Asegurar que tenga ancho/cursor visible */
  .offcanvas-menu-toggler i {
    font-size: 28px;
    color: #000;
    cursor: pointer;
  }
}
/* ratio 4:3 (400×300) */
.sppb-addon-article-layout-masonry-content .sppb-item {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

/* rellena el contenedor recortando centrado */
.sppb-addon-article-layout-masonry-content .sppb-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
/* Asegurar contenedor del carousel no sea demasiado ancho */
.article-feature-gallery .carousel-inner {
  max-width: 1280px; /* ancho máximo deseado, ajústalo */
  margin: 0 auto; /* centra el carrusel en la página */
}

/* Cada slide contenido centrado */
.article-feature-gallery .carousel-item {
  text-align: center;
}

/* Imágenes dentro del carousel */
.article-feature-gallery .carousel-item img {
  display: inline-block; /* para que text-align centre correctamente */
  max-width: 100%; /* no superará el ancho del carousel-inner */
  width: auto; /* escala proporcional */
  height: auto; /* mantiene la proporción original */
  object-fit: contain; /* muestra la imagen completa sin recorte */
}

/* Limitacion altura  */
.article-feature-gallery .carousel-item img {
  max-height: 700px; /* ajusta según tu diseño */
}

/* Botones de navegación del carrusel */
.carousel-control-prev,
.carousel-control-next {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5); /* fondo semitransparente oscuro */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  opacity: 1;
}

/* Efecto hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: rgba(255, 215, 0, 0.9); /* dorado */
}

/* Íconos internos (flechas) */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1); /* Asegura que se vean blancos */
  width: 20px;
  height: 20px;
}
.carousel-control-prev {
  left: clamp(8px, 3vw, 40px); /* mínimo 8px, ideal 3vw, máximo 40px */
}
.carousel-control-next {
  right: clamp(8px, 3vw, 40px);
}
.article-feature-gallery {
  position: relative;
}
/* Arreglos Logo after fix el carrousel de imagenes articulos */
@media (max-width: 575px) {
  #sp-header .sp-logo {
    max-height: 40px !important;
  }
}
@media (max-width: 991px) {
  #sp-header .logo {
    max-height: 60px !important;
  }
}
@media (max-width: 576px) {
  .logo-image-phone {
    max-height: 40px !important;
  }
}
@media (max-width: 992px) {
  .logo-image-phone {
    max-height: 40px !important;
  }
}
/* Ocultar la cabecera de la tabla */
.rsf_files thead {
  display: none;
}

/* Compactar filas al máximo sin romper visibilidad */
.rsf_files td {
  padding: 1px 1px !important;
  line-height: 1;
  font-size: 14px;
}

/* Ajustar íconos y etiquetas */
.rsf_files .fa,
.rsf_files .fas,
.rsf_files .far {
  font-size: 14px;
  }

.rsf_files .badge,
.rsf_files .rsfiles-download-link {
  font-size: 14px;
  padding: 1px 1px;
}

/* Evitar espacio extra entre filas */
.rsf_files tr {
  border-bottom: 1px solid #e0e0e0;
}
.easyfolderlisting img {
  display: inline-block !important;
}
.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span {
  font-size: 25px;
  line-height: 30px;
  
}
.offcanvas-menu .offcanvas-inner ul.menu > li > ul li a {
  font-size: 20px;
  line-height: 25px;
  margin-top: 5px;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  color: #274c7f;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:hover {
  color: #ffffff !important;
  background-color: rgb(0, 44, 105);
  background-position-x: 0%;
  background-position-y: 0%;
  background-repeat: repeat;
  background-attachment: scroll;
  background-image: none;
  background-size: auto;
  background-origin: padding-box;
  background-clip: border-box; 
  background-color: rgb(29, 113, 184);
  font-weight: bold;
}
.offcanvas-menu .offcanvas-inner ul.menu > li a {
  display: block;
  padding: 10px 15px !important;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}
.offcanvas-menu .offcanvas-inner ul.menu > li a:hover {
  background-color: rgb(29, 113, 184);
  color: #ffffff !important;
  font-weight: bold;
}
.offcanvas-menu li.active > a,
.offcanvas-menu li.current > a {
 	color: #000;
    font-weight: bold;
}
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a {
  font-weight: bold;
  color: #000;
  border-radius: 6px;
}
/* Control de tamaño y adaptación responsive */
.glightbox-container .gslide-image {
  max-height: 100vh;
  max-width: 100vw;
  overflow: auto;
  display: block;
}

.glightbox-container .gslide-image img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gslide-media {
  overflow: auto;
}
.gslide-media {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
  scrollbar-width: none;
}
.gslide-media::-webkit-scrollbar {
  display: none;
}
.carousel.carousel-paused .carousel-inner {
  transition: none !important;
}
