/* ===== Tarjeta animada preview ===== */
.checkout-card-preview {
    perspective: 1000px;
    margin: 0 auto 2rem auto;
    max-width: 400px;
    width: 100%;
}

.checkout-card {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Mantener proporción */
    border-radius: 15px;
    background: linear-gradient(135deg, #056a86ff, #032e61ff);
    color: white;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.8s;
    transform-style: preserve-3d;
    position: relative;
    font-size: clamp(0.7rem, 2vw, 1rem);
    /* Escala de fuente adaptable */
}

.checkout-card.flipped {
    transform: rotateY(180deg);
}

.checkout-card .front,
.checkout-card .back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    padding: 20px;
}

.checkout-card .back {
    background: linear-gradient(135deg, #056a86ff, #032e61ff);
    transform: rotateY(180deg);
}

.checkout-chip {
    width: 12%;
    max-width: 50px;
    aspect-ratio: 4 / 3;
    background: #ee9e00ff;
    border-radius: 5px;
    margin-bottom: 0.3rem;
}

.checkout-number {
    letter-spacing: 3px;
    margin-bottom: 1rem;
    white-space: nowrap;
    /* Mantener en una sola línea */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Holder + Expiry mejor distribuidos */
.checkout-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-right: 10px;
    /* Que no quede pegado al borde */
}

.checkout-holder {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
}

.checkout-expiry {
    font-size: clamp(0.7rem, 2vw, 0.9rem);
    padding-right: 15px;
}

.checkout-cvv {
    font-size: clamp(1rem, 3vw, 1.2rem);
    text-align: right;
}


/* ===== Ajustes responsive ===== */
@media (max-width: 480px) {
    .checkout-card {
        padding: 15px;
    }

    .checkout-chip {
        margin-bottom: 0.3rem;
    }

    .checkout-number {
        letter-spacing: 2px;
    margin-bottom: 0.5rem;
    }
}