#principal .contenedor {
    display: flex;
    flex-wrap: wrap;
}

#principal > .contenedor > h1, #principal > .contenedor > p {
    width: 100%;
}

.contenedor > p {
    width: 100%;
    max-width: 900px;
    text-align: justify;
    padding-bottom: 30px;
    margin-left: auto;
    margin-right: auto;
}

.botones {
    margin-top: 15px;
    width: 33.33%;
    text-align: center;
    border-radius: 10px 10px 0 0;
    border: 0px solid rgb(39, 39, 39);
    padding: 5px;
    font-size: 13px;
    text-decoration: none;
    background: linear-gradient(rgba(1, 43, 105, 0.849),rgba(0, 101, 160, 0.959));
    color: white;
}

/*.botones a:target {
    background: linear-gradient(rgba(12, 112, 151, 0.959),rgba(111, 169, 202, 0.959));
}*/

#uno:target, #dos:target, #tres:target {
    background: linear-gradient(rgba(12, 112, 151, 0.959),rgba(111, 169, 202, 0.959));
}

#uno:target ~ #desktop, #dos:target ~ #nube, #tres:target ~ #complementarias {
    display: flex;
}

.botones:hover {
    font-weight: bold;
    font-style: italic;
    background: linear-gradient(rgba(0, 75, 189, 0.849),rgba(0, 153, 241, 0.959));  
}

#desktop, #nube, #complementarias {
    width: 100%;
    border: 1px solid rgb(206, 206, 206);
    padding: 15px;
    animation: aparecer;
    animation-duration: 1s;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
}

.item {
    width: 100%;
    margin-bottom: 30px;
    text-align: center;
}

.item img {
    width: 168.5px;
    height: 182px;
    margin-left: auto;
    margin-right: auto;
}

.item p {
    margin: 8px auto 15px auto;
    width: 100%;
    text-align: justify;
}

.item a, .item button {
    padding: 5px 15px;
    margin: 15px 10px;
    border-radius: 5px;
    border: 1px solid rgb(10, 78, 95);
    background: white;
    color:rgb(10, 78, 95);
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

.item a:hover, .item button:hover {
    background: rgb(10, 78, 95);
    cursor: pointer;
    color: white;
}

@keyframes aparecer {
    from {opacity: 0;}
    to {opacity: 1;}
}

@media(min-width:700px) {
    .item {
        width: 300px;
        padding: 0 15px;
    }

    .botones {
        font-size: 20px;
        letter-spacing: 2px;
        width: 31.33%;
        margin-left: 1%;
        margin-right: 1%;
        font-weight: 500;
    }
}

/*VIDEOS*/

.cover-video {
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    z-index: 105;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    align-items: center;
    justify-content: center;
    display: none;
    width: 100%;
    height: 100%;
}

.cerrar {
    position: absolute;
    top: 20px;
    right: 10px;
    color: white;
    text-align: right;
    margin-bottom: 10px;
    font-size: 40px;
    font-weight: bold;
    padding-right: 20px;
    cursor: pointer;
    width: fit-content;
}

.cerrar:hover {
    opacity: 0.5;
}

iframe, video {
    width: 320px;
    height: 180px;
}

@media(min-width: 480px) {
    iframe, video {
        width: 480px;
        height: 270px;
    }
}

@media(min-width: 800px) {
    iframe, video {
        width: 800px;
        height: 450px;
    }
}

@media(min-width: 1040px) {
    iframe, video {
        width: 1040px;
        height: 585px;
    }
}
