* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-image: url('../img/fond.jpg'); /* Cambia la ruta por la de tu imagen */
    background-size: cover;
    background-position: center;
}

/*modificar posicion de las atrjetas*/

.card {
    position: relative;
    width: 220px;
    height: 320px;
    margin: 20px;
    padding: 110px 0px 30px 0px;
}

.card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    overflow: hidden;
    transition: .5s;
}

.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 5px 10px #000;
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .front h3 {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 45px;
    line-height: 45px;
    color: #fff;
    background: rgba(0,0,0,.4);
    text-align: center;
}

/*config lado trasero de la tarjeta*/
.card .back {
    transform: perspective(600px) rotateY(180deg);
    background: #034692;
    padding: 15px;
    color: #f3f3f3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 5px 10px #000;
}

.card .back .link {
    border-top: solid 1px #f3f3f3;
    height: 50px;
    line-height: 50px;
}

.card .back .link a {
    color: #f3f3f3;
}

.card .back h3 {
    font-size: 30px;
    margin-top: 20px;
    letter-spacing: 2px;
}

.card .back p {
    letter-spacing: 1px;
} 

.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
}

 .icons {
    padding: 0px 370px 40px 350px;
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    gap: 30px; /* Espacio entre iconos */
}

.icons i {
    font-size: 25px;
    color: #0a2a43;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.icons i:hover {
    background-color: #fefefe;
    color: #2180b0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Responsive para pantallas menores a 600px */
@media (max-width: 600px) {
    body {
        background-size: cover; /* O usa un porcentaje, por ejemplo: 80% */
        background-repeat: no-repeat;
        background-position: center top;
    }
    .icons {
        padding: 20px 0 50px 0;
        margin-top: 30px;
        gap: 15px;
        justify-content: center;
    }
    .icons i {
        height: 40px;
        width: 40px;
        font-size: 18px;
    }

    .card {
        padding: 20px 0 20px 0; /* Ajusta estos valores según lo que necesites */
    }
}