/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--bs-light);
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--bs-dark);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: normal;
}

.icon-box-primary,
.icon-box-light {
    position: relative;
    padding: 0 0 10px 10px;
    z-index: 1;
}

.icon-box-primary i,
.icon-box-light i {
    font-size: 60px;
    line-height: 0;
}

.icon-box-primary::before,
.icon-box-light::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    left: 0;
    bottom: 0;
    border-radius: 35px;
    transition: .5s;
    z-index: -1;
}

.icon-box-primary::before {
    background: var(--bs-primary);
}

.icon-box-light::before {
    background: var(--bs-light);
}


/*** Navbar ***/
.sticky-top {
    top: -20px;
    transition: .2s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 20px 0;
    color: var(--bs-dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .sticky-top {
        margin-top: -34px;
    }

    .navbar {
        height: 68px;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (min-width: 992px) {
    .header-carousel,
    .page-header {
        margin-top: -34px;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(3, 27, 78, .3);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 2.5rem;
    background-color: var(--bs-primary);
    border: 10px solid var(--bs-primary);
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/equipos-tarde.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}


/*** About ***/
.about-fact {
    width: 220px;
    height: 220px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

@media (min-width: 576px) {
    .about-fact.mt-n130 {
        margin-top: -130px;
    }
}


/*** Service ***/
.container-service {
    position: relative;
}

.container-service::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 70%);
    z-index: -1;
}

.service-item {
    position: relative;
    height: 100%;
    padding: 45px 30px;
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.service-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: .5s;
    background: var(--bs-primary);
}

.service-item:hover::before {
    height: 100%;
    top: 0;
}

.service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--bs-white);
}

.service-item:hover .icon-box-primary::before {
    background: var(--bs-dark);
}

.service-item:hover .icon-box-primary i {
    color: var(--bs-white) !important;
}


/*** Team ***/
.container-team {
    position: relative;
}

.container-team::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
    z-index: -1;
}

.team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/footer.png) center center no-repeat;
    background-size: contain;
}

@media (min-width: 992px) {
    .footer::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .5);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: rgba(255, 255, 255, .5);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--bs-primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    border-top: 1px dashed rgba(255, 255, 255, .2);
}

.copyright a {
    color: var(--bs-white);
}

.copyright a:hover {
    color: var(--bs-primary);
}

.iconos-nuestros-servicios div{
    margin-bottom: 5rem;
    
}

/** Iconos nuestros servicios **/
@media (min-width: 768px) {
    .iconos-nuestros-servicios {
        display: flex;
        justify-content: space-between;
        font-size: 18px;
        margin-bottom: 1rem;
    }
    .iconos-nuestros-servicios div{
        margin-bottom: 1rem;
    }
}
.icono {
    text-align: center;


}

.iconos-nuestros-servicios div{
    margin-bottom: 2rem;
    
}

@media (min-width: 768px) {
    .icono {
        flex-basis: calc(25% - 1rem);
        
    }
}   

.icono img{
    width: 100px; height: 100px;
}

.centrar-texto {
    text-align: center;
}

.justificar-texto {
    text-align: justify;
}
.seccion {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/*corrusel logos*/ 
  .carousel {
    overflow: hidden;
    width: 100%;
    background: white;
    padding: 0 0;
  }

  .carousel-track {
    display: flex;
    width: calc(200%); /* Duplicado para efecto infinito */
    animation: scroll 15s linear infinite;
  }

  .carousel-track img {
    width: 150px;
    margin: 0 30px;
    object-fit: contain;
    transition: transform 0.3s;
  }

  .carousel-track img:hover {
    transform: scale(1.1);
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }

.imagen-fondo {
    position: relative;
    background-image: url(../img/imagen_1.jpg);
    background-position: bottom;
    background-size: cover;
    height: 30rem;
    display: flex;
    align-items: center;
    margin-top: 5rem;
    overflow: hidden;
}

/* SABANA NEGRA */
.imagen-fondo .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.60); /* ajusta intensidad aquí */
    z-index: 1;
}

/* CONTENIDO */
.contenido-fondo {
    position: relative;
    z-index: 2;
    flex: 0 0 65%;
    color: #fff;
    margin-top: -5rem;
}

