*{
    box-sizing: border-box;
    font-family: 'QuanSlimBlack', sans-serif;
}

body{
    margin: 0;
    background-color: white; 
}
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; 
    background-color: white; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 5s forwards; 
    
}


.loader img {
    width: 150px; 
    height: auto;
    animation: fadeOut 5s forwards, rotate 4s linear infinite; 
}

.loader-text{
    position: absolute;
    font-size: 28px;
    padding-top: 180px;
    text-align: center;
}



@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    99% {
        opacity: 1; 
    }
    100% {
        opacity: 0; 
        display: none;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg); /* Empieza en posición inicial */
    }
    100% {
        transform: rotate(360deg); /* Gira 360 grados */
    }
}

/*HEADER - ENLACES*/
.header{
    display: flex;
    position: relative;
    justify-content: space-between;
    background-color: rgba(128, 128, 128, 0.5);
    align-items: center;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
}

.header__checkbox{
    display: none;
}

/*ventana label*/
.header__nav{
    display: none;
    position: fixed;
    height: 100vh; 
    width: 100vw;
    background-color: white;
    right: 0;
    top: 0;
    z-index: -1;
}
.header__nav-item  {
    font-size: 20px;
    letter-spacing: 2px;
    list-style: none;
    position: relative;
    padding-top: 6%;
}
.link{
    color: grey ;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.link:hover{
    color: rgb(18, 114, 156);
}

/*Subrayado de los enlaces*/
.link::after {
    content: "";
    position: absolute;
    width: 98%;
    height: 3px;
    bottom: -3px;
    left: 0;
    background-color: grey;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform .3s ease-out;
}
.link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}
/*fin del subrayado de los enlaces*/

/*posicion del link*/
.header__nav-list{
    display: flex;
    height: 30vh;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
}
.header__checkbox:checked ~ .header__nav{
    display: flex;
}
header,div,label,ul,li,nav,a{
    margin: 0;
    padding: 0;
}

/*Las tres lines horizontales*/
.label{
    display: inline-block;
    cursor: pointer;
    position: absolute;
    right: 30px;
    z-index: 2;
    
}
.label span {
    display: block;
    width: 30px;
    height: 4px;
    background-color: grey;
    margin: 6px 0;
}

/*Efecto X del label*/
.header__checkbox:checked + .label span:nth-child(1) {
    transform: translateY(10px) rotate(45deg); 
    
}
.header__checkbox:checked + .label span:nth-child(2) {
    opacity: 0; 
}
.header__checkbox:checked + .label span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg); 
    
}


/*LOGOTIPO*/
.logo{
    max-width: 100%;
    max-height: 47px;
    margin: 10px 10px;
    transition: transform 5s ease; 
    transform-style: preserve-3d;
}

/*Efecto de rotacion en 3D del logo*/
.logo:hover {
    transform: rotateY(360deg);    
}

@media screen and (min-width: 768px){
    .label{
        display: none;
    }
    .header{
        animation: bajar-nav both;
        animation-timeline: scroll();
        position: sticky;
        top: 0;
        animation-range: 10px 100px;
    }
    .header__nav{
        display: block;
        position: inherit;
        width: auto;
        top: 0;
        background-color: transparent;
        height: 0;
    }
    .header__nav-list{
        flex-direction: row;
        height: auto;
        width: auto;
        margin: auto;
        gap: 20px;
        margin: -35px 80px;
    }
    .link{
        color: white;
        font-weight: bold;
        font-size: 20px;
        animation: cambiar-color-letras 0.3s forwards;
    }
    .link:hover {
        color: orangered;
    }
    .link::after {
        background-color: white;  
    }
    .logo{
        max-width: 100%;
        max-height: 50px;
        margin: 20px 50px;
    }
}
@keyframes bajar-nav {
    from{
        padding: 0px 0;
        background-color: rgba(67, 38, 38, 0.2);
        
    }
    to{
        padding: 0px 0;
        background-color: rgba(0, 0, 0, 0.7);
        
    }
}


/*SLIDER DE FOTOS*/

.slider {
    position: relative;
	width: 100%;
    height: 100%;
    margin: -100px auto 0;
	overflow: hidden;
}
.slider ul {
	display: flex;
	padding: 0;
	width: 300%;
	animation: cambio 15s infinite linear;
}
.slider li {
	width: 100%;
	list-style: none;
}
.slider img {
	width: 100%;
    height: 100%;
}


