* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
    
}

html::-webkit-scrollbar {
    display: none;
}

.info-contact img{
    width: 20%;
    
}


.header {
    min-height: 10vh;
    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: 100%;
}

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 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;
}

.campus,
.campus-2 {
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 20px;
    margin-bottom: 1%;
    
    
}

.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: 1%;
    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;
}

.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: 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: left;
}

.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 (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;
    }

    .row-2 {
        flex-direction: column;
    }

    .campus-col {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    .footer {
        flex-direction: column;
    }

    .info-contact {
        flex: 1 1 100%;
        margin: 10px 0;
    }
}
@media (hover: none){
    .layer {
        background: transparent;
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        transition: 0.5s;
        background: #0000006c;
    }
 
    
    
    .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: 25%;
        opacity: 1;
    }

 }