/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Estilos del encabezado */
header {
    background-color: #333;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

header div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}
header li {
    list-style: none;
    text-decoration: none;
    display: inline;
    padding-right: 60px;
    padding-left: 80px;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

header li a {
    text-decoration: none;
    color: white;
}

header li a:hover {
    color: #f4b400;
}



header li:hover {
    color: #f4b400;
}

/* Estilos del contenido principal */
main {
    width: 90%;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificates, .university {
    background-color: white;
    padding: 20px;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1800px;
}

h3 {
    font-size: 32px;
    text-align: center;
    color: #444;
}

.cert-list, .Uny-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

.cert-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 15px;
    max-width: 300px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.cert-card:hover {
    transform: scale(1.05);
}

.cert-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.cert-image {
    width: 100%;
    height: 300px;
    border-radius: 5px;
    object-fit: cover;
}

/* Estilos del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 5px;
}

.close-btn {
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #ff4d4d;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.close-btn:hover {
    background-color: #cc0000;
}

/* Estilos responsivos */
@media (max-width: 800px) {
    header {
        flex-direction: column;
        align-items: center;
    }
    
    main {
        width: 95%;
    }

    .certificates, .university {
        width: 100%;
    }
}

@media (max-width: 767px) {
    header {
        font-size: 14px;
    }
    header div{
        align-items: center;
    }
    header div ul{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    header li{
        padding-right: 79px;
        padding-left: 50px;
    }
    
    
    .certificates, .university {
        padding: 15px;
    }
    .cert-card{
        max-width: 100%;
    }
}