* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none;
}

/* Header */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4, 9, 30, 0.7), rgba(4, 9, 30, 0.7)), url(Images/torno.jpeg);
    background-position: center;
    background-size: cover;
    position: relative;
}

nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
}

nav img {
    width: clamp(80px, 15vw, 100px);
    height: auto;
}

.nav-links {
    flex: 1;
    text-align: right;
}

.nav-links ul {
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: clamp(12px, 1.5vw, 15px);
}

.nav-links ul li::after {
    content: '';
    width: 0;
    height: 2px;
    background: #1e93e1;
    display: block;
    margin: auto;
    transition: 0.5s;
}

.nav-links ul li:hover::after {
    width: 100%;
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.hamburger:hover {
    color: #1e93e1;
}

.text-box {
    width: 90%;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: clamp(24px, 5vw, 38px);
    margin-bottom: 22px;
    padding-bottom: 5%;
    padding-top: 5%;
}

.text-box p {
    margin: 10px 0 40px;
    font-size: clamp(15px, 2vw, 16px);
    padding-bottom: 5%;
}

.hero-btn {
    display: inline-block;
    text-decoration: none;
    color: white;
    border: 1px solid white;
    padding: 20px 40px;
    font-size: clamp(18px, 1.5vw, 16px);
    background: transparent;
    cursor: pointer;
    transition: all 1s;
}

.hero-btn:hover {
    border: 1px solid #1f71a7;
    background: #186aa0;
}

/* Campus Section */
.campus {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 4%;
}

.campus h1 {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 10px;
}

.campus p {
    font-size: clamp(14px, 1.8vw, 16px);
    margin-bottom: 20px;
}

.row-2 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 3%;
    margin-bottom: 3%;
}

.campus-col {
    flex: 1 1 30%;
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.campus-col img {
    width: 100%;
    height: auto;
    display: block;
}

.layer {
    background: transparent;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: 0.5s;
}

.layer:hover {
    background: #000000a1;
}

.layer h3 {
    width: 100%;
    font-weight: 500;
    color: #fff;
    font-size: clamp(16px, 2.5vw, 26px);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: 0.5s;
}

.layer:hover h3 {
    bottom: 49%;
    opacity: 1;
}

/*----------------------------------------------------------*/

.sobrenosotros img{
    padding-top: 4%;
    padding-bottom: 4%;
    padding-left: 5%;
    padding-right: 5%;
    width: 550px;
    float: left;
    align-self: center;
    
}
.sobrenosotros {

    background-color: #013c6e;
}

.sobrenosotros h1{
    color: white;
    padding-top: 4%;
    padding-left: 5%;
    padding-right: 5%;
    margin-bottom: 1%;

}

.sobrenosotros p {
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 5%;
    text-align: justify;
    color: white;
}

@media (max-width: 1024px) {
    .sobrenosotros img{
        
        width: 100%;
    }


}

/*--------------------------------------------------------*/

.servicios-btn {
    display: inline-block;
    text-decoration: none;
    color: black;
    border: 1px solid black;
    padding: 12px 80px;
    font-size: clamp(12px, 1.5vw, 16px);
    background: transparent;
    cursor: pointer;
    transition: all 0.5s;
}

.servicios-btn:hover {
    background: #186aa0;
    color: white;
    border-color: #1f71a7;
}

/* Us (Nosotros) Section */
.us {
    width: 100%;
    text-align: center;
    padding: 30px 0 10px;
    background-color: rgba(226, 232, 247, 0.514);
    
}

.us h2{

    font-size: 18px;
    margin-top: 1%;

}
.us h1 {
    font-size: clamp(24px, 4vw, 32px);
    padding-top: 40px;
    display: flex;
    padding-left: 8%;

}

.us p {
    padding: 2% 3%;
    font-size: clamp(14px, 1.8vw, 16px);
}


.row,
.row-2 {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 2%;
    margin-top: 4%;
}

.valores {
    flex: 1 1 30%;
    background: #c5e2f6;
    border-radius: 10px;
    padding: 20px 8px;
    transition: 0.5s;
}

.valores:hover {
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.2);
}

