* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, sans-serif;
}

body {
    background-color: rgb(80, 3, 110);
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
}

.gracias {
    background-color: aquamarine;
    height: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: rgb(80, 3, 110);
    text-align: center;
}

.card {
    position: relative;
    width: 350px;
    height: 400px;
    margin: 20px;
    perspective: 1000px;
}

.card .face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    transition: transform 2s;
    overflow: hidden;
}

.card .front {
    transform: perspective(600px) rotateY(0deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.card .front img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.card .front h3 {
    position: absolute;
    width: 100%;
    bottom: 0;
    height: 45px;
    line-height: 45px;
    background-color: rgba(192, 189, 185, 0.8);
    border-radius: 0 0 15px 15px;
    text-align: center;
    margin: 0;
    font-size: 1.2rem;
    color: #000;
}

.card .back {
    display: flex;
    padding: 15px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transform: perspective(600px) rotateY(180deg);
    background-color: black;
    color: #f3f3f3;
    text-align: center;
    overflow-y: auto;
}

.card .back h3 {
    letter-spacing: 1px;
    height: 45px;
    line-height: 45px;
    margin: 0;
    font-size: 1.2rem;
}

.card .back p {
    letter-spacing: 1px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

.card .back .link {
    height: 45px;
    line-height: 45px;
    width: 100%;
    border-top: 1px solid #f3f3f3;
    flex-shrink: 0;
}

.card .back .link a {
    color: aquamarine;
    text-decoration: none;
}

.card:hover .front {
    transform: perspective(600px) rotateY(180deg);
}

.card:hover .back {
    transform: perspective(600px) rotateY(360deg);
}

/* Estilos para details */
details {
    margin-top: 10px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
}

details summary {
    font-weight: bold;
    color: aquamarine;
}

details[open] {
    background-color: rgba(255, 255, 255, 0.2);
}

details img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-top: 10px;
    border-radius: 10px;
    border: 2px solid aquamarine;
}