.pf-stack-termos {
    position: relative;
    width: 220px;
    height: 450px;
    margin: auto;
}

/* TODAS LAS CARTAS ENCIMADAS */
.pf-card {
    position: absolute;
    inset: 0;

    border-radius: 18px;
    overflow: hidden;

    opacity: 0;
    transform: scale(0.9);
    transition: all 0.5s ease;

    z-index: 1;
}

/* IMAGEN */
.pf-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CARTA ACTIVA */
.pf-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

/* OPCIONAL: ligera profundidad (cartas detrás) */
.pf-card.prev {
    opacity: 0.2;
    transform: scale(0.95);
    z-index: 5;
}

/* Botones */

.pf-termos-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;

    max-width: 500px;
    margin: 40px auto; /* espacio arriba y abajo */
    padding: 0 20px;   /* aire lateral en pantallas grandes */
}


/* BOTONES LADO A LADO */
.pf-termos-layout .pf-btn {
    width: 260px;
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {

    .pf-termos-layout {
        flex-direction: column;
    }

    .pf-termos-layout .pf-btn {
        width: 100%;
        max-width: 280px;
    }

}

.pf-termos-cta {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* BASE */
.pf-btn {
    text-align: center;
    padding: 12px;
    border-radius: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 22px;
}

/* BOTÓN PRINCIPAL */
.pf-btn-primary {
    background: #f7f3ed;
    color: #5a3e2b;
    border: 1px solid #d6c7b2;
}

.pf-btn-primary:hover {
    background: #efe7dc;
}

/* SECUNDARIO */
.pf-btn-secondary {
    background: #f7f3ed;
    color: #5a3e2b;
    border: 1px solid #d6c7b2;
}

.pf-btn-secondary:hover {
    background: #efe7dc;
}

/* OUTLINE */
.pf-btn-outline {
    border: 1px solid #5a3e2b;
    color: #5a3e2b;
    background: transparent;
}

.pf-btn-outline:hover {
    background: #5a3e2b;
    color: #fff;
}