:root {
    /* Fallbacks por si el portal no define colores */
    --portal-primary: #7262F2;
    --portal-secondary: #9A8AFF;
}

.gradient-bg {
    background: linear-gradient(135deg,
            var(--portal-primary) 0%,
            var(--portal-secondary) 100%);
}


.glass {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .75)
}

.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .06)
}

.dropzone {
    border: 2px dashed #e5e7eb;
    transition: all 0.3s ease;
}

.dropzone.dragging {
    border-color: var(--portal-primary);
    background: color-mix(in srgb, var(--portal-primary) 10%, transparent);
}

.dropzone:hover {
    border-color: var(--portal-primary);
    background: color-mix(in srgb, var(--portal-primary) 5%, transparent);
}

/* =========================
   STEPPER
   ========================= */

.stepper {
    display: flex;
    align-items: center;
    width: 100%;
}

.step {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* SOLO los steps que tengan línea pueden crecer */
.step:has(.line) {
    flex: 1;
}

/* La línea es la que se estira */
.line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
}

.dot {
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Paso ACTIVO → corporativo */
.is-active {
    background: linear-gradient(135deg,
            var(--portal-primary),
            var(--portal-secondary));
    color: #fff;
}

/* Paso COMPLETADO → verde fijo */
.is-done {
    background: #10b981;
    color: #fff;
}

/* Línea COMPLETADA → verde fijo */
.line-done {
    background: #10b981;
}

@media (min-width:640px) {
    .dot {
        width: 32px;
        height: 32px;
    }
}

.reason-card.selected {
    border-color: var(--portal-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--portal-primary) 25%, transparent);
    background: color-mix(in srgb, var(--portal-primary) 4%, transparent);
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}


/* =====================================
   SWEETALERT2 – CORPORATE (FINAL)
   ===================================== */

/* Botón principal (Aceptar / Confirmar / OK) */
.swal-btn-confirm {
    background: linear-gradient(135deg,
            var(--portal-primary),
            var(--portal-secondary));
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--portal-primary) 40%, transparent);
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.swal-btn-confirm:hover {
    opacity: 0.95;
}

.swal-btn-confirm:active {
    transform: scale(0.97);
}

/* Botón secundario (Cancelar) */
.swal-btn-cancel {
    background: #e5e7eb;
    color: #374151;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    border: none;
    transition: background 0.2s ease;
}

.swal-btn-cancel:hover {
    background: #d1d5db;
}

/* Contenedor de acciones */
.swal2-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* Tamaño mínimo y alineación */
.swal-btn-confirm,
.swal-btn-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
}