* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

header {
    display: flex;
    align-items: center;
    /*logo*/
    justify-content: space-between;
    padding: 2rem;
    background-color: black;
}

.logo2 {
    max-width: 10rem;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 1rem;
}

.nav-list li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

.abrir-menu,
.cerrar-menu {
    display: none;
}

.container {
    display: flex;
    width: auto;
    align-items: center;
    flex-direction: column;
    margin-top: 20px;
    text-align: center;
}

.imagen_itv {
    max-width: 400px;
    max-height: 300px;
    object-fit: cover;
    border-radius: 20px;
}

.texto-sobre-imagen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    /* Fondo semitransparente para el texto */
    padding: 10px;
    border-radius: 5px;
}

.container>a {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    /* Espacio entre los enlaces */
}

.texto-link {
    font-size: 24px;
    color: rgb(38, 0, 255);
    text-align: center;
    margin-top: 20px;
}

@media screen and (max-width: 550px) {

    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: 0;
        font-size: 3rem;
        background-color: transparent;
        cursor: pointer;
        color: white;
    }

    .nav {
        opacity: 0;
        visibility: hidden;

        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: black;
        padding: 2rem;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.8);
        opacity: 1;

    }

    .nav-visible {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: end;
    }

    .nav-list li a {
        color: white;
    }

    

    
}