/* =========================================================
   GUANACOP2 · confirmacion.css
   Pantalla de éxito: ícono, folio, resumen, total,
   SINPE y botón de WhatsApp
   ========================================================= */

/* ------------------------------
   1. WRAPPER
   ------------------------------ */
.confirmacion-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

/* ------------------------------
   2. ÍCONO DE ÉXITO
   ------------------------------ */
.confirmacion-icon {
    font-size: 3.5rem;
    line-height: 1;
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 204, 113, .12);
    border: 2px solid var(--color-success);
    border-radius: 50%;
    animation: iconPop var(--t-slow) ease-out;
}

@keyframes iconPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* ------------------------------
   3. TÍTULO Y SUBTÍTULO
   ------------------------------ */
.confirmacion-wrap h1 {
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    color: var(--color-text);
    margin: 0;
}

.confirmacion-sub {
    color: var(--color-text-muted);
    font-size: .95rem;
    margin: 0;
    max-width: 420px;
}

/* ------------------------------
   4. CAJA DE FOLIO
   ------------------------------ */
.folio-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: 1rem 2rem;
    background: var(--color-surface);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-md);
    width: 100%;
    box-shadow: var(--shadow-md);
}

.folio-box span {
    font-family: var(--font-display);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-text-muted);
}

.folio-box strong {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--color-gold);
}

/* ------------------------------
   5. RESUMEN FINAL
   ------------------------------ */
.resumen-final {
    width: 100%;
    text-align: left;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.resumen-final .resumen-seccion {
    padding-bottom: .75rem;
    border-bottom: 1px dashed var(--color-border);
}

.resumen-final .resumen-seccion:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.resumen-final h4 {
    font-size: .8rem;
    color: var(--color-gold);
    margin-bottom: .35rem;
    letter-spacing: .05em;
}

.resumen-final p {
    font-size: .9rem;
    line-height: 1.5;
    color: var(--color-text);
}

.resumen-final ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.resumen-final ul li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: .88rem;
    color: var(--color-text-muted);
}

.resumen-final ul li span:last-child {
    color: var(--color-text);
    font-weight: 600;
    white-space: nowrap;
}

/* ------------------------------
   6. TOTAL FINAL
   ------------------------------ */
.total-final {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.total-final span {
    color: var(--color-text-muted);
    font-size: .9rem;
}

.total-final strong {
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ------------------------------
   7. CAJA SINPE
   ------------------------------ */
.sinpe-box {
    width: 100%;
    padding: 1.25rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    text-align: left;
}

.sinpe-box h3 {
    font-size: .95rem;
    color: var(--color-primary-light);
    margin-bottom: .5rem;
    letter-spacing: .05em;
}

.sinpe-box p {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.sinpe-box strong {
    color: var(--color-text);
    font-weight: 700;
}

/* ------------------------------
   8. ACCIONES
   ------------------------------ */
.confirmacion-acciones {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

@media (min-width: 560px) {
    .confirmacion-acciones {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .confirmacion-acciones .btn {
        flex: 1 1 auto;
        min-width: 220px;
    }
}

/* ------------------------------
   9. NOTA ACLARATORIA
   ------------------------------ */
.confirmacion-nota {
    width: 100%;
    padding: .85rem 1rem;
    background: rgba(241, 196, 15, .08);
    border: 1px solid rgba(241, 196, 15, .35);
    border-radius: var(--radius-sm);
    font-size: .85rem;
    color: var(--color-warning);
    line-height: 1.55;
    text-align: left;
}

.confirmacion-nota strong {
    color: var(--color-warning);
    font-weight: 700;
}

/* ------------------------------
   10. RESPONSIVE
   ------------------------------ */
@media (min-width: 768px) {
    .confirmacion-wrap {
        gap: var(--space-lg);
    }

    .folio-box strong {
        font-size: 1.85rem;
    }
}

/* ------------------------------
   11. ACCESIBILIDAD
   ------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .confirmacion-icon {
        animation: none;
    }
}