* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: montserrat;
}


body {
    background-image: url('../images/fondo1.jpg');
    background-size: cover;
    background-position: center;
}


.wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

h2 {
    text-align: center;
    margin-top: 10%;
    font-size: 50px;
    color: black;
    /* padding-bottom: 0; */
    /* border-bottom: 1px solid #ccc; */
    margin-left: 0%;
    margin-bottom: -7%;
}

.container {
    height: 500px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: start;
}

.card {
    width: 80px;
    border-radius: .75rem;
    background-size: cover;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2rem;
    margin: 0 10px;
    display: flex;
    align-items: flex-end;
    transition: .6s cubic-bezier(.28, -0.03, 0, .99);
    box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
}

.card>.row {
    color: white;
    display: flex;
    flex-wrap: nowrap;
}

.card>.row>.icon {
    background: #223;
    color: white;
    border-radius: 50%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.card>.row>.description {
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 80px;
    width: 520px;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: .3s;
    transition: all .3s ease;
}

.description p {
    color: #b0b0ba;
    padding-top: 5px;
}

.description h4 {
    text-transform: uppercase;
}

input {
    display: none;
}

input:checked+label {
    width: 600px;
}

input:checked+label .description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.card[for="c1"] {
    background-image: url('../images/galeria/images_dron/FORMACION-B.png');
}

.card[for="c2"] {
    background-image: url('../images/galeria/images_dron/FORMACION-C.jpg');
}

.card[for="c3"] {
    background-image: url('../images/galeria/images_dron/90-B.jpg');
}

.card[for="c4"] {
    background-image: url('../images/galeria/images_dron/PREVIO.jpg');
}

.card[for="c5"] {
    background-image: url('../images/galeria/images_dron/90-A.jpg');
}

.card-v {
    width: 80px;
    border-radius: .75rem;
    cursor: pointer;
    overflow: hidden;
    border-radius: 2rem;
    margin: 0 10px;
    display: flex;
    align-items: flex-end;
    transition: .6s cubic-bezier(.28, -0.03, 0, .99);
    box-shadow: 0px 10px 30px -5px rgba(0, 0, 0, 0.8);
    position: relative;
    /* Añadido para el video */
}

.card-v>.row-v {
    color: white;
    display: flex;
    flex-wrap: nowrap;
    z-index: 2;
    /* Asegura que el contenido de la tarjeta esté por encima del video */
}

.card-v>.row-v>.icon-v {
    background: #223;
    color: white;
    border-radius: 50%;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px;
}

.card-v>.row-v>.description-v {
    display: flex;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 80px;
    width: 520px;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: .3s;
    transition: all .3s ease;
}

.descriptionv-v p {
    color: #b0b0ba;
    padding-top: 5px;
}

.description-v h4 {
    text-transform: uppercase;
}

input {
    display: none;
}

input:checked+label {
    width: 600px;
}

input:checked+label .description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.card-v[for="c6"] video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    /* Asegura que el video esté detrás del contenido de la tarjeta */
}


@media (max-width: 768px) {
    .wrapper {
        padding: 10px;
        /* Reducir el padding alrededor del contenido */
        display: flow;
    }

    h2 {
        font-size: 24px;
        margin-bottom: -90px;
        margin-top: 165px;
    }

    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 30%;
    }

    .card,
    .card-v {
        width: 100%;
        /* Ocupar todo el ancho disponible */
        margin: 10px 0;
        /* Espaciado entre tarjetas */
        position: relative;
        /* Añadido para posicionar la descripción */
    }

    .card>.row,
    .card-v>.row-v {
        flex-direction: column;
        /* Alinear el contenido en columna */
        align-items: center;
        /* Centrar el contenido horizontalmente */
        text-align: center;
        /* Alinear el texto al centro */
        width: 100%;
    }

    .card>.row>.description,
    .card-v>.row-v>.description-v {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        /* background-color: rgba(0, 0, 0, 0.8); */
        padding: 10px;
        box-sizing: border-box;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        color: white;
    }


    .card:hover>.row>.description,
    .card-v:hover>.row-v>.description-v {
        transform: translateY(0);

    }

    .card>.row>.icon {
        background: #223;
        color: white;
        border-radius: 50%;
        width: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 16px;
    }

    input:checked+label {
        width: 400px;
        height: 600px;
    }

    .card-v>.row-v>.icon-v {
        background: #223;
        color: white;
        border-radius: 50%;
        width: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 15px;
    }

    input[type="radio"]#c1:checked+label[for="c1"].card,
    input[type="radio"]#c2:checked+label[for="c2"].card,
    input[type="radio"]#c3:checked+label[for="c3"].card,
    input[type="radio"]#c4:checked+label[for="c4"].card,
    input[type="radio"]#c5:checked+label[for="c5"].card {
        background-size: 100% 100%;
        background-repeat: no-repeat;
        background-position: center;
    }

}