/* =============================
   tarot-style.css
   Efectos de superposición
   y giro al hacer hover o clic
============================= */

.tarot-card-flip-container {
    perspective: 1000px;
    width: 100%;
    max-width: 300px;
    height: 500px;
    margin: 20px auto;
}

.tarot-card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.tarot-card-flip-container.flipped .tarot-card-flip {
    transform: rotateY(180deg);
}

.tarot-card-flip .front,
.tarot-card-flip .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

.tarot-card-flip .front {
    z-index: 2;
}

.tarot-card-flip .back {
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.front .tarot-card-container {
    width: 100%;
    height: 100%;
    position: relative;
    backface-visibility: hidden;
}

.front .tarot-card-container .card1 {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translate(-10px, -10px) rotate(-5deg);
    z-index: 4;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
}

.front .tarot-card-container .card1 .frame-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 2;
    backface-visibility: hidden;
}

.front .tarot-card-container .card1 .content-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    z-index: 1;
    backface-visibility: hidden;
}

.front .tarot-card-container .card1 .vip-circle {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 50px;
    height: 50px;
    background-color: #ffcc00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    z-index: 3;
    backface-visibility: hidden;
}

.front .tarot-card-container .card1 .name-top {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 24px;
    text-shadow: 1px 1px 2px #000;
    z-index: 3;
    backface-visibility: hidden;
}

.front .tarot-card-container .card1 .number-circle {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: #ffcc00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    z-index: 3;
    backface-visibility: hidden;
}

/* icon-bottom => QUITAMOS el círculo blanco y hacemos que la imagen sea más grande */
.front .tarot-card-container .card1 .icon-bottom {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    backface-visibility: hidden;
    /* Eliminado background-color: #fff; y border-radius: 50%; */
}

/* Aumentar la imagen del arquetipo */
.front .tarot-card-container .card1 .icon-bottom img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Carta trasera superpuesta (card2) */
.front .tarot-card-container .card2 {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: translate(10px, 10px) rotate(5deg);
    z-index: 2;
    transition: transform 0.3s ease;
    backface-visibility: hidden;
}

.front .tarot-card-container .card2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    backface-visibility: hidden;
}

.front .tarot-card-container:hover .card1 {
    transform: translate(-15px, -15px) rotate(-10deg);
}

.front .tarot-card-container:hover .card2 {
    transform: translate(15px, 15px) rotate(10deg);
}

.tarot-card-back-content {
    background-color: rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
    color: #fff;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.tarot-card-back-content h2 {
    margin-bottom: 10px;
    font-size: 24px;
}

.tarot-card-back-content .stats {
    margin: 15px 0;
}

.tarot-card-back-content .stats p {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

.tarot-card-back-content .stats p span {
    font-weight: bold;
}

/* Imagen grande del arquetipo en la parte trasera */
.arquetipo-back-image {
    margin-bottom: 10px;
}

.back-buttons {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.back-buttons button {
    padding: 10px 20px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    flex: 1;
}

.back-buttons button:hover {
    background-color: #ffdd33;
}
