html {
    scroll-behavior: smooth;
}
header {
    position: fixed;
    width: 100%;
    padding: 10px; /* Espaciado interno */
    z-index: 1000;
    transition: transform 0.3s ease;
}
.nav-style {
    padding-top: 20px;
    display: flex;
    justify-content: space-between; /* Alineación de los elementos de la barra de navegación */
    color: #fff; /* */
}
.nav-hidden {
    transform: translateY(-100%);
}
.nav-link {
    position: relative;
    text-decoration: none;
    color: inherit;
    color: gray ;
}

/* Pseudoelemento para el efecto de subrayado */
.nav-link::before {
    color: blue !important;
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: transparent;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Efecto al pasar el ratón sobre el enlace */
.nav-link:hover::before {
    color: blue !important;
    transform: scaleX(1);
    transform-origin: bottom left;
    background-color: blue;
}

/* Ajusta el subrayado solo para el texto dentro del enlace */
.nav-link span {
    position: relative;
    z-index: 1;
}
.nav-link span:hover {
    color: blue !important;

    position: relative;
    z-index: 1;
}
.icon-nav {
    transition: transform 0.5s ease; /* Agrega una transición suave a la propiedad transform */
}

/* Efecto de rotación al pasar el ratón sobre el ícono */
.icon-nav:hover {
    transform: rotate(360deg); /* Rota el ícono 360 grados al pasar el ratón */
}
.criservis-section {
    background-color: #ffa434;
    height: 70vh;
    display: flex;
    align-items: center;
}
.text-nav-principal {
    font-size: 1.6em;
}
.title {
    color: blue;
}
.title-alt {
    color: grey;
}
.title-name {
    color: rgb(0, 4, 255);
}
.subtitle {
    color: rgb(150, 150, 150);
}
.subtitle-alt {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 2em;
    color: gray;
}
.img-reconocimiento {
    width: auto;
    height: 368px !important;
    border-radius: 20px;
}
.img-reconocimiento-2 {
    width: auto;
    height: 298px !important;
    border-radius: 20px;
}
.btn {
    transition: 0.3s;
    border: 3px solid blue;
    color: blue;
    /* background-color: #fff; */
    padding: 10px 30px;
    font-size: 1.4em;
    font-weight: 500;
    border-radius: 30px;
}
.btn-no-pincipal {
    transition: 0.3s;
    border: 3px solid blue;
    color: blue;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 400;
    border-radius: 0px;
}
.btn-criservis {
    transition: 0.3s;
    border: 3px solid #ff8001;
    color: #ff8001;
    background-color: #fff;
    padding: 10px 20px;
    font-size: 1.1em;
    font-weight: 400;
    border-radius: 0px;
}
.btn-criservis:hover {
    transition: 0.3s;
    -webkit-transform:scale(1.1);
    -moz-transform:scale(1.1);
    -ms-transform:scale(1.1);
    -o-transform:scale(1.1);
    transform:scale(1.1);
}
.btn-no-pincipal:hover {
    transition: 0.3s;
    border: 3px solid blue;
    color: blue;
    -webkit-transform:scale(1.1);
    -moz-transform:scale(1.1);
    -ms-transform:scale(1.1);
    -o-transform:scale(1.1);
    transform:scale(1.1);
}
.btn:hover {
    transition: 0.3s;
    border: 3px solid #fff;
    color: #fff;
    background-color: blue;
}
button:focus {
    outline: none;
}
.icon-nav {
    color: blue;
    fill: blue;
    height: 26px !important;
} 
.bk-home {
    background-color: rgba(0, 0, 255, 0.5) !important;
    background-image: url("/assets/home-imagen-3.jpg");
    width: 100%;
    height: 80vh;
    background-size: cover;
    filter: blur(5px)  grayscale(1);
    background-position: center 40%;
}
.bg-white-i {
    background-color: rgb(195, 194, 194);
}
.sa {
    position: absolute;
    top: 170px; /* Ajusta según sea necesario para la posición vertical */
    left: 0; /* Ajusta según sea necesario para la posición horizontal */
    z-index: 1; /* Asegura que .sa esté encima del contenido de .bk-home */
}
.text-blanco{
    color: #fff;
}
.text-izq {
    text-align: center !important;
}
.b-margin {
    margin-top: 13px !important;
}
.margin-section {
    margin-top:20px !important;
}
.margin-subtitle {
    margin-top: 160px !important;
}
.margin-section-ext{
    margin-top: 120px !important;
}
.joven-destacado-bg {
    background-color: grey;
    height: 70vh;
    padding: 120px 0px;
}
.joven-destacado-bg-2 {
    background-color: blue;
    height: 70vh;
    padding: 120px 0px;
}
.joven-destacado-bg-3 {
    background-color: #fff;
    height: 70vh;
    padding: 120px 0px;
}
.center {
    text-align: center !important;
}

@media (min-width: 1100px) {
    .text-aling-reco {
        /* margin-left: 140px; */
    }
}
@media (min-width: 701px) {
    .wd-100 {
        width: 100%;
    }
    .wd-80 {
        width: 80%;
    }
    .wd-60 {
        width: 60%;
    }
    .wd-40 {
        width: 40%;
    }
    .wd-20 {
        width: 20%;
    }
}

@media (max-width: 701px) {
    .img-whois {
        display: none;
    }
}

/* SLIDER EFECT */

.slider::before,
  .slider::after {
	background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
	content: "";
	height: 165px;
	position: absolute;
	width: 200px;
	z-index: 2;
  }
  
  .slider::after {
	right: 0;
	top: 0;
	transform: rotate(180deg);
  }
  
  .slider::before {
	left: 0;
	top: 0;
  }
  
  @keyframes scroll {
	0% {
	  transform: translateX(0);
	}
	100% {
	  transform: translateX(calc(-250px * 7));
	}
  }
  @keyframes scroll2 {
	0% {
	  transform: translateX(calc(-250px * 7));
	}
	100% {
	  transform: translateX(0);
	}
  }
  
  .slider {
	border-radius: 10px;
	background: #fff;
	height: 165px;
	margin: auto;
	overflow: hidden;
	position: relative;
	width: 100%;
	margin-top: 60px;
	margin-bottom: 40px;
  }
  
  .slider .slide-track {
    animation-delay: -20s;
	animation: scroll 40s linear infinite;
	display: flex;
	width: calc(250px * 14);
	background-color: #fff;
  }
  .slider .slide-track-2 {
    animation-delay: -20s;
	animation: scroll2 40s linear infinite;
	display: flex;
	width: calc(250px * 14);
	background-color: #fff;
  }
  .slider .slide {
	height: 165px;
	width: 250px;
	background-color: #fff !important;
	display: flex;
    justify-content: center !important;
    align-items: center !important;

}
.img-slider {
    height: 190px!important;
}
.img-slider-prensa {
    max-height: 190px!important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* VIDEO YOUTUBE IFRAME STYLE */
.container-vd {
    display: flex;
    align-items: center;
    justify-content: center;
}

iframe {
    margin-top: 20px !important;
    width: 60%; /* Puedes ajustar el ancho según tus necesidades */
    height: 60vh; /* Puedes ajustar la altura según tus necesidades */
}

@media (max-width: 701px) {
    iframe {
        height: 22vh; /* Puedes ajustar la altura según tus necesidades */
    }
}

@media (max-width: 445px) {
    .container-vd {
        display: flex;
        align-items: none;
        justify-content: none;
    }
    iframe {
        width: 100%; /* Puedes ajustar el ancho según tus necesidades */
        height: 30vh; /* Puedes ajustar la altura según tus necesidades */
    }
}
.position-relative {
    position: relative;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px; /* Ajusta el padding para ocupar más espacio vertical */
    width: 80%; /* Ajusta el ancho del texto para ocupar más espacio horizontal */
    text-align: center;
    transition: opacity 0.3s ease;
}

.position-relative:hover .overlay-text {
    opacity: 1;
}
.position-relative img {
    transition: 0.4s;
}
.position-relative:hover img {
    transition: 0.4s;
    filter: blur(5px) grayscale(100%); /* Aplica efecto de desenfoque y blanco y negro */
}

.position-relative video {
    transition: 0.4s;
}
.position-relative:hover video {
    transition: 0.4s;
    filter: blur(5px) grayscale(100%); /* Aplica efecto de desenfoque y blanco y negro */
}

