/* ==========================================================================
   BR3 UPGRADE - CAMADAS 1, 2 E 3
   ========================================================================== */

/* --------------------------------------------------------------------------
   CAMADA 1 - REFINAMENTO VISUAL DOS CONTAINERS
   -------------------------------------------------------------------------- */
.card {
    border: none !important;
    box-shadow: 0 4px 24px rgba(11, 79, 138, 0.08) !important;
}

.card img {
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
}

.promo-section-label {
    letter-spacing: 1.5px;
}

.section-box {
    border: 1px solid var(--ph-border);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: opacity 0.4s ease, filter 0.4s ease, box-shadow 0.4s ease, transform 0.5s ease;
}

.section-box.bloqueado {
    opacity: 0.45;
    filter: blur(0.8px);
    pointer-events: none;
}

@keyframes pulseEspera {
    0%   { box-shadow: 0 0 0 2px var(--ph-trust); }
    50%  { box-shadow: 0 0 0 5px rgba(11, 79, 138, 0.15); }
    100% { box-shadow: 0 0 0 2px var(--ph-trust); }
}

.section-box.aguardando {
    animation: pulseEspera 2.2s ease-in-out infinite;
}

@keyframes unlockBlock {
    0%   { opacity: 0.45; transform: translateY(12px) scale(0.98); filter: blur(0.8px); pointer-events: none; }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: none; pointer-events: auto; }
}

.section-box.desbloqueando {
    animation: unlockBlock 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.btn-action-pix {
    box-shadow: 0 4px 20px rgba(10, 140, 106, 0.4);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-action-pix:active {
    transform: translateY(2px);
    box-shadow: none;
}

.btn-action-boleto {
    box-shadow: 0 4px 20px rgba(11, 79, 138, 0.3);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.btn-action-boleto:active {
    transform: translateY(2px);
    box-shadow: none;
}

.input-field:focus {
    outline: none;
    border-color: var(--ph-trust);
    box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --------------------------------------------------------------------------
   CAMADA 3 - ANIMAÇÕES DE SCROLL E MICRODETALHES
   -------------------------------------------------------------------------- */
.card,
.section-box,
.testimonial-card {
    opacity: 0;
    transform: translateY(16px);
}

.card.visivel,
.section-box.visivel,
.testimonial-card.visivel {
    opacity: 1;
    transform: translateY(0);
}

.section-box.visivel.bloqueado {
    opacity: 0.45;
}

.testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonial-card:nth-child(3) { transition-delay: 0.2s; }

.features li {
    opacity: 0;
    transform: translateX(-6px);
    animation: entradaItem 0.35s ease forwards;
}

.features li:nth-child(1) { animation-delay: 0.2s; }
.features li:nth-child(2) { animation-delay: 0.4s; }
.features li:nth-child(3) { animation-delay: 0.6s; }

@keyframes entradaItem {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes digitoPulsa {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.timer-digit.pulsando {
    animation: digitoPulsa 0.15s ease;
}

#sticky-cta {
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.34, 1.3, 0.64, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid var(--ph-border);
    padding-bottom: env(safe-area-inset-bottom);
}

#sticky-cta.visivel {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   REGRAS DE OURO - ACESSIBILIDADE
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   CAMADA 4 - OPÇÕES DE ENTREGA (BLOCO 1 MINIMALISTA)
   -------------------------------------------------------------------------- */
.delivery-card {
    display: block;
    cursor: pointer;
}
.delivery-card .card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1.5px solid var(--ph-border);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: #fff;
}
.delivery-card input:checked + .card-content {
    border-color: var(--ph-trust);
    background: #f0f7ff;
}
.radio-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--ph-border-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.delivery-card input:checked + .card-content .radio-circle {
    border-color: var(--ph-trust);
}
.delivery-card input:checked + .card-content .radio-circle::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--ph-trust);
    border-radius: 50%;
}
.delivery-card .text-group {
    display: flex;
    flex-direction: column;
}
.delivery-card .title {
    font-weight: 700;
    font-size: 15px;
    color: var(--ph-text-primary);
}
.delivery-card .desc {
    font-size: 13px;
    color: var(--ph-text-muted);
}
.validation-tooltip {
    position: absolute;
    background-color: #f97316; /* Laranja forte */
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    top: -35px;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
    white-space: nowrap;
}
.validation-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 20px;
    width: 8px;
    height: 8px;
    background-color: #f97316;
    transform: rotate(45deg);
}
#tooltip-delivery.validation-tooltip::after {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
}
.validation-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}
