/* Sistema de marca AFINITI / ASIPLUS — compartido por index, success y failure */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --af-primary: #0F3680;        /* Dark Corn Flower Blue */
    --af-primary-dark: #0A2659;
    --af-yale: #084790;           /* Yale Blue */
    --af-yellow: #F7BF16;         /* Amarillo AFINITI */
    --af-isabelline: #ECE6E2;     /* Gris claro */
    --af-bg-light: #f1f9ff;
    --af-bg-soft: #E5F0F9;
    --af-text-gray: #616A71;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, var(--af-bg-light) 0%, var(--af-bg-soft) 100%);
    color: var(--af-text-gray);
    min-height: 100vh;
}

/* ---------- Bloque del código QR ---------- */
.qr-block {
    text-align: center;
    margin-top: 28px;
    padding: 20px;
    border: 1px dashed var(--af-primary);
    border-radius: 14px;
    background: #ffffff;
}
.qr-block img {
    max-width: 180px;
    width: 100%;
    height: auto;
}
.qr-block .qr-caption {
    margin-top: 12px;
    font-weight: 500;
    color: var(--af-primary);
}

/* ---------- Overlay de espera "¡Te pidieron un Yappy!" ---------- */
.yappy-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1080;
    background: rgba(16, 53, 125, 0.55);
    backdrop-filter: blur(3px);
    align-items: center;
    justify-content: center;
}
.yappy-overlay.is-visible {
    display: flex;
}
.yappy-overlay__card {
    background: #ffffff;
    border-radius: 18px;
    padding: 26px 24px;
    max-width: 560px;
    width: 92%;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}
.yappy-overlay__img {
    max-width: 510px;
    width: 100%;
    height: auto;
    margin-bottom: 18px;
}
.yappy-overlay__spinner {
    width: 48px;
    height: 48px;
    margin: 4px auto 18px;
    border: 5px solid var(--af-bg-soft);
    border-top-color: var(--af-primary);
    border-radius: 50%;
    animation: yappy-spin 1s linear infinite;
}
@keyframes yappy-spin {
    to { transform: rotate(360deg); }
}
.yappy-overlay__title {
    font-weight: 700;
    color: var(--af-primary);
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.yappy-overlay__text {
    font-weight: 400;
    color: var(--af-text-gray);
    font-size: 0.95rem;
}