body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color:#252850;
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    margin: auto;
    position: relative;
    left: -20px;
}
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}


nav ul ul.submenu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    list-style: none;
    padding: 0;
    margin-top: 1rem;
    border-radius: 5px;
    box-shadow: 0 8px 16px rgb(0, 0, 0);
    width: 200px; 
}


nav ul li:hover > ul.submenu {
    display: block;
}

nav ul ul.submenu li {
    width: 80%;
    text-align: left;
    padding: 0.5rem 1rem;
}

nav ul ul.submenu a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    display: block;
}

nav ul ul.submenu a:hover {
    background-color: #aca2a22c;
}


footer {
    background-color: #252850;
    color: white;
    padding: 1rem;
    text-align: center;
    margin-top: 100px;
}
.social-links {
    margin-top: 30px;
}
.social-links a {
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s;
}
.social-links a:hover {
    color: #FFC107;
}

.foot{
    color: white;
    margin: 0 0.5rem;
}

.cta-button {
    background-color: #FFC107;
    color: #000;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}
.cta-button:hover {
    background-color: #FFA000;
}


@media (max-width: 768px) {
    header {
        height: auto;
    }
    header.menu-open {
        height: 100vh;
        overflow-y: auto;
    }
    nav {
        flex-direction: column;
        align-items: center;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        display: none;
    }
    header.menu-open nav ul {
        display: flex;
    }
    nav li {
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
    }
    .toggle-btn {
        display: block;
    }
    .content-wrapper {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7) 70%, rgba(0,0,0,0));
        align-items: center;
        padding-bottom: 20%;
    }
    .content {
        max-width: 100%;
        text-align: center;
    }
    header.menu-open .logo {
        display: none;
    }
    header.menu-open nav ul {
        margin-top: 2rem;
    }
    
    .cta-button {
        background-color: #40E0D0;
        color: #000;
        display: inline-block;
        margin-top: 1rem;
    }

    .toggle-btn {
        display: block; 
        position: fixed;
        border-radius: 10px;
        top: 1rem;
        right: 1rem;
        z-index: 1001;
        background-color: #ffffff;
        color: rgb(0, 0, 0);
        border: none;
        padding: 1.5rem 1.5rem;
        cursor: pointer;
        box-shadow: 3px 5px rgba(0, 0, 0, 0.5);
        transition: transform 0.2s ease, box-shadow 0.2s ease; 
    }
    
    .toggle-btn:active {
        transform: scale(0.95); 
        box-shadow: 5px 5px rgba(0, 0, 0, 0.3);
    }

    nav ul ul.submenu {
        display: none;
    }
    nav ul li:active > ul.submenu, 
    nav ul li:focus > ul.submenu {
        display: block; 
    }

    .logo{
        position: relative;
        left: -50px;
    }
    
    .logo img{
        position: relative;
        left: 0;
    }
    .name_programa{
        text-align: center;
        font-size: 15px
    }
}

/* Programas*/

.sub-programas{
    margin: auto;
    padding: auto;
    height: auto;
    width: 40%;
    padding: 20px;
    box-shadow:
    inset 0 -3em 3em rgba(219, 65, 65, 0.1),
    0.3em 0.3em 1em rgba(0, 0, 0, 0.3);
    background-color: #ffffff;
    justify-content: center;
    transition: transform 0.3s; 
    display: block; 
    margin-top: 150px;
}

.sub-programas:hover{
    transform: scale(1.2);
}


.img-udelc{
    width: 100%;
    display: block; 
    margin: 0 auto;
    margin-top: 30px;
}

.titulos-sub-programas{
    font-size: 18px;
    text-align: center;
    margin-top: 35px;
}

.bton {
    background-color: rgb(79, 206, 79);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 15px;
}
.bton:hover {
    background-color: #020250;
}

.bton-text{
    width: 80%;
    text-decoration: none;
    color: #ffffff;
}

.bton-escuadron-ciencia{
    background-color: rgb(75, 165, 224);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 15px;
}

.bton-escuadron-ciencia:hover{
    background-color: rgb(12, 230, 23);
}

.bton-reto-speed{
    background-color: rgb(45, 143, 20);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    text-align: center;
    margin-top: 80px;
    margin-bottom: 15px;
}

.bton-reto-speed:hover{
background-color: rgb(255, 0, 0);
}

@media (max-width: 768px){
    .toggle-btn {
        font-size: 25px;
    }
}