.valores img {
    width: clamp(40px, 10vw, 50px);
    height: auto;
    margin-bottom: 10px;
}



.valores h3 {
    font-size: clamp(16px, 2vw, 20px);
    padding: 2% 5%;
}


.footertitle {
    background-color: black;
    padding: 1% 0;
}

.footertitle h4 {
    font-size: clamp(20px, 2vw, 15px);
    color: white;
    text-align: center;
    margin: 0;
}

p {
    font-size: clamp(15px, 2vw, 15px);
    color: white;
    text-align: center;
    margin: 0;
}

.info-contact p {
    font-size: clamp(15px, 2vw, 15px);
    color: white;
    text-align: left;
    margin: 0;
}

footer {
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 10px 2%;
    gap: 20px;
    text-align: center;
}

.footer {
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 60px 20%;
    gap: 20px;
    text-align: left;
}

.info-contact {
    flex: 1 1 30%;
}

.info-contact img{
    width: 10%;
    
}

.mapa {
    width: 60%;
    padding: 0 60px;
}

.mapa iframe {
    width: 150%;
    height: 200px;
}

.footer p {
    font-size: clamp(15px, 1.5vw, 14px);
    color: white;
    margin: 20px 10px;
}

.info-contact a {
    color: white;
    text-decoration: none;
}

/* Media Queries */
@media (max-width: 1024px) {
    .header {
        min-height: 80vh;
    }

    .nav-links ul li {
        padding: 8px 10px;
    }

    .hero-btn {
        padding: 30px 50px;
    }

    .servicios-btn {
        padding: 20px 40px;
    }
}


@media (max-width: 768px) {
    .hamburger {
        display: block;
        order: 2;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -250px;
        width: 250px;
        height: 100vh;
        background: linear-gradient(135deg, #013c6e 5%, #1478dc 100%);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        text-align: center;
        padding-top: 80px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul li {
        display: block;
        padding: 20px 0;
        opacity: 0;
        transform: translateX(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active ul li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links ul li a {
        font-size: 18px;
        padding: 10px 20px;
        display: block;
        transition: color 0.3s ease;
    }

    .nav-links ul li a:hover {
        color: #1e93e1;
    }

    .text-box {
        padding-top: 20px;
    }

    .row,
    .row-2,
    .footer {
        flex-direction: column;
    }

    .campus-col,
    .valores,
    .info-contact {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    .hero-btn,
    .servicios-btn {
        padding: 12px 40px;
    }
}

@media (max-width: 480px) {
    .header {
        min-height: 100vh;
    }

    .text-box h1 {
        font-size: clamp(25px, 4vw, 30px);
    }

    .hero-btn {
        padding: 20px 45px;
        font-size: clamp(16px, 1.5vw, 14px);
    }
    .servicios-btn {
        padding: 15px 25px;
        font-size: clamp(13px, 1.5vw, 14px);
    }

}

@media (hover: hover){
    .layer {
        background: transparent;
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
       
    }
    
    .layer:hover {
        background: #000000a1;
    }
    
    .layer h3 {
        width: 100%;
        font-weight: 500;
        color: #fff;
        font-size: clamp(16px, 2.5vw, 26px);
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        
    }
    
    .layer:hover h3 {
        bottom: 49%;
        opacity: 1;
    }
}

@media (hover: none){
    .layer {
        background: transparent;
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        transition: 0.5s;
        background: #0000005d;
    }
    
    
    .layer h3 {
        width: 100%;
        font-weight: 500;
        color: #fff;
        font-size: clamp(16px, 2.5vw, 26px);
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
    
    }
    
    .layer h3 {
        bottom: 49%;
        opacity: 1;
    }

    
@media screen and (max-width:800px) {
    .quienesomo {
        width: 100%;
    }

    .mapa {
    width: 60%;
    margin-left: -15px;
    padding: 0 0;
    }

    .mapa iframe {
    width: 190%;
    height: 200px;
    }
    
}
}