@keyframes cambio {
    0% { margin-left: 0; }
    33% { margin-left: 0; }
    38% { margin-left: -100%; }
    66% { margin-left: -100%; }
    71% { margin-left: -200%; }
    100% { margin-left: -200%; }
}
.slider:hover .slider {
    animation-play-state: paused;
}
@media screen and (min-width: 768px) {
    .slider {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .slider img {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 768px){
    .slider {
        top: 100px;
    }
    
}



.tres{
    padding: 25px 20px;
    background-image: url(especialidades/fondo\ negro.png);
}

.titulo-cetpro{
    position: relative;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-top: 100px;
    color: white;
    background: linear-gradient(90deg, #4caf50, #1e88e5, #ff9800, #4caf50);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 5s infinite linear;
}

@keyframes gradient-move {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.guion{
    width: 50px;
    height: 2px;
    background-color: white;
    margin: 20px auto;
}

.nosotros{
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
    margin: 0 auto 20px;
    color: white;
}
.container-general{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}
.icono-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto); 
    gap: 15px;
    margin: auto;
    width: 100%;    
}
.icono-item{
    text-align: center;   
}
.icono-imagen{
    transition: transform 0.4s ease;
}
.parrafo{
    text-align: center;
    font-size: 18px;
    color: white;
}
.negrita{
    color: rgb(23, 133, 184);
    font-size: 20px;
}
.icono-imagen:hover {
    transform: translateY(-15px); 
}



@media (min-width: 768px) {
    .titulo-cetpro{
        padding-top: 40px;
        font-size: 2.5rem; 
        font-weight: bold;
        text-transform: uppercase;
        text-align: center;
        background: linear-gradient(90deg, #4caf50, #1e88e5, #ff9800, #4caf50);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: gradient-move 5s infinite linear;
        padding: 20px;
        margin: 20px;
    }
    .nosotros{
        font-size: 22px;
        line-height: 1.6;
        max-width: 1100px;
        text-align: center;   
    }

    .container-galeria{
        padding: 0 20px ;
    }
    .icono-container {
        grid-template-columns: repeat(3, 1fr); 
    }
    .imagen-container{
        margin: 20px;
    }
    

    @keyframes gradient-move {
        0% {
            background-position: 0% 50%;
        }
        100% {
            background-position: 100% 50%;
        }
    }
}

/*Section . galeria*/

.cuatro{
    display: flex;
    margin: auto;
    flex-direction: column;
    padding: 25px 20px;
}

.programa-estudios{
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-top: 15px;
    color: rgb(47, 191, 167);
    background: linear-gradient(90deg, #4caf50, #1e88e5, #ff9800, #4caf50);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 5s infinite linear;
}

.linea-media{
    width: 50px;
    height: 2px;
    background-color: black;
    margin: 20px auto;
}

.propuesta-educativa{
    font-size: 18px;
    line-height: 1.6;
    max-width: 600px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto 20px;
    color: black ;
}

.dos-carreras{
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    max-height: auto;
    max-width: 1200px;
    gap: 20px;
    margin: auto;
}

.carrera-imagen{
    position: absolute;
    display: grid;
    place-items: end center;
    position: relative;
    background-position: center;
    border-radius: 7px;
    height: 250px;
    background-size: cover;
    transition: all 0.3s ease;
    overflow: hidden;
    color: white; 
}

.carrera-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;  
    transition: transform 0.3s ease;
}

.carrera-imagen::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    background: linear-gradient(to bottom, rgba(28, 28, 28, .12) 15%, #1f1f1f 100%);
}

.imagen2{
    margin: 10px;
    bottom: 20px;
    position: absolute; 
    font-size: 26px;
    font-weight: bold;
}

.carrera-imagen:nth-child(1):hover::before {
    background: none;
}

.carrera-imagen:nth-child(2):hover::before {
    background: linear-gradient(to bottom,  transparent, rgb(8, 167, 196) 100%);
}
.carrera-imagen:nth-child(3):hover::before {
    background: linear-gradient(to bottom,  transparent, rgb(255, 30, 142) 100%);
}

/*imagen de galeria y bordes */
.carrera-imagen:nth-child(2) {
    border-top: 11px solid rgb(8, 167, 196);
}
.carrera-imagen:nth-child(3) {
    border-top: 11px solid rgb(255, 30, 142);
}

@media (min-width: 768px) {
    .dos-carreras{
        grid-template-columns: repeat(3, 1fr); 
    }
    .programa-estudios{
        font-size: 2.5rem; 
        font-weight: bold;
        text-transform: uppercase;
        text-align: center;
        background: linear-gradient(90deg, #4caf50, #1e88e5, #ff9800, #4caf50);
        background-size: 300% 300%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: text-color-shift 5s infinite linear;
        display: inline-block;
    }
    .linea-media{
        width: 50px;
        height: 2px;
        background-color: black;
        margin: 20px auto;
    }
    .propuesta-educativa{
        font-size: 20px;
        line-height: 1.6;
        max-width: 1000px;
        text-align: center;
        margin: 0 auto 25px;
    }
    .carrera-imagen{
        height: 230px;
        border-radius: 15px;
        text-align: left;
        padding-left: 10px;
        padding-bottom: 20px;
        display: grid;
        place-items: end start; 
    }
}

@keyframes text-color-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


.titulo-testimonio{
    padding-top: 40px;
    font-size: 24px; 
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    background: linear-gradient(90deg, #4caf50, #1e88e5, #ff9800, #4caf50);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-move 5s infinite linear;
}

@media (min-width: 768px) {
    .titulo-testimonio{
        font-size: 40px;
    }
    
}

.body-flex{
    margin: 0;
    padding: 20px;
    padding-bottom: 60px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.flip-card {
    margin: 20px;
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
  }
  
  .flip-card-front,
  .flip-card-back {
    width: 280px;
    min-height: 400px;
    height: 455px;
    background-color: #000000;
    background-image: url(nosotros/gradiente.png);
    background-size: cover;
    background-position: center;
    text-align: center;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  }
  
  .flip-card:nth-of-type(2) .flip-card-front,
  .flip-card:nth-of-type(2) .flip-card-back {
    background-image: url(nosotros/gradiente.png);
    
  }
  
  .flip-card:nth-of-type(3) .flip-card-front,
  .flip-card:nth-of-type(3) .flip-card-back {
    background-image: url(nosotros/gradiente.png);
  }
  
  .flip-card-front {
    transform: rotateY(0deg);
  }
  
  .flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
  }
  
  .flip-card-front::after,
  .flip-card-back::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.6;
  }
  
  .flip-card-front .inner,
  .flip-card-back .inner {
    width: 100%;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateZ(60px) scale(0.94);
    z-index: 2;
  }

  

  .inner .icon {
    padding-top: 10px;
    width: 200px;
    margin-bottom: 10px;
  }
  
  .inner h3 {
    margin-top: 0;
    margin-bottom: 2px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 40px;
    text-transform: capitalize;
  }
  
  .inner p {
    color: #ffffff;
    font-size: 16px;
    line-height: 20px;
    margin: 2px 2px;
  }

  .inner .mi-testimonio{
    color: white;
    font-weight: bold;
    font-size:18px ;
    line-height: 30px;
  }

  .inner .trabaja{
    color: rgb(0, 175, 240);
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 5px;
  }

  .inner .strong{
    color: rgb(0, 175, 240);
  }
  
  .flip-card:hover .flip-card-front {
    transform: rotateY(-180deg);
  }
  
  .flip-card:hover .flip-card-back {
    transform: rotateY(0deg);
  }


.footer {
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.footer-column1{
    padding-bottom: 20px;
}
.footer-column {
    margin-bottom: 20px;
    text-align: justify;
}

.footer-logo {
    width: 80px;
    margin-bottom: 10px;
}

.footer-direccion {
    font-size: 14px;
    line-height: 1.5;
}

.footer-links {
    list-style: none;
    padding: 0;
    text-align: start;
}

.footer-links li {
    margin: 10px 0;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
h3{
    color: #1e88e5;
    font-size: 1.3rem;
}

.social-link {
    color: #fff;
    text-decoration: none;
    width: 100%;
}
.div__redes{
    width: 100%;
    margin-bottom: 10px;

}

.social-link:hover {
    text-decoration: underline;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    
}

.whatsapp-btn:hover {
    background-color: #1ebe5b;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
}

@media (min-width: 768px) {
    .footer {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 40px;
    }

    .footer-column {
        flex: 1;
        margin: 0 20px;
    }

    .footer-logo {
        width: 200px;
        height: auto;
      }
    .footer-social {
        flex-direction: row;
        gap: 15px;
    }

    .footer-bottom {
        font-size: 12px;
        width: 100%;
    }
    .footer-column1{
        padding-left: 10px;
        margin: 10px;
    }
    .footer-column {
        margin: 10px;
        text-align: justify;
    }
}