/* TEXTO */
.contenido-fondo p {
    line-height: 1.6;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .contenido-fondo p {
        font-size: 1.3rem;
    }

    .imagen-fondo {
        background-position: center center;
        height: 25rem;
    }
}


 .contenedor {
    width: 95%;
    max-width: 120rem; /** = 1200px; **/
    margin: 0 auto;
}


 .nosotros {
        background-image: url(../img/testimonial.jpg);
        background-position: center bottom;
        background-size: cover;
        height: 70rem;
        display: flex;
        align-items: center;
        margin-top: 5rem;
   
.contenido-nosotros {
        flex: 0 0 62%;
        color: gray;
        margin-top: -5rem;
        
    }        

}

 @media (min-width: 768px) {
    .contenido-nosotros p {
        font-size: 1.3rem;
    }
    .nosotros{
        background-position: center top;
        height: 30rem;

    }
    
 }

 .btn-radio{
    border-radius: 1rem;

 }

 /* Carrusel logos
.zona-multicarrousel {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 2rem;
  flex-wrap: wrap;
}

.galeria-carrusel {
  position: relative;
  width: 300px;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.marco {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  cursor: pointer;
}

.marco.imagen-activa {
  opacity: 1;
}

.visor-maximo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.imagen-expandida {
  width: 90%;
  height: 90%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.cerrar-visor,
.flecha-izq,
.flecha-der {
  position: absolute;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  user-select: none;
}

.cerrar-visor {
  top: 20px;
  right: 30px;
}

.flecha-izq {
  top: 50%;
  left: 30px;
  transform: translateY(-50%);
}

.flecha-der {
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
}

 Termina Carrusel logos*/


img.apscon{
    
    width: 170px;
    height: 90px;
    
      } 

img.apsconp{
    
    width: 80px;
    height: 70px;
  
    
      } 

img.apsconpe{
    
    width: 65px;
    height: 55px;
    margin-right: 2rem;
    
      } 


/* IDIOMA*/

img.apsconidioma{
    
    width: 23px;
    height: 23px;
  
    
      } 

 

/*carrusel equipos en nuestros servicios*/ 
.carousel-equipos {
  overflow: hidden;
  width: 100%;
  background: white;
  padding: 40px 0;
}

.carousel-track-equipos {
  display: flex;
  width: calc(200%); /* Duplicado para efecto infinito */
  animation: scroll 20s linear infinite;
  gap: 30px; /* Espacio entre imágenes */
}

.carousel-track-equipos img {
  width: 300px;          /* Ancho fijo */
  height: 500px;         /* Alto fijo */
  object-fit: cover;     /* Mantiene proporción y recorta */
  border-radius: 20px;   /* Esquinas redondeadas */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Sombra suave inicial */
  position: relative;    /* Para que z-index funcione correctamente */
}

.carousel-track-equipos img:hover {
  transform: scale(1.15);  /* Agranda 15% */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); /* Sombra más intensa */
  z-index: 10;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


/* Sección de certificaciones */
.contenedor-certificaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Tarjeta individual */
.tarjeta-certificado {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tarjeta-certificado:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Logo del certificado */
.certificado-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.certificado-logo img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
}

/* Título */
.certificado-titulo {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Separador ondulado */
.certificado-separador {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #1F4E78 25%, 
       #1F4E78 75%, 
        transparent 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    position: relative;
}



/* Descripción */
.certificado-descripcion {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
    flex-grow: 1;
}


/* Botón descargar */


/* Responsive */
@media (max-width: 768px) {
    .contenedor-certificaciones {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tarjeta-certificado {
        padding: 30px 20px;
    }
}



/*mapa*/

.position-relative {
    position: relative;
}

.map-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    background-color: #d62828;
    color: #fff;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    animation: bounce 1.5s infinite;
}

.map-marker::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #d62828 transparent transparent transparent;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, -100%) translateY(0); }
    50% { transform: translate(-50%, -100%) translateY(-5px); }
}


@media (max-width: 990px) {
  .solo-movil {
    display: block;
  }
}

.solo-movil {
  display: none; /* oculto en escritorio */
}

@media (max-width: 990px) {
  .solo-movil {
    display: block; /* visible en móvil */
  }
}