*{
    box-sizing: border-box;
    font-family: 'QuanSlimBlack', sans-serif;
}

body{
    margin: 0;
    background-color: white; 
}

/*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-weight: bold;
        font-size: 20px;
        animation: cambiar-color-letras 0.3s forwards;
    }
    .link:hover {
        color: rgb(42, 169, 228);
    }
    .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);
        
    }
}


.portada-nosotros{
    position: relative;
	width: 100%;
    height: 100%;
    margin: -100px auto 0;
	overflow: hidden;
    padding-bottom: 20px;
}

.portada-nosotros nosotros-img {
	display: flex;
	padding: 0;
	width: 100%;
	animation: cambio 15s infinite linear;
}
.portada-nosotros img {
	width: 100%;
    height: 300px;
	list-style: none;
}

.nosotros-img::before {
    position: absolute;
    width: 100%;
    height: 100%;
    content: '';
    background: linear-gradient(to bottom, rgba(28, 28, 28, .12) 15%, #1f1f1f 100%);
}

.portada-nosotros .nosotros-text{
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    min-width: 250px;
    text-align: center;
    color: white; 
    font-size: 18px;
    padding: 10px;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.7), -2px -2px 5px rgba(0, 0, 0, 0.7);
}

@media screen and (min-width: 768px) {
    .portada-nosotros {
        position: relative;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }
    .portada-nosotros img {
        width: 100%;
        height: 630px;
    }
    
    .portada-nosotros .nosotros-text{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        max-width: 1000px;
        text-align: center;
        color: white; 
        font-size: 40px;
        padding: 0 10px;
        text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.7), -2px -2px 5px rgba(0, 0, 0, 0.7);
    }
}

@media screen and (max-width: 768px){
    .portada-nosotros {
        top: 100px;
    }
    
}



.contenedor-uno{
    position: relative;
    padding-top: 100px;
}
.uno{
    position: relative;
    padding-top: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    gap: 30px;
}

.uno-uno{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.icono-comillas{
    width: 50px;
    height: 50px;
}

.uno-text{
    font-size: 28px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.cetpro img {
    max-width: 100%;
    height: 260px;
    border-radius: 10px;
}

/* Estilo para pantallas de ordenador */
@media screen and (min-width: 768px) {
    .contenedor-uno{
        display: flex;
        padding-top: 40px;
        justify-content: center; 
        align-items: center; 
        width: 100%;
    }
    
    .uno {
        display: flex;
        flex-direction: row;
        padding: 40px;
        justify-content: center; 
        max-width: 1100px;
        width: 100%;
    }

    .uno-uno {
        flex: 1;
        text-align: left;
    }

    .cetpro {
        flex: 1;
        text-align: center;
    }
    .cetpro img{
        height: 300px;
        width: 1000px;
    }

    .uno-text {
        font-size: 28px;
        line-height: 1.3;
        text-align: center;
    }
    .icono-comillas{
        width: 70px;
        height: 70px;
    }
}

.container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.card {
    display: flex;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-width: 350px;
    width: 100%;
}

.card img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card h3 {
    color: red;
    margin: 0 0 10px 0;
    font-size: 20px;
}

.card p {
    font-size: 17px;
    color: #333;
    margin: 0;
}

@media (min-width: 768px) {
    .container {
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        padding-bottom: 10px;
    }

    .card {
        margin: 0 20px;
        max-width: 550px;
        border: none;
    }

    .card img {
        width: 100px;
        height: 100px;
        margin-right: 15px;
    }

    .card p {
        font-size: 17px;
        color: black;
        margin: 0;
    }

    .card h3 {
        font-size: 25px;
    }
}


.valores-3{
    padding: 25px 20px;
}

.valores-titulo{
    position: relative;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-top: 20px;
    color: black;
}

.guion{
    width: 80px;
    height: 5px;
    background-color: red;
    margin: 20px auto;
}

.valores-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: auto;
}

.iconos-contenedor {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto); 
    gap: 15px;
    margin: auto;
    width: 100%;    
}

.iconos-valores{
    text-align: center;   
}

.contenedor-imagen{
    transition: transform 0.4s ease;
    max-width: 100%;
}

.valores-imagen{
    height:70px ;
    width: 70px ;
  
}

.contenedor-texto{
    margin: 10px;
}

.texto-valores{
    color: black;
    font-size: 20px;
}

.iconos-valores:hover {
    transform: scale(1.2);
}

@media screen and (min-width: 768px){
    .valores-3{
        padding-bottom: 50px;
    }
    .valores-titulo{
        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;
        
    }
    
    .icono-container {
        grid-template-columns: repeat(3, 1fr); 
    }

    .iconos-contenedor{
        grid-template-columns: repeat(4, 1fr); 
    }

    .valores-imagen{
        height:100px ;
        width: 100px ;
    }   
}

@keyframes gradient-move {
        0% {
            background-position: 0% 50%;
        }
        100% {
            background-position: 100% 50%;
        }
}

.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;
    }
}

